text
stringlengths 2
1.05M
| repo_name
stringlengths 5
101
| path
stringlengths 4
991
| language
stringclasses 3
values | license
stringclasses 5
values | size
int64 2
1.05M
|
---|---|---|---|---|---|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>operator!=</title>
<link rel="stylesheet" href="apiReference.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
<link rel="start" href="index.html" title="Berkeley DB C++ Standard Template Library API Reference" />
<link rel="up" href="db_multiset.html" title="Chapter 8. Db_multiset" />
<link rel="prev" href="stldb_multisetoperator_eq.html" title="operator==" />
<link rel="next" href="dbstl_iterators.html" title="Chapter 9. Dbstl Iterator Classes" />
</head>
<body>
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr>
<th colspan="3" align="center">
operator!=
</th>
</tr>
<tr>
<td width="20%" align="left"><a accesskey="p" href="stldb_multisetoperator_eq.html">Prev</a> </td>
<th width="60%" align="center">Chapter 8.
Db_multiset </th>
<td width="20%" align="right"> <a accesskey="n" href="dbstl_iterators.html">Next</a></td>
</tr>
</table>
<hr />
</div>
<div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a id="stldb_multisetoperator_ueq"></a>
operator!=
</h2>
</div>
</div>
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="func_details"></a>
Function Details</h3>
</div>
</div>
</div>
<pre class="programlisting">
bool operator!=(const self &m2) const
</pre>
<div class="sect3" lang="en" xml:lang="en">
<div class="titlepage"></div>
<p>Inequality comparison operator. </p>
</div>
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="id1557333"></a>
Class</h3>
</div>
</div>
</div>
<p>
<a class="link" href="db_multiset.html" title="Chapter 8. Db_multiset">
db_multiset</a>
</p>
</div>
</div>
<div class="navfooter">
<hr />
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left"><a accesskey="p" href="stldb_multisetoperator_eq.html">Prev</a> </td>
<td width="20%" align="center">
<a accesskey="u" href="db_multiset.html">Up</a>
</td>
<td width="40%" align="right"> <a accesskey="n" href="dbstl_iterators.html">Next</a></td>
</tr>
<tr>
<td width="40%" align="left" valign="top">
operator==
</td>
<td width="20%" align="center">
<a accesskey="h" href="index.html">Home</a>
</td>
<td width="40%" align="right" valign="top"> Chapter 9.
Dbstl Iterator Classes </td>
</tr>
</table>
</div>
</body>
</html>
| mxrrow/zaicoin | src/deps/db/docs/api_reference/STL/stldb_multisetoperator_ueq.html | HTML | mit | 3,332 |
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 4 Test: word-boundary-detection:auto() forbidden</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<link rel="help" href="https://drafts.csswg.org/css-text-4/#word-boundary-detection">
<link rel="help" href="https://drafts.csswg.org/css-text-4/#word-boundary-expansion">
<link rel="match" href="reference/word-boundary-117-ref.html">
<meta name="assert" content="The UA must not insert a virtual word boundary immediately adjacent to an other space separator.">
<style>
@supports (word-boundary-detection:auto(ja)) {
.warn { display:none; }
}
div {
font-size: 2em;
border: solid black;
margin: 5px;
width: 30ch;
}
#test {
word-boundary-detection: auto(ja);
word-boundary-expansion: ideographic-space;
}
</style>
<p class=warn><strong>This test is not relevant, because this UA does not support <code>word-boundary-detection:auto(ja)</code>.</strong>
<p>Test passes if the two boxes below are identical.
<div id=test lang=ja>東京 へ 行きましょう。</div>
<div id=ref lang=ja>東京 へ 行きましょう。</div>
| chromium/chromium | third_party/blink/web_tests/external/wpt/css/css-text/word-boundary/word-boundary-117.html | HTML | bsd-3-clause | 1,143 |
<!DOCTYPE html>
<html>
<head>
<title>Leaflet debug page</title>
<meta name="viewport" content="initial-scale=1.0" />
<link rel="stylesheet" href="../../dist/leaflet.css" />
<link rel="stylesheet" href="../css/mobile.css" />
<script type="text/javascript" src="../../build/deps.js"></script>
<script src="../leaflet-include.js"></script>
<style>
.container {
float:left; width: 600px; height: 600px;
position: relative;
border: 1px solid gray;
}
#map1, #map2 {
position:absolute;
top:2em;
bottom:2em;
left:0;
right:0;
}
#zoom1, #zoom2 {
position:absolute;
bottom:0;
left:0;
right:0;
}
</style>
</head>
<body>
<h1>Zoom delta test.</h1>
<p>Zooming with touch zoom, box zoom or flyTo then <code>map.stop()</code> must make the zoom level snap to the value of the <code>zoomSnap</code> option. Zoom interactions (keyboard, mouse wheel, zoom control buttons must change the zoom by the amount in the <code>zoomDelta</code> option.</p>
<div>
<button id="sf">SF</button>
<button id="trd">TRD</button>
<button id="stop">stop</button>
</div>
<div class='container'>
Snap: 0.25. Delta: 0.5.
<div id="map1"></div>
<span id="zoom1"></span>
</div>
<div class='container'>
Snap: 0 (off). Delta: 0.25.
<div id="map2"></div>
<span id="zoom2"></span>
</div>
<script type="text/javascript">
var sf = [37.77, -122.42],
trd = [63.41, 10.41];
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '© <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',
osm1 = L.tileLayer(osmUrl, {maxZoom: 18, attribution: osmAttrib}),
osm2 = L.tileLayer(osmUrl, {maxZoom: 18, attribution: osmAttrib}),
center = L.latLng(63.41, 10.41);
var map1 = new L.Map('map1', {
center: center,
layers: [osm1],
zoom: 5,
zoomSnap: 0.25,
zoomDelta: 0.5,
wheelPxPerZoomLevel: 50
});
var map2 = new L.Map('map2', {
center: center,
layers: [osm2],
zoom: 5,
zoomSnap: 0,
zoomDelta: 0.25,
wheelPxPerZoomLevel: 50
});
map1.on('zoomend',function(){
document.getElementById('zoom1').innerHTML = "Zoom level: " + map1.getZoom();
});
map2.on('zoomend',function(){
document.getElementById('zoom2').innerHTML = "Zoom level: " + map2.getZoom();
});
document.getElementById('sf').onclick = function () {
map1.flyTo(sf, 10, {duration: 20});
map2.flyTo(sf, 10, {duration: 20});
};
document.getElementById('trd').onclick = function () {
map1.flyTo(trd, 10, {duration: 20});
map2.flyTo(trd, 10, {duration: 20});
};
document.getElementById('stop').onclick = function () {
map1.stop();
map2.stop();
};
</script>
</body>
</html>
| aivankovich/zo | vendor/leaflet/debug/map/zoom-delta.html | HTML | bsd-3-clause | 2,702 |
<!doctype html>
<html>
<meta charset="utf-8">
<title>Test 'by' animation of SVGLengthList.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/SVGAnimationTestCase-testharness.js"></script>
<svg>
</svg>
<script>
var rootSVGElement = document.querySelector("svg");
var epsilon = 1.0;
// Setup test document
var text = createSVGElement("text");
text.setAttribute("id", "text");
text.textContent = "ABCD";
text.setAttribute("x", "50 60 70 80");
text.setAttribute("y", "50");
text.setAttribute("onclick", "executeTest()");
rootSVGElement.appendChild(text);
var animate = createSVGElement("animate");
animate.setAttribute("id", "animation");
animate.setAttribute("attributeName", "x");
animate.setAttribute("begin", "0s");
animate.setAttribute("dur", "4s");
animate.setAttribute("from", "50 60 70 80");
animate.setAttribute("by", "20 20 20 20");
text.appendChild(animate);
// Setup animation test
function sample1() {
assert_equals(text.x.animVal.numberOfItems, 4);
assert_approx_equals(text.x.animVal.getItem(0).value, 50, epsilon);
assert_approx_equals(text.x.animVal.getItem(1).value, 60, epsilon);
assert_approx_equals(text.x.animVal.getItem(2).value, 70, epsilon);
assert_approx_equals(text.x.animVal.getItem(3).value, 80, epsilon);
assert_equals(text.x.baseVal.numberOfItems, 4);
assert_equals(text.x.baseVal.getItem(0).value, 50);
assert_equals(text.x.baseVal.getItem(1).value, 60);
assert_equals(text.x.baseVal.getItem(2).value, 70);
assert_equals(text.x.baseVal.getItem(3).value, 80);
}
function sample2() {
assert_equals(text.x.animVal.numberOfItems, 4);
assert_approx_equals(text.x.animVal.getItem(0).value, 60, epsilon);
assert_approx_equals(text.x.animVal.getItem(1).value, 70, epsilon);
assert_approx_equals(text.x.animVal.getItem(2).value, 80, epsilon);
assert_approx_equals(text.x.animVal.getItem(3).value, 90, epsilon);
assert_equals(text.x.baseVal.numberOfItems, 4);
assert_equals(text.x.baseVal.getItem(0).value, 50);
assert_equals(text.x.baseVal.getItem(1).value, 60);
assert_equals(text.x.baseVal.getItem(2).value, 70);
assert_equals(text.x.baseVal.getItem(3).value, 80);
}
function sample3() {
assert_equals(text.x.animVal.numberOfItems, 4);
assert_approx_equals(text.x.animVal.getItem(0).value, 70, epsilon);
assert_approx_equals(text.x.animVal.getItem(1).value, 80, epsilon);
assert_approx_equals(text.x.animVal.getItem(2).value, 90, epsilon);
assert_approx_equals(text.x.animVal.getItem(3).value, 100, epsilon);
assert_equals(text.x.baseVal.numberOfItems, 4);
assert_equals(text.x.baseVal.getItem(0).value, 50);
assert_equals(text.x.baseVal.getItem(1).value, 60);
assert_equals(text.x.baseVal.getItem(2).value, 70);
assert_equals(text.x.baseVal.getItem(3).value, 80);
}
smil_async_test((t) => {
const expectedValues = [
// [animationId, time, sampleCallback]
["animation", 0.0, sample1],
["animation", 2.0, sample2],
["animation", 3.999, sample3],
["animation", 4.001, sample1]
];
runAnimationTest(t, expectedValues);
});
</script> | scheib/chromium | third_party/blink/web_tests/external/wpt/svg/animations/svglengthlist-animation-4.html | HTML | bsd-3-clause | 3,226 |
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--
-->
<title>Closure Unit Tests - goog.testing.editor.TestHelper</title>
<script src="../../base.js"></script>
<script>
goog.require('goog.dom');
goog.require('goog.dom.TagName');
goog.require('goog.editor.node');
goog.require('goog.testing.editor.TestHelper');
goog.require('goog.testing.jsunit');
</script>
</head>
<body>
<div id="root"></div>
<div id="root2">Root 2</div>
<script type="text/javascript">
var root = goog.dom.getElement('root');
var helper;
function setUp() {
root.innerHTML = '';
helper = new goog.testing.editor.TestHelper(root);
}
function tearDown() {
helper.dispose();
}
function testSetRoot() {
helper.setRoot(goog.dom.getElement('root2'));
helper.assertHtmlMatches('Root 2');
}
function testSetupEditableElement() {
helper.setUpEditableElement();
assertTrue(goog.editor.node.isEditableContainer(root));
}
function testTearDownEditableElement() {
helper.tearDownEditableElement();
assertFalse(goog.editor.node.isEditableContainer(root));
}
function testFindNode() {
// Test the easiest case.
root.innerHTML = 'a<br>b';
assertEquals(helper.findTextNode('a'), root.firstChild);
assertEquals(helper.findTextNode('b'), root.lastChild);
assertNull(helper.findTextNode('c'));
}
function testFindNodeDuplicate() {
// Test duplicate.
root.innerHTML = 'c<br>c';
assertEquals('Should return first duplicate', helper.findTextNode('c'),
root.firstChild);
}
function findNodeWithHierarchy() {
// Test a more complicated hierarchy.
root.innerHTML = '<div>a<p>b<span>c</span>d</p>e</div>';
assertEquals(goog.dom.TagName.DIV,
helper.findTextNode('a').parentNode.tagName);
assertEquals(goog.dom.TagName.P,
helper.findTextNode('b').parentNode.tagName);
assertEquals(goog.dom.TagName.SPAN,
helper.findTextNode('c').parentNode.tagName);
assertEquals(goog.dom.TagName.P,
helper.findTextNode('d').parentNode.tagName);
assertEquals(goog.dom.TagName.DIV,
helper.findTextNode('e').parentNode.tagName);
}
function setUpAssertHtmlMatches() {
var tag1, tag2;
if (goog.userAgent.IE) {
tag1 = goog.dom.TagName.DIV;
} else if (goog.userAgent.WEBKIT) {
tag1 = goog.dom.TagName.P;
tag2 = goog.dom.TagName.BR;
} else if (goog.userAgent.GECKO) {
tag1 = goog.dom.TagName.SPAN;
tag2 = goog.dom.TagName.BR;
}
var parent = goog.dom.createDom(goog.dom.TagName.DIV);
root.appendChild(parent);
parent.style.fontSize = '2em';
parent.style.display = 'none';
if (goog.userAgent.IE || goog.userAgent.GECKO) {
parent.appendChild(goog.dom.createTextNode('NonWebKitText'));
}
if (tag1) {
var e1 = goog.dom.createDom(tag1);
parent.appendChild(e1);
parent = e1;
}
if (tag2) {
parent.appendChild(goog.dom.createDom(tag2));
}
parent.appendChild(goog.dom.createTextNode('Text'));
if (goog.userAgent.WEBKIT) {
root.firstChild.appendChild(goog.dom.createTextNode('WebKitText'));
}
}
function testAssertHtmlMatches() {
setUpAssertHtmlMatches();
helper.assertHtmlMatches('<div style="display: none; font-size: 2em">' +
'[[IE GECKO]]NonWebKitText<div class="IE"><p class="WEBKIT">' +
'<span class="GECKO"><br class="GECKO WEBKIT">Text</span></p></div>' +
'</div>[[WEBKIT]]WebKitText');
}
function testAssertHtmlMismatchText() {
setUpAssertHtmlMatches();
var e = assertThrows('Should fail due to mismatched text', function() {
helper.assertHtmlMatches('<div style="display: none; font-size: 2em">' +
'[[IE GECKO]]NonWebKitText<div class="IE"><p class="WEBKIT">' +
'<span class="GECKO"><br class="GECKO WEBKIT">Bad</span></p></div>' +
'</div>[[WEBKIT]]Extra');
});
assertContains('Text should match', e.message);
}
function testAssertHtmlMismatchTag() {
setUpAssertHtmlMatches();
var e = assertThrows('Should fail due to mismatched tag', function() {
helper.assertHtmlMatches('<span style="display: none; font-size: 2em">' +
'[[IE GECKO]]NonWebKitText<div class="IE"><p class="WEBKIT">' +
'<span class="GECKO"><br class="GECKO WEBKIT">Text</span></p></div>' +
'</span>[[WEBKIT]]Extra');
});
assertContains('Tag names should match', e.message);
}
function testAssertHtmlMismatchStyle() {
setUpAssertHtmlMatches();
var e = assertThrows('Should fail due to mismatched style', function() {
helper.assertHtmlMatches('<div style="display: none; font-size: 3em">' +
'[[IE GECKO]]NonWebKitText<div class="IE"><p class="WEBKIT">' +
'<span class="GECKO"><br class="GECKO WEBKIT">Text</span></p></div>' +
'</div>[[WEBKIT]]Extra');
});
assertContains('Should have same styles', e.message);
}
function testAssertHtmlMismatchOptionalText() {
setUpAssertHtmlMatches();
var e = assertThrows('Should fail due to mismatched style', function() {
helper.assertHtmlMatches('<div style="display: none; font-size: 2em">' +
'[[IE GECKO]]Bad<div class="IE"><p class="WEBKIT">' +
'<span class="GECKO"><br class="GECKO WEBKIT">Text</span></p></div>' +
'</div>[[WEBKIT]]Bad');
});
assertContains('Text should match', e.message);
}
</script>
</body>
</html>
<!--
Copyright 2008 The Closure Library Authors. All Rights Reserved.
Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.
-->
| marcelohg/NasajonWebTeamplateProject | web/js/google-closure/closure/goog/testing/editor/testhelper_test.html | HTML | mit | 5,715 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Chapter 1. Berkeley DB Tcl APIs</title>
<link rel="stylesheet" href="apiReference.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
<link rel="start" href="index.html" title="Berkeley DB TCL API Reference" />
<link rel="up" href="index.html" title="Berkeley DB TCL API Reference" />
<link rel="prev" href="preface.html" title="Preface" />
<link rel="next" href="db_close.html" title="db close" />
</head>
<body>
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr>
<th colspan="3" align="center">Chapter 1.
Berkeley DB Tcl APIs
</th>
</tr>
<tr>
<td width="20%" align="left"><a accesskey="p" href="preface.html">Prev</a> </td>
<th width="60%" align="center"> </th>
<td width="20%" align="right"> <a accesskey="n" href="db_close.html">Next</a></td>
</tr>
</table>
<hr />
</div>
<div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title"><a id="tclapi"></a>Chapter 1.
Berkeley DB Tcl APIs
</h2>
</div>
</div>
</div>
<p>
This book documents the Tcl APIs that are available for
working with Berkeley DB databases. This book assumes you
have some familiarity with Berkeley DB.
</p>
<div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a id="tcllist"></a>Tcl Methods</h2>
</div>
</div>
</div>
<div class="navtable">
<table border="1" width="80%">
<thead>
<tr>
<th>Database Methods</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a class="xref" href="db_close.html" title="db close"><span class="emphasis"><em>db</em></span> close</a>
</td>
<td>Close a database</td>
</tr>
<tr>
<td>
<a class="xref" href="db_count.html" title="db count"><span class="emphasis"><em>db</em></span> count</a>
</td>
<td>Return a count of the key's data items</td>
</tr>
<tr>
<td>
<a class="xref" href="db_del.html" title="db del"><span class="emphasis"><em>db</em></span> del</a>
</td>
<td>Delete items from the database</td>
</tr>
<tr>
<td>
<a class="xref" href="db_get.html" title="db get"><span class="emphasis"><em>db</em></span> get</a>
</td>
<td>Get items from a database</td>
</tr>
<tr>
<td>
<a class="xref" href="db_get_join.html" title="db get_join"><span class="emphasis"><em>db</em></span> get_join</a>
</td>
<td>Get items from a database join</td>
</tr>
<tr>
<td>
<a class="xref" href="db_get_type.html" title="db get_type"><span class="emphasis"><em>db</em></span> get_type</a>
</td>
<td>Return the database type</td>
</tr>
<tr>
<td>
<a class="xref" href="db_is_byteswapped.html" title="db is_byteswapped"><span class="emphasis"><em>db</em></span> is_byteswapped</a>
</td>
<td>Return if the underlying database is in host order</td>
</tr>
<tr>
<td>
<a class="xref" href="db_open.html" title="berkdb open">berkdb open</a>
</td>
<td>Create and open a database handle</td>
</tr>
<tr>
<td>
<a class="xref" href="db_put.html" title="db put"><span class="emphasis"><em>db</em></span> put</a>
</td>
<td>Store items into a database</td>
</tr>
<tr>
<td>
<a class="xref" href="db_remove.html" title="berkdb dbremove">berkdb dbremove</a>
</td>
<td>Remove a database</td>
</tr>
<tr>
<td>
<a class="xref" href="db_rename.html" title="berkdb dbrename">berkdb dbrename</a>
</td>
<td>Rename a database</td>
</tr>
<tr>
<td>
<a class="xref" href="db_stat.html" title="db stat"><span class="emphasis"><em>db</em></span> stat</a>
</td>
<td>Return database statistics</td>
</tr>
<tr>
<td>
<a class="xref" href="db_sync.html" title="db sync"><span class="emphasis"><em>db</em></span> sync</a>
</td>
<td>Flush a database to stable storage</td>
</tr>
<tr>
<td>
<a class="xref" href="db_truncate.html" title="db truncate"><span class="emphasis"><em>db</em></span> truncate</a>
</td>
<td>Truncate a database</td>
</tr>
<tr>
<td>
<a class="xref" href="version.html" title="berkdb version">berkdb version</a>
</td>
<td>Return version information</td>
</tr>
<tr>
<td colspan="2">
<span class="bold">
<strong>Cursor Methods</strong>
</span>
</td>
</tr>
<tr>
<td>
<a class="xref" href="db_cursor.html" title="db cursor"><span class="emphasis"><em>db</em></span> cursor</a>
</td>
<td>Open a cursor in the database</td>
</tr>
<tr>
<td>
<a class="xref" href="db_join.html" title="db join"><span class="emphasis"><em>db</em></span> join</a>
</td>
<td>Perform a database join on cursors</td>
</tr>
<tr>
<td>
<a class="xref" href="dbc_close.html" title="dbc close"><span class="emphasis"><em>dbc</em></span> close</a>
</td>
<td>Close a cursor</td>
</tr>
<tr>
<td>
<a class="xref" href="dbc_del.html" title="dbc del"><span class="emphasis"><em>dbc</em></span> del</a>
</td>
<td>Delete by cursor</td>
</tr>
<tr>
<td>
<a class="xref" href="dbc_dup.html" title="dbc dup"><span class="emphasis"><em>dbc</em></span> dup</a>
</td>
<td>Duplicate a cursor</td>
</tr>
<tr>
<td>
<a class="xref" href="dbc_get.html" title="dbc get"><span class="emphasis"><em>dbc</em></span> get</a>
</td>
<td>Retrieve by cursor</td>
</tr>
<tr>
<td>
<a class="xref" href="dbc_put.html" title="dbc put"><span class="emphasis"><em>dbc</em></span> put</a>
</td>
<td>Store by cursor</td>
</tr>
<tr>
<td colspan="2">
<span class="bold">
<strong>Environment Methods</strong>
</span>
</td>
</tr>
<tr>
<td>
<a class="xref" href="env_close.html" title="env close"><span class="emphasis"><em>env</em></span> close</a>
</td>
<td>Close an environment</td>
</tr>
<tr>
<td>
<a class="xref" href="env_dbremove.html" title="env dbremove"><span class="emphasis"><em>env</em></span> dbremove</a>
</td>
<td>Remove an environment</td>
</tr>
<tr>
<td>
<a class="xref" href="env_dbrename.html" title="env dbrename"><span class="emphasis"><em>env</em></span> dbrename</a>
</td>
<td>Rename a database</td>
</tr>
<tr>
<td>
<a class="xref" href="env_open.html" title="berkdb env">berkdb env</a>
</td>
<td>Create and open an environment handle</td>
</tr>
<tr>
<td>
<a class="xref" href="env_remove.html" title="berkdb envremove">berkdb envremove</a>
</td>
<td>Remove an environment handle</td>
</tr>
<tr>
<td colspan="2">
<span class="bold">
<strong>Transaction Methods</strong>
</span>
</td>
</tr>
<tr>
<td>
<a class="xref" href="txn.html" title="env txn"><span class="emphasis"><em>env</em></span> txn</a>
</td>
<td>Begin a transaction</td>
</tr>
<tr>
<td>
<a class="xref" href="txn_abort.html" title="txn abort"><span class="emphasis"><em>txn</em></span> abort</a>
</td>
<td>Abort a transaction</td>
</tr>
<tr>
<td>
<a class="xref" href="txn_checkpoint.html" title="env txn_checkpoint"><span class="emphasis"><em>env</em></span> txn_checkpoint</a>
</td>
<td>Checkpoint the environment</td>
</tr>
<tr>
<td>
<a class="xref" href="txn_commit.html" title="txn commit"><span class="emphasis"><em>txn</em></span> commit</a>
</td>
<td>Commit a transaction</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="navfooter">
<hr />
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left"><a accesskey="p" href="preface.html">Prev</a> </td>
<td width="20%" align="center"> </td>
<td width="40%" align="right"> <a accesskey="n" href="db_close.html">Next</a></td>
</tr>
<tr>
<td width="40%" align="left" valign="top">Preface </td>
<td width="20%" align="center">
<a accesskey="h" href="index.html">Home</a>
</td>
<td width="40%" align="right" valign="top"> <span class="emphasis"><em>db</em></span> close</td>
</tr>
</table>
</div>
</body>
</html>
| mxrrow/zaicoin | src/deps/db/docs/api_reference/TCL/tclapi.html | HTML | mit | 11,620 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>GLFW: Globals</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="extra.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<div class="glfwheader">
<a href="http://www.glfw.org/" id="glfwhome">GLFW</a>
<ul class="glfwnavbar">
<li><a href="http://www.glfw.org/documentation.html">Documentation</a></li>
<li><a href="http://www.glfw.org/download.html">Download</a></li>
<li><a href="http://www.glfw.org/media.html">Media</a></li>
<li><a href="http://www.glfw.org/community.html">Community</a></li>
</ul>
</div>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li class="current"><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<div id="navrow3" class="tabs2">
<ul class="tablist">
<li><a href="globals.html"><span>All</span></a></li>
<li><a href="globals_func.html"><span>Functions</span></a></li>
<li><a href="globals_type.html"><span>Typedefs</span></a></li>
<li class="current"><a href="globals_defs.html"><span>Macros</span></a></li>
</ul>
</div>
<div id="navrow4" class="tabs3">
<ul class="tablist">
<li><a href="globals_defs.html#index_a"><span>a</span></a></li>
<li><a href="globals_defs_b.html#index_b"><span>b</span></a></li>
<li><a href="globals_defs_c.html#index_c"><span>c</span></a></li>
<li><a href="globals_defs_d.html#index_d"><span>d</span></a></li>
<li><a href="globals_defs_e.html#index_e"><span>e</span></a></li>
<li><a href="globals_defs_f.html#index_f"><span>f</span></a></li>
<li><a href="globals_defs_g.html#index_g"><span>g</span></a></li>
<li><a href="globals_defs_h.html#index_h"><span>h</span></a></li>
<li><a href="globals_defs_i.html#index_i"><span>i</span></a></li>
<li><a href="globals_defs_j.html#index_j"><span>j</span></a></li>
<li><a href="globals_defs_k.html#index_k"><span>k</span></a></li>
<li><a href="globals_defs_l.html#index_l"><span>l</span></a></li>
<li><a href="globals_defs_m.html#index_m"><span>m</span></a></li>
<li class="current"><a href="globals_defs_n.html#index_n"><span>n</span></a></li>
<li><a href="globals_defs_o.html#index_o"><span>o</span></a></li>
<li><a href="globals_defs_p.html#index_p"><span>p</span></a></li>
<li><a href="globals_defs_r.html#index_r"><span>r</span></a></li>
<li><a href="globals_defs_s.html#index_s"><span>s</span></a></li>
<li><a href="globals_defs_t.html#index_t"><span>t</span></a></li>
<li><a href="globals_defs_v.html#index_v"><span>v</span></a></li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="contents">
 
<h3><a class="anchor" id="index_n"></a>- n -</h3><ul>
<li>GLFW_NATIVE_CONTEXT_API
: <a class="el" href="glfw3_8h.html#a0494c9bfd3f584ab41e6dbeeaa0e6a19">glfw3.h</a>
</li>
<li>GLFW_NO_API
: <a class="el" href="glfw3_8h.html#a8f6dcdc968d214ff14779564f1389264">glfw3.h</a>
</li>
<li>GLFW_NO_CURRENT_CONTEXT
: <a class="el" href="group__errors.html#gaa8290386e9528ccb9e42a3a4e16fc0d0">glfw3.h</a>
</li>
<li>GLFW_NO_RESET_NOTIFICATION
: <a class="el" href="glfw3_8h.html#aee84a679230d205005e22487ff678a85">glfw3.h</a>
</li>
<li>GLFW_NO_ROBUSTNESS
: <a class="el" href="glfw3_8h.html#a8b306cb27f5bb0d6d67c7356a0e0fc34">glfw3.h</a>
</li>
<li>GLFW_NO_WINDOW_CONTEXT
: <a class="el" href="group__errors.html#gacff24d2757da752ae4c80bf452356487">glfw3.h</a>
</li>
<li>GLFW_NOT_INITIALIZED
: <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">glfw3.h</a>
</li>
</ul>
</div><!-- contents -->
<address class="footer">
<p>
Last update on Thu Jun 2 2016 for GLFW 3.2.0
</p>
</address>
</body>
</html>
| TheExcavationPursuit/EP_CPP | tools/glfw-3.2.bin.WIN64/docs/html/globals_defs_n.html | HTML | mit | 6,546 |
<!DOCTYPE html>
<style>
::-webkit-meter-bar { background: green }
</style>
<p>You should see a green, a default styled, and a blue meter below.</p>
<div><meter></meter></div>
<div id="host1"></div>
<div id="host2"></div>
<script>
host1.createShadowRoot().innerHTML = "<meter></meter>";
host2.createShadowRoot().innerHTML = "<style>::-webkit-meter-bar { background: blue }</style><meter></meter>";
</script>
| axinging/chromium-crosswalk | third_party/WebKit/LayoutTests/fast/dom/shadow/custom-pseudo-scope.html | HTML | bsd-3-clause | 407 |
<!--
(c) dynarch.com, 2003-2004
Author: Mihai Bazon, http://dynarch.com/mishoo
Distributed as part of HTMLArea 3.0
"You are not expected to understand this... I don't neither."
(from The Linux Kernel Source Code,
./arch/x86_64/ia32/ptrace.c:90)
;-)
-->
<html style="height: 100%">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>About HTMLArea</title>
<script type="text/javascript" src="popup.js"></script>
<script type="text/javascript">
window.resizeTo(450, 250);
var TABS = [];
var CURRENT_TAB = 0;
var CONTENT_HEIGHT_DIFF = 0;
var CONTENT_WIDTH_DIFF = 0;
function selectTab(idx) {
var ct = TABS[CURRENT_TAB];
ct.className = ct.className.replace(/\s*tab-current\s*/, ' ');
ct = TABS[CURRENT_TAB = idx];
ct.className += ' tab-current';
for (var i = TABS.length; --i >= 0;) {
var area = document.getElementById("tab-area-" + i);
if (CURRENT_TAB == i) {
area.style.display = "block";
} else {
area.style.display = "none";
}
}
document.body.style.visibility = "hidden";
document.body.style.visibility = "visible";
document.cookie = "HTMLAREA-ABOUT-TAB=" + idx;
}
var editor = null;
function initDocument() {
editor = window.dialogArguments;
HTMLArea = window.opener.HTMLArea;
var plugins = document.getElementById("plugins");
var j = 0;
var html = "<table width='99%' cellpadding='0' style='margin-top: 1em; collapse-borders: collapse; border: 1px solid #8b8;'>" +
"<thead><tr>" +
"<td>Name</td>" +
"<td>Developer</td>" +
"<td>Sponsored by</td>" +
"<td>License<sup>*</sup></td>" +
"</tr></thead><tbody>";
for (var i in editor.plugins) {
var info = editor.plugins[i];
html += "<tr><td>" + info.name + " v" + info.version + "</td>" +
"<td><a href='" + info.developer_url + "' target='_blank' title='Visit developer website'>" +
info.developer + "</a></td>" +
"<td><a href='" + info.sponsor_url + "' target='_blank' title='Visit sponsor website'>" +
info.sponsor + "</a></td>" +
"<td>" + info.license + "</td></tr>";
++j;
}
if (j) {
html += "</tbody></table>" +
"<p><sup>*</sup> License \"htmlArea\" means that the plugin is distributed under the same terms " +
"as HTMLArea itself. Such plugins are likely to be those included in the official " +
"HTMLArea distribution</p>";
plugins.innerHTML = "<p>The following plugins have been loaded.</p>" + html;
} else {
plugins.innerHTML = "<p>No plugins have been loaded</p>";
}
plugins.innerHTML += "<p>User agent reports:<br/>" + navigator.userAgent + "</p>";
var content = document.getElementById("content");
if (window.innerHeight) {
CONTENT_HEIGHT_DIFF = window.innerHeight - 250;
CONTENT_WIDTH_DIFF = window.innerWidth - content.offsetWidth;
} else {
CONTENT_HEIGHT_DIFF = document.body.offsetHeight - 250;
CONTENT_WIDTH_DIFF = document.body.offsetWidth - 400;
}
window.onresize();
var bar = document.getElementById("tabbar");
j = 0;
for (var i = bar.firstChild; i; i = i.nextSibling) {
TABS.push(i);
i.__msh_tab = j;
i.onmousedown = function(ev) { selectTab(this.__msh_tab); HTMLArea._stopEvent(ev || window.event); };
var area = document.getElementById("tab-area-" + j);
if (/tab-current/.test(i.className)) {
CURRENT_TAB = j;
area.style.display = "block";
} else {
area.style.display = "none";
}
++j;
}
if (document.cookie.match(/HTMLAREA-ABOUT-TAB=([0-9]+)/))
selectTab(RegExp.$1);
}
window.onresize = function() {
var content = document.getElementById("content");
if (window.innerHeight) {
content.style.height = (window.innerHeight - CONTENT_HEIGHT_DIFF) + "px";
content.style.width = (window.innerWidth - CONTENT_WIDTH_DIFF) + "px";
} else {
content.style.height = (document.body.offsetHeight - CONTENT_HEIGHT_DIFF) + "px";
//content.style.width = (document.body.offsetWidth - CONTENT_WIDTH_DIFF) + "px";
}
}
</script>
<style>
html,body,textarea,table { font-family: tahoma,verdana,arial; font-size: 11px;
padding: 0px; margin: 0px; }
tt { font-size: 120%; }
body { padding: 0px; background: #cea; color: 000; }
a:link, a:visited { color: #00f; }
a:hover { color: #f00; }
a:active { color: #f80; }
button { font: 11px tahoma,verdana,sans-serif; background-color: #cea;
border-width: 1px; }
p { margin: 0.5em 0px; }
h1 { font: bold 130% georgia,"times new roman",serif; margin: 0px; border-bottom: 1px solid #6a6; }
h2 { font: bold 110% georgia,"times new roman",serif; margin: 0.7em 0px; }
thead {
font-weight: bold;
background-color: #dfb;
}
.logo, .logo-hover {
white-space: nowrap;
background-color: #8f4; color: #040; padding: 3px; border-bottom: 1px solid #555;
height: 5em;
}
.logo .brand, .logo-hover .brand {
margin-left: 0.5em; margin-right: 0.5em; padding-bottom: 0.1em;
font-family: impact,'arial black',arial,sans-serif; font-size: 28px;
border-bottom: 1px solid #595; text-align: center;
cursor: pointer;
}
.logo-hover {
background-color: #fff;
}
.logo-hover .brand {
color: #800;
border-color: #04f;
}
.logo .letter, .logo-hover .letter { position: relative; font-family: monospace; }
.logo .letter1 { top: 0.1em; }
.logo .letter2 { top: 0.05em; }
.logo .letter3 { top: -0.05em; }
.logo .letter4 { top: -0.1em; }
.logo-hover .letter1 { top: -0.1em; }
.logo-hover .letter2 { top: -0.05em; }
.logo-hover .letter3 { top: 0.05em; }
.logo-hover .letter4 { top: 0.1em; }
.logo .version, .logo-hover .version { font-family: georgia,"times new roman",serif; }
.logo .release {
font-size: 90%; margin-bottom: 1em;
text-align: center; color: #484;
}
.logo .visit { display: none; }
.logo-hover .release { display: none; }
.logo-hover .visit {
font-size: 90%; margin-bottom: 1em;
text-align: center; color: #448;
}
.buttons {
text-align: right; padding: 3px; background-color: #8f4;
border-top: 1px solid #555;
}
#tabbar {
position: relative;
left: 10px;
}
.tab {
color: #454;
cursor: pointer;
margin-left: -5px;
float: left; position: relative;
border: 1px solid #555;
top: -3px; left: -2px;
padding: 2px 10px 3px 10px;
border-top: none; background-color: #9b7;
-moz-border-radius: 0px 0px 4px 4px;
z-index: 0;
}
.tab-current {
color: #000;
top: -4px;
background-color: #cea;
padding: 3px 10px 4px 10px;
z-index: 10;
}
table.sponsors { border-top: 1px solid #aca; }
table.sponsors td {
border-bottom: 1px solid #aca; vertical-align: top;
}
table.sponsors tr td { padding: 2px 0px; }
table.sponsors tr td.sponsor { text-align: right; padding-right: 0.3em; white-space: nowrap; }
li, ol, ul { margin-top: 0px; margin-bottom: 0px; }
</style></head>
<body onload="__dlg_init(); initDocument();"
><table cellspacing="0" cellpadding="0" style="border-collapse: collapse;
width: 100%; height: 100%;">
<tr style="height: 1em"><td id="tdheader">
<div class="logo">
<div class="brand"
onmouseover="this.parentNode.className='logo-hover';"
onmouseout="this.parentNode.className='logo';"
onclick="window.open('http://dynarch.com/htmlarea/');">
<span class="letter letter1"><H</span><span
class="letter letter2">T</span><span
class="letter letter3">M</span><span
class="letter letter4">L</span>Area <span class="letter">/></span>
<span class="version">3.0 <span style="position: relative; top: -0.6em; font-size: 50%; font-weight: normal">[ rev. rc1 ]</span></span></div>
<div class="release">Compiled on Mar 1, 2004 19:37 GMT</div>
<div class="visit">Go to http://dynarch.com/htmlarea/ [latest milestone release]</div>
</div>
</td></tr>
<tr><td id="tdcontent" style="padding: 0.5em;">
<div style="overflow: auto; height: 250px;" id="content">
<div id="tab-areas">
<div id="tab-area-0">
<h1>HTMLArea</h1>
<p>A free WYSIWYG editor replacement for <tt><textarea></tt> fields.<br />
For Mozilla 1.3+ (any platform) or Internet Explorer 5.5+ (Windows).
</p>
<p style="text-align: center"
>© 2002-2004 <a href="http://interactivetools.com" target="_blank">interactivetools.com</a>, inc.<br />
© 2003-2004 <a href="http://dynarch.com" target="_blank">dynarch.com</a> LLC.<br />
All Rights Reserved.</p>
<h2>Project resources</h2>
<ul>
<li><a href="http://sourceforge.net/projects/itools-htmlarea/" target="_blank"
>Project page</a> (@ sourceforge.net)</li>
<li><a href="http://sourceforge.net/cvs/?group_id=69750" target="_blank"
>Anonymous CVS access</a> (@ sourceforge.net)</li>
<li><a href="http://sourceforge.net/tracker/?atid=525656&group_id=69750&func=browse" target="_blank"
>Bug system</a> (@ sourceforge.net)</li>
<li><a href="http://www.interactivetools.com/forum/gforum.cgi?forum=14;" target="_blank"
>Forum</a> (@ interactivetools.com)</li>
<li><a href="http://www.dynarch.com/htmlarea/" target="_blank"
>Last public release</a> (@ dynarch.com)</li>
</ul>
<p>
For download section please see the <a href="http://sourceforge.net/projects/itools-htmlarea/" target="_blank"
>project page @ SourceForge</a>.
</p>
<p style="margin-top: 1em; text-align: center;">Version 3.0 developed and maintained by <a
href="http://dynarch.com/mishoo/" title="http://dynarch.com/mishoo/" target="_blank">Mihai Bazon</a> / <a
href="http://dynarch.com" title="http://dynarch.com/" target="_blank">dynarch.com</a></p>
</div>
<div id="tab-area-1">
<h1>Thank you</h1>
<p>
<a href="http://dynarch.com" target="_blank">dynarch.com</a> would like to thank the following
companies/persons for their <em>donations</em> to support development of HTMLArea (listed alphabetically):
</p>
<ul>
<li><a href="http://www.neomedia.ro">Neomedia</a> (Romania)</li>
<li><a href="http://www.os3.it" target="_blank">OS3</a> (Italy)</li>
<li><a href="http://www.softwerk.net">SoftWerk</a> (Italy)</li>
</ul>
<p>Also many thanks to all people at InteractiveTools.com
<a href="http://www.interactivetools.com/forum/gforum.cgi?forum=14;">HTMLArea forums</a> for
contributing translations, feedback, bug reports and fixes.</p>
<p>
Last but not least, this project wouldn't have existed without
<a href="http://interactivetools.com" target="_blank">InteractiveTools.com</a>.
</p>
</div>
<div id="tab-area-2">
<h1>htmlArea License (based on BSD license)</h1>
<p style="text-align: center">© 2002-2004, interactivetools.com, inc.<br />
© 2003-2004 dynarch.com LLC<br />
All rights reserved.</p>
<p>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
</p>
<ol>
<li>
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
</li>
<li>
Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
</li>
<li>
Neither the name of interactivetools.com, inc. nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
</li>
</ol>
<p>
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
</p>
</div>
<div id="tab-area-3">
<h1>Plugins</h1>
<div id="plugins">
</div>
</div>
</div></div>
</tr></td>
<tr style="height: 1em"><td id="tdfooter">
<div class="buttons">
<div id="tabbar"
><div class="tab tab-current"
>About</div><div class="tab"
>Thanks</div><div class="tab"
>License</div><div class="tab"
>Plugins</div></div>
<button type="button" onclick="__dlg_close(null);">I agree it's cool</button>
</div>
</td></tr></table>
</body></html>
| haakonsk/O2-Framework | var/www/js/htmlarea/HTMLArea-3.0-rc1/popups/about.html | HTML | mit | 12,610 |
<!DOCTYPE html>
<html>
<div id="host1">
<div id="host3">
<div>A</div>
<div>B</div>
<div>C</div>
</div>
</div>
</html>
| js0701/chromium-crosswalk | third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-reprojection2-expected.html | HTML | bsd-3-clause | 152 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../libc/type.suseconds_t.html">
</head>
<body>
<p>Redirecting to <a href="../../../libc/type.suseconds_t.html">../../../libc/type.suseconds_t.html</a>...</p>
<script>location.replace("../../../libc/type.suseconds_t.html" + location.search + location.hash);</script>
</body>
</html> | ssgrn/Rust-Matrix-Computations | target/doc/libc/unix/notmips/type.suseconds_t.html | HTML | mit | 381 |
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
<title>Canvas test: 2d.line.cap.valid</title>
<meta name="author" content="Philip Taylor">
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="common/canvas-tests.js"></script>
<link rel="stylesheet" href="common/canvas-tests.css">
<body class="show_output">
<h1>2d.line.cap.valid</h1>
<p class="desc">Setting lineCap to valid values works</p>
<p class="output">Actual output:</p>
<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<ul id="d"></ul>
<script>
var t = async_test("Setting lineCap to valid values works");
_addTest(function(canvas, ctx) {
ctx.lineCap = 'butt'
_assertSame(ctx.lineCap, 'butt', "ctx.lineCap", "'butt'");
ctx.lineCap = 'round';
_assertSame(ctx.lineCap, 'round', "ctx.lineCap", "'round'");
ctx.lineCap = 'square';
_assertSame(ctx.lineCap, 'square', "ctx.lineCap", "'square'");
});
</script>
| hgl888/web-testing-service | wts/tests/canvas/w3c/2d.line.cap.valid.html | HTML | bsd-3-clause | 1,052 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Apache log4cxx: propertysetter.h File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="classes.html"><span>Classes</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>File Members</span></a></li>
</ul></div>
<h1>propertysetter.h File Reference</h1>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelog4cxx.html">log4cxx</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelog4cxx_1_1helpers.html">log4cxx::helpers</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelog4cxx_1_1config.html">log4cxx::config</a></td></tr>
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1config_1_1_property_setter.html">PropertySetter</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">General purpose Object property setter. <a href="classlog4cxx_1_1config_1_1_property_setter.html#_details">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef ObjectPtrT< Object > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelog4cxx_1_1helpers.html#b6a6ce8f0ab4ed49ed45fad8cd9ea177">log4cxx::helpers::ObjectPtr</a></td></tr>
</table>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
</BODY>
</HTML>
| smartdevice475/sdl_core_346_wince | src/3rd_party/apache-log4cxx-win32-0.10.0/apache-log4cxx-0.10.0/site/apidocs/propertysetter_8h.html | HTML | bsd-3-clause | 4,060 |
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
<title>boost/exception/exception.hpp</title>
<link href='reno.css' type='text/css' rel='stylesheet'/>
</head>
<body>
<div class="body-0">
<div class="body-1">
<div class="body-2">
<div>
<div id="boost_logo">
<a href="http://www.boost.org"><img style="border:0" src="../../../boost.png" alt="Boost" width="277" height="86"/></a>
</div>
<h1>Boost Exception</h1>
</div>
<!-- Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc. -->
<!-- Distributed under the Boost Software License, Version 1.0. (See accompanying -->
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
<div class="RenoIncludeDIV"><div class="RenoAutoDIV"><h2>boost/exception/exception.hpp</h2>
</div>
<h3>Synopsis</h3>
<div class="RenoIncludeDIV"><pre>namespace
boost
{
<span class="RenoIncludeSPAN"> <span class="RenoIncludeSPAN">class
<span class="RenoLink"><a href="exception.html">exception</a></span>
{
protected:
<span class="RenoIncludeSPAN"> <span class="RenoLink"><a href="exception_constructors.html">exception</a></span>();
<span class="RenoLink"><a href="exception_constructors.html">exception</a></span>( <span class="RenoLink"><a href="exception.html">exception</a></span> const & x );</span>
<span class="RenoIncludeSPAN"> <span class="RenoLink"><a href="exception_destructor.html">~exception</a></span>();</span>
};</span>
<span class="RenoIncludeSPAN">template <class Tag,class T>
class <span class="RenoLink"><a href="error_info.html">error_info</a></span>;</span>
typedef <span class="RenoLink"><a href="error_info.html">error_info</a></span><struct throw_function_,char const *> throw_function;
typedef <span class="RenoLink"><a href="error_info.html">error_info</a></span><struct throw_file_,char const *> throw_file;
typedef <span class="RenoLink"><a href="error_info.html">error_info</a></span><struct throw_line_,int> throw_line;</span>
}</pre>
</div></div><div class="RenoAutoDIV"><div class="RenoHR"><hr/></div>
See also: <span class="RenoPageList"><a href="BOOST_THROW_EXCEPTION.html">BOOST_THROW_EXCEPTION</a> | <a href="boost_exception_all_hpp.html">boost/exception/all.hpp</a> | <a href="boost_exception_enable_current_exception_hpp.html">boost/exception/enable_current_exception.hpp</a> | <a href="boost_exception_enable_error_info_hpp.html">boost/exception/enable_error_info.hpp</a> | <a href="boost_exception_info_hpp.html">boost/exception/info.hpp</a> | <a href="boost_exception_ptr_hpp.html">boost/exception_ptr.hpp</a> | <a href="exception.html">exception</a> | <a href="synopsis.html">Synopsis</a></span>
</div>
<!-- Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc. -->
<!-- Distributed under the Boost Software License, Version 1.0. (See accompanying -->
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
<div id="footer">
<p>
<a class="logo" href="http://jigsaw.w3.org/css-validator/check/referer"><img class="logo_pic" src="valid-css.png" alt="Valid CSS" height="31" width="88"/></a>
<a class="logo" href="http://validator.w3.org/check?uri=referer"><img class="logo_pic" src="valid-xhtml.png" alt="Valid XHTML 1.0" height="31" width="88"/></a>
<small>Copyright (c) 2006-2009 by Emil Dotchevski and Reverge Studios, Inc.<br/>
Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License, Version 1.0</a>.</small>
</p>
</div>
</div>
</div>
</div>
</body>
</html>
| NixaSoftware/CVis | venv/bin/libs/exception/doc/boost_exception_exception_hpp.html | HTML | apache-2.0 | 3,815 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>JQuery Validation Engine</title>
<link rel="stylesheet" href="../css/validationEngine.jquery.css" type="text/css"/>
<link rel="stylesheet" href="../css/template.css" type="text/css"/>
<script src="../js/jquery-1.8.2.min.js" type="text/javascript">
</script>
<script src="../js/languages/jquery.validationEngine-en.js" type="text/javascript" charset="utf-8">
</script>
<script src="../js/jquery.validationEngine.js" type="text/javascript" charset="utf-8">
</script>
<script>
function validate() {
}
function formSuccess() {
alert('Success!');
}
function formFailure() {
alert('Failure!');
}
jQuery(document).ready(function(){
// binds form submission and fields to the validation engine
jQuery("#formID").validationEngine({
onFormSuccess:formSuccess,
onFormFailure:formFailure
});
});
/**
*
* @param {jqObject} the field where the validation applies
* @param {Array[String]} validation rules for this field
* @param {int} rule index
* @param {Map} form options
* @return an error string if validation failed
*/
function checkHELLO(field, rules, i, options){
if (field.val() != "HELLO") {
// this allows to use i18 for the error msgs
return options.allrules.validate2fields.alertText;
}
}
</script>
</head>
<body>
<p>
This demonstration shows onFormSuccess() and onFormFailure()
<br/>
</p>
<div id="test" class="test" style="width:150px;">This is a div element</div>
<form id="formID" onsubmit="return jQuery(this).validationEngine('validate');" class="formular" method="post">
<fieldset>
<legend>
Required!
</legend>
<label>
<span>Field is required : </span>
<input value="" class="validate[required] text-input" type="text" name="req" id="req" />
</label>
</fieldset>
<input class="submit" type="button" onclick="jQuery('#formID').submit();" value="Validate & Send the form!"/><hr/>
</form>
</body>
</html>
| firomero/citybooking | web/public/plugins/validationengine/demos/demoOnForm.html | HTML | mit | 2,050 |
<script>
var wsServer = 'ws://127.0.0.1:9501';
var websocket = new WebSocket(wsServer);
websocket.onopen = function (evt) {
console.log("Connected to WebSocket server.");
};
websocket.onclose = function (evt) {
console.log("Disconnected");
};
websocket.onmessage = function (evt) {
console.log('Retrieved data from server: ' + evt.data);
};
websocket.onerror = function (evt, e) {
console.log('Error occured: ' + evt.data);
};
</script>
| CraryPrimitiveMan/code-examples | php/swoole/websocket/client.html | HTML | mit | 453 |
<HTML><HEAD></HEAD><BODY><P>
general exceptions used by this library.
</P></BODY></HTML>
| andreagenso/java2scala | test/J2s/java/openjdk-6-src-b27/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/exceptions/package.html | HTML | apache-2.0 | 89 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>jQuery UI Autocomplete Custom Data Demo</title>
<link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="../../jquery-1.4.2.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.position.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.autocomplete.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
.ui-autocomplete-category {
font-weight:bold;
padding:.2em .4em;
margin:.8em 0 .2em;
line-height:1.5;
}
</style>
<script type="text/javascript">
$.widget("custom.catcomplete", $.ui.autocomplete, {
_renderMenu: function( ul, items ) {
var self = this,
currentCategory = "";
$.each( items, function( index, item ) {
if ( item.category != currentCategory ) {
ul.append( "<li class='ui-autocomplete-category'>" + item.category + "</li>" );
currentCategory = item.category;
}
self._renderItem( ul, item );
});
}
});
</script>
<script type="text/javascript">
$(function() {
var data = [
{ label: "anders", category: "" },
{ label: "andreas", category: "" },
{ label: "antal", category: "" },
{ label: "annhhx10", category: "Products" },
{ label: "annk K12", category: "Products" },
{ label: "annttop C13", category: "Products" },
{ label: "anders andersson", category: "People" },
{ label: "andreas andersson", category: "People" },
{ label: "andreas johnson", category: "People" }
];
$('#search').catcomplete({
delay: 0,
source: data
});
});
</script>
</head>
<body>
<div class="demo">
<label for="search">Search: </label>
<input id="search" />
</div><!-- End demo -->
<div class="demo-description">
<p>
A categorized search result. Try typing "a" or "n".
</p>
</div><!-- End demo-description -->
</body>
</html>
| ui-icts/sispotr-project | webapp/src/main/webapp/resources/jquery-ui/development-bundle/demos/autocomplete/categories.html | HTML | apache-2.0 | 2,096 |
<!doctype html>
<!--
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<html>
<head>
<title>Core Elements Test Runner</title>
<meta charset="UTF-8">
<script src="../platform/platform.js"></script>
<link rel="import" href="tests/tests.html">
</head>
<body>
<div id="mocha"></div>
</body>
</html>
| xasos/Cordova-Polymer-Seed | www/bower_components/core-tests/runner.html | HTML | mit | 781 |
<div class="apiDetail">
<div>
<h2><span>JSON</span><span class="path">$.fn.zTree.</span>_z</h2>
<h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
<div class="desc">
<p></p>
<div class="longdesc">
<p>zTree v3.x 内部的全部方法都可以通过 $.fn.zTree._z 进行调用,开放出来是为了更便于大家开发制作自己的 zTree 插件。 </p>
<p class="highlight_red">如无特殊需求请勿使用此对象,以及修改此对象内部的各个函数。</p>
</div>
</div>
</div>
</div> | h819/spring-boot | ztree/src/main/resources/static/zTree/api/cn/fn.zTree._z.html | HTML | apache-2.0 | 585 |
{% block main %}{% endblock %}
<br><a href="http://{{ request.get_host }}">http://{{ request.get_host }}</a>
| gladgod/zhiliao | zhiliao/core/templates/email/base.html | HTML | bsd-3-clause | 110 |
<!DOCTYPE html>
<!-- DO NOT EDIT! Generated by `common/security-features/tools/generate.py --spec referrer-policy/4K+1/` -->
<html>
<head>
<meta charset="utf-8">
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/security-features/resources/common.sub.js"></script>
<script src="../../../../generic/test-case.sub.js"></script>
<script src="../../../generic/test-case.sub.js"></script>
</head>
<body>
<script>
TestCase(
[
{
"expectation": "stripped-referrer",
"origin": "same-http",
"redirection": "keep-origin",
"source_context_list": [],
"source_scheme": "http",
"subresource": "worker-module",
"subresource_policy_deliveries": [],
"test_description": "Referrer Policy: Expects stripped-referrer for worker-module to same-http origin and keep-origin redirection from http context."
},
{
"expectation": "stripped-referrer",
"origin": "same-http",
"redirection": "no-redirect",
"source_context_list": [],
"source_scheme": "http",
"subresource": "worker-module",
"subresource_policy_deliveries": [],
"test_description": "Referrer Policy: Expects stripped-referrer for worker-module to same-http origin and no-redirect redirection from http context."
}
],
new SanityChecker()
).start();
</script>
<div id="log"></div>
</body>
</html>
| scheib/chromium | third_party/blink/web_tests/external/wpt/referrer-policy/4K+1/gen/top.meta/unset/worker-module.http.html | HTML | bsd-3-clause | 1,660 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ClickTest_testClicksASurroundingStrongTag</title>
</head>
<body>
<div>
<a href="xhtmlTest.html"><strong>Click</strong></a>
</div>
</body>
</html> | vendavo/yowie | yowie-web/node_modules/protractor/node_modules/selenium-webdriver/lib/test/data/ClickTest_testClicksASurroundingStrongTag.html | HTML | mit | 335 |
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html lang="en" xmlns="http://www.w3.org/1999/html"> <!--<![endif]-->
<head>
<!-- Basic Page Needs
================================================== -->
<meta charset="utf-8" />
<title>icon-folder-close-alt: Font Awesome Icons</title>
<meta name="description" content="Font Awesome, the iconic font designed for Bootstrap">
<meta name="author" content="Dave Gandy">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--<meta name="viewport" content="initial-scale=1; maximum-scale=1">-->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- CSS
================================================== -->
<link rel="stylesheet" href="../../assets/css/site.css">
<link rel="stylesheet" href="../../assets/css/pygments.css">
<link rel="stylesheet" href="../../assets/font-awesome/css/font-awesome.css">
<!--[if IE 7]>
<link rel="stylesheet" href="../../assets/font-awesome/css/font-awesome-ie7.css">
<![endif]-->
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="../../assets/ico/favicon.ico">
<script type="text/javascript" src="//use.typekit.net/wnc7ioh.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-30136587-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>
</head>
<body data-spy="scroll" data-target=".navbar">
<div class="wrapper"> <!-- necessary for sticky footer. wrap all content except footer -->
<div class="navbar navbar-inverse navbar-static-top hidden-print">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="../../"><i class="icon-flag"></i> Font Awesome</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="hidden-tablet "><a href="../../">Home</a></li>
<li><a href="../../get-started/">Get Started</a></li>
<li class="dropdown-split-left"><a href="../../icons/">Icons</a></li>
<li class="dropdown dropdown-split-right hidden-phone">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="icon-caret-down"></i>
</a>
<ul class="dropdown-menu pull-right">
<li><a href="../../icons/"><i class="icon-flag icon-fixed-width"></i> Icons</a></li>
<li class="divider"></li>
<li><a href="../../icons/#new"><i class="icon-shield icon-fixed-width"></i> New Icons in 3.2.1</a></li>
<li><a href="../../icons/#web-application"><i class="icon-camera-retro icon-fixed-width"></i> Web Application Icons</a></li>
<li><a href="../../icons/#currency"><i class="icon-won icon-fixed-width"></i> Currency Icons</a></li>
<li><a href="../../icons/#text-editor"><i class="icon-file-text-alt icon-fixed-width"></i> Text Editor Icons</a></li>
<li><a href="../../icons/#directional"><i class="icon-hand-right icon-fixed-width"></i> Directional Icons</a></li>
<li><a href="../../icons/#video-player"><i class="icon-play-sign icon-fixed-width"></i> Video Player Icons</a></li>
<li><a href="../../icons/#brand"><i class="icon-github icon-fixed-width"></i> Brand Icons</a></li>
<li><a href="../../icons/#medical"><i class="icon-medkit icon-fixed-width"></i> Medical Icons</a></li>
</ul>
</li>
<li class="dropdown-split-left"><a href="../../examples/">Examples</a></li>
<li class="dropdown dropdown-split-right hidden-phone">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="icon-caret-down"></i>
</a>
<ul class="dropdown-menu pull-right">
<li><a href="../../examples/">Examples</a></li>
<li class="divider"></li>
<li><a href="../../examples/#new-styles">New Styles</a></li>
<li><a href="../../examples/#inline-icons">Inline Icons</a></li>
<li><a href="../../examples/#larger-icons">Larger Icons</a></li>
<li><a href="../../examples/#bordered-pulled">Bordered & Pulled</a></li>
<li><a href="../../examples/#buttons">Buttons</a></li>
<li><a href="../../examples/#button-groups">Button Groups</a></li>
<li><a href="../../examples/#button-dropdowns">Button Dropdowns</a></li>
<li><a href="../../examples/#bulleted-lists">Bulleted Lists</a></li>
<li><a href="../../examples/#navigation">Navigation</a></li>
<li><a href="../../examples/#form-inputs">Form Inputs</a></li>
<li><a href="../../examples/#animated-spinner">Animated Spinner</a></li>
<li><a href="../../examples/#rotated-flipped">Rotated & Flipped</a></li>
<li><a href="../../examples/#stacked">Stacked</a></li>
<li><a href="../../examples/#custom">Custom CSS</a></li>
</ul>
</li>
<li><a href="../../whats-new/">
<span class="hidden-tablet">What's </span>New</a>
</li>
<li><a href="../../community/">Community</a></li>
<li><a href="../../license/">License</a></li>
</ul>
<ul class="nav pull-right">
<li><a href="http://blog.fontawesome.io">Blog</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="jumbotron jumbotron-icon">
<div class="container">
<div class="info-icons">
<i class="icon-folder-close-alt icon-6"></i>
<span class="hidden-phone">
<i class="icon-folder-close-alt icon-5"></i>
<span class="hidden-tablet"><i class="icon-folder-close-alt icon-4"></i> </span>
<i class="icon-folder-close-alt icon-3"></i>
<i class="icon-folder-close-alt icon-2"></i>
</span>
<i class="icon-folder-close-alt icon-1"></i>
</div>
<h1 class="info-class">
icon-folder-close-alt
<small>
<i class="icon-folder-close-alt"></i> ·
Unicode: <span class="upper">f114</span> ·
Created: v3.0 ·
Categories:
Web Application Icons
</small>
</h1>
</div>
</div>
<div class="container">
<section>
<div class="row-fluid">
<div class="span9">
<p>After you get <a href="../../integration/">up and running</a>, you can place Font Awesome icons just about anywhere with the <code><i></code> tag:</p>
<div class="well well-transparent">
<div style="font-size: 24px; line-height: 1.5em;">
<i class="icon-folder-close-alt"></i> icon-folder-close-alt
</div>
</div>
<div class="highlight"><pre><code class="html"><span class="nt"><i</span> <span class="na">class=</span><span class="s">"icon-folder-close-alt"</span><span class="nt">></i></span> icon-folder-close-alt
</code></pre></div>
<br>
<div class="lead"><i class="icon-info-sign"></i> Looking for more? Check out the <a href="../../examples/">examples</a>.</div>
</div>
<div class="span3">
<div class="info-ad"><div id="carbonads-container"><div class="carbonad"><div id="azcarbon"></div><script type="text/javascript">var z = document.createElement("script"); z.type = "text/javascript"; z.async = true; z.src = "http://engine.carbonads.com/z/32291/azcarbon_2_1_0_VERT"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);</script></div></div>
</div>
</div>
</div>
</section>
</div>
<div class="push"><!-- necessary for sticky footer --></div>
</div>
<footer class="footer hidden-print">
<div class="container text-center">
<div>
<i class="icon-flag"></i> Font Awesome 3.2.1
<span class="hidden-phone">·</span><br class="visible-phone">
Created and Maintained by <a href="http://twitter.com/davegandy">Dave Gandy</a>
</div>
<div>
Font Awesome licensed under <a href="http://scripts.sil.org/OFL">SIL OFL 1.1</a>
<span class="hidden-phone">·</span><br class="visible-phone">
Code licensed under <a href="http://opensource.org/licenses/mit-license.html">MIT License</a>
<span class="hidden-phone hidden-tablet">·</span><br class="visible-phone visible-tablet">
Documentation licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>
</div>
<div>
Thanks to <a href="http://maxcdn.com"><i class="icon-maxcdn"></i> MaxCDN</a> for providing the excellent <a href="http://www.bootstrapcdn.com/#tab_fontawesome">BootstrapCDN for Font Awesome</a>
</div>
<div class="project">
<a href="https://github.com/FortAwesome/Font-Awesome">GitHub Project</a> ·
<a href="https://github.com/FortAwesome/Font-Awesome/issues">Issues</a>
</div>
</div>
</footer>
<script src="http://platform.twitter.com/widgets.js"></script>
<script src="../../assets/js/jquery-1.7.1.min.js"></script>
<script src="../../assets/js/ZeroClipboard-1.1.7.min.js"></script>
<script src="../../assets/js/bootstrap-2.3.1.min.js"></script>
<script src="../../assets/js/site.js"></script>
</body>
</html>
| vinnylinck/listagram | www/lib/font-awesome/src/3.2.1/icon/folder-close-alt/index.html | HTML | mit | 10,186 |
<!DOCTYPE html>
<meta charset=utf-8>
<title>invalid href: port-single-letter</title>
<map name=foo><area href="http://f:b/c" alt></map>
| youtube/cobalt | third_party/web_platform_tests/conformance-checkers/html/elements/area/href/port-single-letter-novalid.html | HTML | bsd-3-clause | 136 |
<!DOCTYPE html>
<meta charset=utf-8>
<title>invalid src: host-space</title>
<embed src="http://example .org">
| youtube/cobalt | third_party/web_platform_tests/conformance-checkers/html/elements/embed/src/host-space-novalid.html | HTML | bsd-3-clause | 110 |
<!DOCTYPE html>
<HTML><head><TITLE>Manpage of SYS-UNCONFIG</TITLE>
<meta charset="utf-8">
<link rel="stylesheet" href="/css/main.css" type="text/css">
</head>
<body>
<header class="site-header">
<div class="wrap"> <div class="site-title"><a href="/manpages/index.html">linux manpages</a></div>
<div class="site-description">{"type":"documentation"}</div>
</div>
</header>
<div class="page-content"><div class="wrap">
<H1>SYS-UNCONFIG</H1>
Section: Maintenance Commands (8)<BR>Updated: Wed Jul 28 1999<BR><A HREF="#index">Index</A>
<A HREF="/manpages/index.html">Return to Main Contents</A><HR>
<A NAME="lbAB"> </A>
<H2>NAME</H2>
sys-unconfig - shell script to reconfigure the system upon next boot
<A NAME="lbAC"> </A>
<H2>SYNOPSIS</H2>
<B>sys-unconfig</B>
<A NAME="lbAD"> </A>
<H2>DESCRIPTION</H2>
<B>sys-unconfig</B> provides a simple method of reconfiguring a system
in a new environment. Upon executing sys-unconfig will halt your
system, and run the following configuration programs at boot:
passwd (to change the root password), netconfig, timeconfig,
kbdconfig, authconfig, and ntsysv.
<P>
<A NAME="lbAE"> </A>
<H2>FILES</H2>
<DL COMPACT>
<DT><I>/.unconfigured</I><DD>
The presence of this file will cause /etc/rc.d/rc.sysinit to run
the programs mentioned above.
<P>
</DL>
<A NAME="lbAF"> </A>
<H2>SEE ALSO</H2>
<B><A HREF="/manpages/index.html?1+passwd">passwd</A></B>(1),
<B><A HREF="/manpages/index.html?8+netconfig">netconfig</A></B>(8),
<B><A HREF="/manpages/index.html?8+timeconfig">timeconfig</A></B>(8),
<B><A HREF="/manpages/index.html?8+kbdconfig">kbdconfig</A></B>(8),
<B><A HREF="/manpages/index.html?8+authconfig">authconfig</A></B>(8),
<B><A HREF="/manpages/index.html?8+ntsysv">ntsysv</A>(8)</B>
<P>
<A NAME="lbAG"> </A>
<H2>AUTHORS</H2>
<PRE>
H.J. Lu <<A HREF="mailto:[email protected]">[email protected]</A>>
</PRE>
<P>
<HR>
<A NAME="index"> </A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">FILES</A><DD>
<DT><A HREF="#lbAF">SEE ALSO</A><DD>
<DT><A HREF="#lbAG">AUTHORS</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/manpages/index.html">man2html</A>,
using the manual pages.<BR>
Time: 05:34:30 GMT, December 24, 2015
</div></div>
</body>
</HTML>
| yuweijun/yuweijun.github.io | manpages/man8/sys-unconfig.8.html | HTML | mit | 2,350 |
{% extends 'blog_base.html' %}
{% block title %}首页{% endblock %}
{% block article_content %}
<main class="main">
<div class="main__content posts">
<div class="wrapper">
<ul class="posts__list">
{% for blog in blog_list %}
<li>
<a href="{{ blog.get_absolute_url }}">
<h2 class="posts__title">{{ blog.title }}</h2>
<span class="posts__date">{{ blog.pub_date|date:'Y-m-d' }}</span>
</a>
</li>
{% endfor %}
</ul>
</div>
<div class="pagination">
<div class="wrapper">
<span class="pagination--previous">
<i class="fa fa-angle-double-left"></i>
Previous
</span>
<a href="/page2" class="pagination--next">
Next
<i class="fa fa-angle-double-right"></i>
</a>
</div>
</div>
</div>
</main>
{% endblock %}
| encorehu/hublog | blog/templates/blog/index.html | HTML | mit | 1,016 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Boney CSS Grid">
<meta name="author" content="Recidvst">
<title>Boney CSS Grid</title>
<link href="dist/app.min.css" rel="stylesheet">
</head>
<body>
<main class="container">
<div class="b-col-3 mob tab phab"></div>
<div class="b-col-3"></div>
<div class="b-col-3"></div>
<div class="b-col-1"></div>
<div class="b-col-2"></div>
<div class="b-col-2 mob tab phab"></div>
<div class="b-col-6"></div>
<div class="b-col-6"></div>
<div class="b-col-6"></div>
<div class="b-col-6"></div>
<div class="b-col-6"></div>
<div class="b-col-6"></div>
</main>
</body>
</html>
| Recidvst/boney.css | index.html | HTML | mit | 870 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hydra-battles: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.11.1 / hydra-battles - 0.5</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
hydra-battles
<small>
0.5
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-01-04 15:07:36 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-04 15:07:36 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.11.1 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.06.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.06.1 Official 4.06.1 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-community/hydra-battles"
dev-repo: "git+https://github.com/coq-community/hydra-battles.git"
bug-reports: "https://github.com/coq-community/hydra-battles/issues"
license: "MIT"
synopsis: "Exploration of some properties of Kirby and Paris' hydra battles, with the help of Coq"
description: """
An exploration of some properties of Kirby and Paris' hydra battles,
with the help of the Coq Proof assistant. This development includes
the study of several representations of ordinal numbers, and a part
of the so-called Ketonen and Solovay machinery (combinatorial
properties of epsilon0)."""
build: ["dune" "build" "-p" name "-j" jobs]
depends: [
"dune" {>= "2.5"}
"coq" {>= "8.13" & < "8.15~"}
"coq-equations" {>= "1.2" & < "1.4~"}
]
tags: [
"category:Mathematics/Combinatorics and Graph Theory"
"category:Mathematics/Logic/Foundations"
"keyword:Ketonen-Solovay machinery"
"keyword:ordinals"
"keyword:primitive recursive functions"
"logpath:hydras"
"date:2021-10-15"
]
authors: [
"Pierre Castéran"
"Évelyne Contejean"
"Jeremy Damour"
"Russell O'Connor"
"Karl Palmskog"
"Clément Pit-Claudel"
"Théo Zimmermann"
]
url {
src: "https://github.com/coq-community/hydra-battles/archive/v0.5.tar.gz"
checksum: "sha512=7edd74fa408b996ebe7c4748046fda522f24a4b532c58b5ad55edeaa4bbd137ba9f21b0b6c1f824d4e7c50f04fb6afe488dfbcd24702e8fe44eb75b780610458"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-hydra-battles.0.5 coq.8.11.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.11.1).
The following dependencies couldn't be met:
- coq-hydra-battles -> coq >= 8.13
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-hydra-battles.0.5</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.06.1-2.0.5/released/8.11.1/hydra-battles/0.5.html | HTML | mit | 7,469 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>search-trees: 25 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.6.1 / search-trees - 8.6.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
search-trees
<small>
8.6.0
<span class="label label-success">25 s 🏆</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-12-14 22:10:28 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-14 22:10:28 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.6.1 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.03.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.03.0 Official 4.03.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-contribs/search-trees"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/SearchTrees"]
depends: [
"ocaml"
"coq" {>= "8.6" & < "8.7~"}
]
tags: [ "keyword: binary search trees" "category: Computer Science/Data Types and Data Structures" "category: Miscellaneous/Extracted Programs/Data structures" ]
authors: [ "Pierre Castéran" ]
bug-reports: "https://github.com/coq-contribs/search-trees/issues"
dev-repo: "git+https://github.com/coq-contribs/search-trees.git"
synopsis: "Binary Search Trees"
description:
"Algorithms for collecting, searching, inserting and deleting elements in binary search trees on nat"
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/search-trees/archive/v8.6.0.tar.gz"
checksum: "md5=efa221306fe35f9800479f05a770bf8d"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-search-trees.8.6.0 coq.8.6.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam list; echo; ulimit -Sv 4000000; timeout 4h opam install -y --deps-only coq-search-trees.8.6.0 coq.8.6.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>13 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-search-trees.8.6.0 coq.8.6.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>25 s</dd>
</dl>
<h2>Installation size</h2>
<p>Total: 452 K</p>
<ul>
<li>81 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/Adding.vo</code></li>
<li>63 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/DeleteMax.vo</code></li>
<li>59 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/Deleting.vo</code></li>
<li>30 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/nat_trees.vo</code></li>
<li>25 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/List2Trees.vo</code></li>
<li>25 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/search_trees.vo</code></li>
<li>23 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/extraction.vo</code></li>
<li>23 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/Deleting.glob</code></li>
<li>17 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/DeleteMax.glob</code></li>
<li>15 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/Searching.vo</code></li>
<li>12 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/Deleting.v</code></li>
<li>11 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/search_trees.glob</code></li>
<li>10 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/Adding.glob</code></li>
<li>10 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/More_on_Lists.vo</code></li>
<li>9 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/DeleteMax.v</code></li>
<li>7 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/Adding.v</code></li>
<li>6 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/search_trees.v</code></li>
<li>5 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/nat_trees.glob</code></li>
<li>5 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/List2Trees.v</code></li>
<li>5 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/nat_trees.v</code></li>
<li>3 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/List2Trees.glob</code></li>
<li>3 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/Searching.v</code></li>
<li>2 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/More_on_Lists.v</code></li>
<li>1 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/extraction.v</code></li>
<li>1 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/Searching.glob</code></li>
<li>1 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/extraction.glob</code></li>
<li>1 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/SearchTrees/More_on_Lists.glob</code></li>
</ul>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq-search-trees.8.6.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.03.0-2.0.5/released/8.6.1/search-trees/8.6.0.html | HTML | mit | 9,946 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Wed Jun 18 10:16:52 PDT 2003 -->
<TITLE>
Constant Field Values
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
</HEAD>
<SCRIPT>
function asd()
{
parent.document.title="Constant Field Values";
}
</SCRIPT>
<BODY BGCOLOR="white" onload="asd();">
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="constant-values.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT>
<!--
if(window==top) {
document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<CENTER>
<H1>
Constant Field Values</H1>
</CENTER>
<HR SIZE="4" NOSHADE>
<B>Contents</B><UL>
<LI><A HREF="#org.apache">org.apache.*</A>
</UL>
<A NAME="org.apache"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD ALIGN="left"><FONT SIZE="+2">
<B>org.apache.*</B></FONT></TD>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD COLSPAN=3><B>org.apache.commons.el.<A HREF="org/apache/commons/el/ImplicitObjects.html">ImplicitObjects</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<A NAME="org.apache.commons.el.ImplicitObjects.sAttributeName"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
<CODE>static final java.lang.String</CODE></FONT></TD>
<TD ALIGN="left"><CODE><A HREF="org/apache/commons/el/ImplicitObjects.html#sAttributeName">sAttributeName</A></CODE></TD>
<TD ALIGN="right"><CODE>"org.apache.taglibs.standard.ImplicitObjects"</CODE></TD>
</TR>
</FONT></TD>
</TR>
</TABLE>
<P>
<P>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD COLSPAN=3><B>org.apache.commons.el.parser.<A HREF="org/apache/commons/el/parser/SimpleCharStream.html">SimpleCharStream</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<A NAME="org.apache.commons.el.parser.SimpleCharStream.staticFlag"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
<CODE>public static final boolean</CODE></FONT></TD>
<TD ALIGN="left"><CODE><A HREF="org/apache/commons/el/parser/SimpleCharStream.html#staticFlag">staticFlag</A></CODE></TD>
<TD ALIGN="right"><CODE>0</CODE></TD>
</TR>
</FONT></TD>
</TR>
</TABLE>
<P>
<P>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD COLSPAN=3><B>org.apache.commons.el.parser.<A HREF="org/apache/commons/el/parser/TokenMgrError.html">TokenMgrError</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<A NAME="org.apache.commons.el.parser.TokenMgrError.INVALID_LEXICAL_STATE"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
<CODE>static final int</CODE></FONT></TD>
<TD ALIGN="left"><CODE><A HREF="org/apache/commons/el/parser/TokenMgrError.html#INVALID_LEXICAL_STATE">INVALID_LEXICAL_STATE</A></CODE></TD>
<TD ALIGN="right"><CODE>2</CODE></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<A NAME="org.apache.commons.el.parser.TokenMgrError.LEXICAL_ERROR"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
<CODE>static final int</CODE></FONT></TD>
<TD ALIGN="left"><CODE><A HREF="org/apache/commons/el/parser/TokenMgrError.html#LEXICAL_ERROR">LEXICAL_ERROR</A></CODE></TD>
<TD ALIGN="right"><CODE>0</CODE></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<A NAME="org.apache.commons.el.parser.TokenMgrError.LOOP_DETECTED"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
<CODE>static final int</CODE></FONT></TD>
<TD ALIGN="left"><CODE><A HREF="org/apache/commons/el/parser/TokenMgrError.html#LOOP_DETECTED">LOOP_DETECTED</A></CODE></TD>
<TD ALIGN="right"><CODE>3</CODE></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<A NAME="org.apache.commons.el.parser.TokenMgrError.STATIC_LEXER_ERROR"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
<CODE>static final int</CODE></FONT></TD>
<TD ALIGN="left"><CODE><A HREF="org/apache/commons/el/parser/TokenMgrError.html#STATIC_LEXER_ERROR">STATIC_LEXER_ERROR</A></CODE></TD>
<TD ALIGN="right"><CODE>1</CODE></TD>
</TR>
</FONT></TD>
</TR>
</TABLE>
<P>
<P>
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="constant-values.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT>
<!--
if(window==top) {
document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
Copyright (c) 2001-2002 - Apache Software Foundation
</BODY>
</HTML>
| kennetham/LTA-Traffic-Demo | commons-el-1.0/docs/api/constant-values.html | HTML | mit | 7,986 |
<section class="" id="sfp-thanks">
<div class="container">
<!-- THANKS -->
<article class="thanks content">
{{ site.data.sfp.thankYou | markdownify }}
{{ site.data.sfp.thankYouNote | markdownify }}
{% for item in site.data.settings.contact %}
<a href="{{ item.url }}" class="contact">
<i class="fa fa-{{ item.icon }}"></i>{{ item.data }}
</a>
{% endfor %}
</article>
<!-- VIDEO -->
<article class="video content">
<a href="#" class="big-link thanks-play"><i class="fa fa-play"></i></a>
<div class="videoWrapper curtains">
<!-- -->
</div>
</article>
</div>
</section> | tayox/tales | _includes/job/sfp/thank-you.html | HTML | mit | 642 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>18 --> 19</title>
<link href="./../../assets/style.css" rel="stylesheet">
</head>
<body>
<h2>You have to be fast</h2>
<a href="./2ca27f1b38b516e2d1a8bc0a93e43eb991bacf00b6ffbf6a3151f0525b0eda04.html">Teleport</a>
<hr>
<a href="./../../about.md">About</a> (Spoilers! )
<script src="./../../assets/md5.js"></script>
<script>
window.currentLevel = 7;
</script>
<script src="./../../assets/script.js"></script>
</body>
</html> | simonmysun/praxis | TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/61dd64ebb4e07952719ecda3507d617d1148f1e0d810995db808173c1d50d2eb.html | HTML | mit | 550 |
<html><body>
<h4>Windows 10 x64 (18362.239)</h4><br>
<h2>_OBJECT_FOOTER</h2>
<font face="arial"> +0x000 HandleRevocationInfo : <a href="./_HANDLE_REVOCATION_INFO.html">_HANDLE_REVOCATION_INFO</a><br>
+0x020 ExtendedUserInfo : <a href="./_OB_EXTENDED_USER_INFO.html">_OB_EXTENDED_USER_INFO</a><br>
</font></body></html> | epikcraw/ggool | public/Windows 10 x64 (18362.239)/_OBJECT_FOOTER.html | HTML | mit | 323 |
<html><body>
<h4>Windows 10 x64 (18363.900)</h4><br>
<h2>_KPRCBFLAG</h2>
<font face="arial"> +0x000 PrcbFlags : Int4B<br>
+0x000 BamQosLevel : Pos 0, 2 Bits<br>
+0x000 PendingQosUpdate : Pos 2, 2 Bits<br>
+0x000 CacheIsolationEnabled : Pos 4, 1 Bit<br>
+0x000 PrcbFlagsReserved : Pos 5, 27 Bits<br>
</font></body></html> | epikcraw/ggool | public/Windows 10 x64 (18363.900)/_KPRCBFLAG.html | HTML | mit | 354 |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Touché Test Suite</title>
<link rel="stylesheet" href="mocha/mocha.css">
</head>
<body>
<div id="mocha"></div>
<script src="mocha/expect.js"></script>
<script src="mocha/mocha.js"></script>
<script>mocha.setup('bdd')</script>
<script src="../lib/core/augment.js"></script>
<script src="../lib/core/touche.js"></script>
<script src="../lib/core/util.js"></script>
<script src="../lib/core/cache.js"></script>
<script src="../lib/core/flow-handler.js"></script>
<script src="../lib/core/gesture-handler.js"></script>
<script src="../lib/core/super-handler.js"></script>
<script src="../lib/core/gesture.js"></script>
<script src="../lib/core/binder.js"></script>
<script src="../lib/core/point.js"></script>
<script src="../lib/core/rect.js"></script>
<script src="../lib/core/request-animation-frame.js"></script>
<script src="../lib/gestures/tap.js"></script>
<script src="../lib/gestures/doubletap.js"></script>
<script src="../lib/gestures/longtap.js"></script>
<script src="../lib/gestures/swipe.js"></script>
<script src="simulator.js"></script>
<script src="test.helper.js"></script>
<script src="test.utils.js"></script>
<script src="test.point.js"></script>
<script src="test.rect.js"></script>
<script src="test.tap.js"></script>
<script src="test.doubletap.js"></script>
<script src="test.longtap.js"></script>
<script src="test.2fingertap.js"></script>
<script src="test.swipe.js"></script>
<script src="test.combined.js"></script>
<script src="test.user-api.js"></script>
<script>if (!window._phantom) mocha.run();</script>
</body>
</html>
| stoffeastrom/touche | test/index.html | HTML | mit | 1,688 |
<!DOCTYPE html>
<html>
<head>
<title>List example</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<link rel="stylesheet" type="text/css" href="styles.css">
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="../src/jquery.searcher.js"></script>
</head>
<body>
<label>Search for: <input id="listsearchinput" type="text" /></label>
<strong class="list-header">#. Title - Artist (Year)</strong>
<ol id="listdata" class="list-group">
<li>Like a Rolling Stone - Bob Dylan (1965)</li>
<li>(I Can't Get No) Satisfaction - The Rolling Stones (1965)</li>
<li>Imagine - John Lennon (1971)</li>
<li>What's Going On - Marvin Gaye (1971)</li>
<li>Respect - Aretha Franklin (1967)</li>
<li>Good Vibrations - The Beach Boys (1966)</li>
<li>Johnny B. Goode - Chuck Berry (1958)</li>
<li>Hey Jude - The Beatles (1968)</li>
<li>Smells Like Teen Spirit - Nirvana (1991)</li>
<li>What'd I Say - Ray Charles (1959)</li>
<li>My Generation - The Who (1965)</li>
<li>A Change Is Gonna Come - Sam Cooke (1964)</li>
<li>Yesterday - The Beatles (1965)</li>
<li>Blowin' in the Wind - Bob Dylan (1963)</li>
<li>London Calling - The Clash (1980)</li>
<li>I Want to Hold Your Hand - The Beatles (1963)</li>
<li>Purple Haze - Jimi Hendrix (1967)</li>
<li>Maybellene - Chuck Berry (1955)</li>
<li>Hound Dog - Elvis Presley (1956)</li>
<li>Let It Be - The Beatles (1970)</li>
<li>Born to Run - Bruce Springsteen (1975)</li>
<li>Be My Baby - The Ronettes (1963)</li>
<li>In My Life - The Beatles (1965)</li>
<li>People Get Ready - The Impressions (1965)</li>
<li>God Only Knows - The Beach Boys (1966)</li>
<li>A Day in the Life - The Beatles (1967)</li>
<li>Layla - Derek and the Dominos (1970)</li>
<li>(Sittin' on) the Dock of the Bay - Otis Redding (1968)</li>
<li>Help! - The Beatles (1965)</li>
<li>I Walk the Line - Johnny Cash (1956)</li>
<li>Stairway to Heaven - Led Zeppelin (1971)</li>
<li>Sympathy for the Devil - The Rolling Stones (1968)</li>
<li>River Deep, Mountain High - Tina Turner (1966)</li>
<li>You've Lost That Lovin' Feeling - Righteous Brothers (1964)</li>
<li>Light My Fire - The Doors (1967)</li>
<li>One - U2 (1991)</li>
<li>No Woman, No Cry - Bob Marley (1975)</li>
<li>Gimme Shelter - The Rolling Stones (1969)</li>
<li>That'll Be the Day - Buddy Holly (1957)</li>
<li>Dancin' in the Streets - Martha and the Vandellas (1964)</li>
<li>The Weight - The Band (1968)</li>
<li>Waterloo Sunset - The Kinks (1968)</li>
<li>Tutti Frutti - Little Richard (1956)</li>
<li>Georgia on My Mind - Ray Charles (1960)</li>
<li>Heartbreak Hotel - Elvis Presley (1956)</li>
<li>Heroes - David Bowie (1977)</li>
<li>Bridge Over Troubled Water - Simon & Garfunkel (1970)</li>
<li>All Along the Watchtower - Jimi Hendrix (1968)</li>
<li>Hotel California - The Eagles (1976)</li>
<li>The Tracks of My Tears - Smokey Robinson (1965)</li>
<li>The Message - Grandmaster Flash (1982)</li>
<li>When Doves Cry - Prince (1984)</li>
<li>Anarchy in the U.K. - The Sex Pistols (1977)</li>
<li>When a Man Loves a Woman - Percy Sledge (1966)</li>
<li>Louie Louie - The Kingsmen (1963)</li>
<li>Long Tall Sally - Little Richard (1956)</li>
<li>A Whiter Shade of Pale - Procol Harum (1967)</li>
<li>Billie Jean - Michael Jackson (1983)</li>
<li>The Times They Are A-Changin' - Bob Dylan (1964)</li>
<li>Let's Stay Together - Al Green (1971)</li>
<li>Whole Lotta Shakin' Going On - Jerry Lee Lewis (1957)</li>
<li>Bo Diddley - Bo Diddley (1955)</li>
<li>For What It's Worth - Buffalo Springfield (1967)</li>
<li>She Loves You - The Beatles (1963)</li>
<li>Sunshine of Your Love - Cream (1968)</li>
<li>Redemption Song - Bob Marley (1980)</li>
<li>Jailhouse Rock - Elvis Presley (1957)</li>
<li>Tangled Up in Blue - Bob Dylan (1975)</li>
<li>Crying - Roy Orbison (1961)</li>
<li>Walk On By - Dionne Warwick (1964)</li>
<li>California Girls - The Beach Boys (1965)</li>
<li>Papa's Got a Brand New Bag - James Brown (1966)</li>
<li>Summertime Blues - Eddie Cochran (1958)</li>
<li>Superstition - Stevie Wonder (1972)</li>
<li>Whole Lotta Love - Led Zeppelin (1969)</li>
<li>Strawberry Fields Forever - The Beatles (1967)</li>
<li>Mystery Train - Elvis Presley (1955)</li>
<li>I Got You (I Feel Good) - James Brown (1965)</li>
<li>Mr. Tambourine Man - The Byrds (1965)</li>
<li>I Heard It Through the Grapevine - Marvin Gaye (1968)</li>
<li>Blueberry Hill - Fats Domino (1956)</li>
<li>You Really Got Me - The Kinks (1964)</li>
<li>Norwegian Wood (This Bird Has Flown) - The Beatles (1965)</li>
<li>Every Breath You Take - The Police (1983)</li>
<li>Crazy - Patsy Cline (1961)</li>
<li>Thunder Road - Bruce Springsteen (1975)</li>
<li>Ring of Fire - Johnny Cash (1963)</li>
<li>My Girl - The Temptations (1965)</li>
<li>California Dreamin' - The Mamas & The Papas (1965)</li>
<li>In the Still of the Night - The Five Satins (1956)</li>
<li>Suspicious Minds - Elvis Presley (1969)</li>
<li>Blitzkrieg Bop - The Ramones (1976)</li>
<li>I Still Haven't Found What I'm Looking For - U2 (1987)</li>
<li>Good Golly, Miss Molly - Little Richard (1958)</li>
<li>Blue Suede Shoes - Carl Perkins (1956)</li>
<li>Great Balls of Fire - Jerry Lee Lewis (1957)</li>
<li>Roll Over Beethoven - Chuck Berry (1956)</li>
<li>Love and Happiness - Al Green (1972)</li>
<li>Fortunate Son - Creedence Clearwater Revival (1969)</li>
<li>You Can't Always Get What You Want - Rolling Stones (1969)</li>
</ol>
<script>
$("#listdata").searcher({
itemSelector: "li",
textSelector: "",
inputSelector: "#listsearchinput"
});
</script>
</body>
</html> | lloiser/jquery-searcher | examples/list.html | HTML | mit | 5,986 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Coq bench</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../../..">Unstable</a></li>
<li class="active"><a href="">8.4.dev / contrib:ergo dev</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="../../../../../about.html">About</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../../..">« Up</a>
<h1>contrib:ergo <small>dev</small></h1>
<table class="table table-striped text-center">
<thead>
<tr>
<td>Date</td>
<td>Time</td>
<td>Relative</td>
<td>Status</td>
</tr>
</thead>
<tbody>
<tr>
<td>2015-01-30</td>
<td>03:04:02</td>
<td><script>document.write(moment("2015-01-30 03:04:02 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script></td>
<td class="info"><a href="2015-01-30_03-04-02.html">Not compatible with this Coq</a></td>
</tr>
<tr>
<td>2015-01-07</td>
<td>03:53:32</td>
<td><script>document.write(moment("2015-01-07 03:53:32 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script></td>
<td class="info"><a href="2015-01-07_03-53-32.html">Not compatible with this Coq</a></td>
</tr>
<tr>
<td>2014-12-12</td>
<td>08:42:09</td>
<td><script>document.write(moment("2014-12-12 08:42:09 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script></td>
<td class="info"><a href="2014-12-12_08-42-09.html">Not compatible with this Coq</a></td>
</tr>
<tr>
<td>2014-12-04</td>
<td>23:21:02</td>
<td><script>document.write(moment("2014-12-04 23:21:02 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script></td>
<td class="info"><a href="2014-12-04_23-21-02.html">Not compatible with this Coq</a></td>
</tr>
<tr>
<td>2014-11-29</td>
<td>09:29:33</td>
<td><script>document.write(moment("2014-11-29 09:29:33 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script></td>
<td class="info"><a href="2014-11-29_09-29-33.html">Not compatible with this Coq</a></td>
</tr>
<tr>
<td>2014-11-20</td>
<td>13:31:52</td>
<td><script>document.write(moment("2014-11-20 13:31:52 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script></td>
<td class="info"><a href="2014-11-20_13-31-52.html">Not compatible with this Coq</a></td>
</tr>
<tr>
<td>2014-11-18</td>
<td>23:44:23</td>
<td><script>document.write(moment("2014-11-18 23:44:23 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script></td>
<td class="danger"><a href="2014-11-18_23-44-23.html">Lint error</a></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html> | coq-bench/coq-bench.github.io-old | clean/Linux-x86_64-4.01.0-1.2.0/unstable/8.4.dev/contrib:ergo/dev/index.html | HTML | mit | 5,436 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>nucleo-dynamixel: SPI Slave Select Management</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">nucleo-dynamixel
 <span id="projectnumber">0.0.1</span>
</div>
<div id="projectbrief">A library for controlling dynamixel servomotors, designed for nucleo stm32</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li class="current"><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group___s_p_i___slave___select__management.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#define-members">Macros</a> </div>
<div class="headertitle">
<div class="title">SPI Slave Select Management<div class="ingroups"><a class="el" href="group___s_t_m32_f4xx___h_a_l___driver.html">STM32F4xx_HAL_Driver</a> » <a class="el" href="group___s_p_i.html">SPI</a> » <a class="el" href="group___s_p_i___exported___constants.html">SPI Exported Constants</a></div></div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga0bf14691b9d03eb158f190cefa7ab8fc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga0bf14691b9d03eb158f190cefa7ab8fc"></a>
#define </td><td class="memItemRight" valign="bottom"><b>SPI_NSS_SOFT</b>   <a class="el" href="group___peripheral___registers___bits___definition.html#ga0e236047e05106cf1ba7929766311382">SPI_CR1_SSM</a></td></tr>
<tr class="separator:ga0bf14691b9d03eb158f190cefa7ab8fc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga62c42a5e28ce3b0dc92c5186c10accf8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga62c42a5e28ce3b0dc92c5186c10accf8"></a>
#define </td><td class="memItemRight" valign="bottom"><b>SPI_NSS_HARD_INPUT</b>   ((uint32_t)0x00000000)</td></tr>
<tr class="separator:ga62c42a5e28ce3b0dc92c5186c10accf8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab7f2da432661406a37fa2afe4efacd87"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gab7f2da432661406a37fa2afe4efacd87"></a>
#define </td><td class="memItemRight" valign="bottom"><b>SPI_NSS_HARD_OUTPUT</b>   ((uint32_t)0x00040000)</td></tr>
<tr class="separator:gab7f2da432661406a37fa2afe4efacd87"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
</ul>
</div>
</body>
</html>
| team-diana/nucleo-dynamixel | docs/html/group___s_p_i___slave___select__management.html | HTML | mit | 6,536 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Code Coverage for C:\xampp\htdocs\monitor\application/views/errors</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<header>
<div class="container">
<div class="row">
<div class="span12">
<ul class="breadcrumb">
<li><a href="index.html">C:\xampp\htdocs\monitor\application</a> <span class="divider">/</span></li>
<li><a href="views.html">views</a> <span class="divider">/</span></li>
<li class="active">errors</li>
<li>(<a href="views_errors.dashboard.html">Dashboard</a>)</li>
</ul>
</div>
</div>
</div>
</header>
<div class="container">
<table class="table table-bordered">
<thead>
<tr>
<td> </td>
<td colspan="9"><div align="center"><strong>Code Coverage</strong></div></td>
</tr>
<tr>
<td> </td>
<td colspan="3"><div align="center"><strong>Lines</strong></div></td>
<td colspan="3"><div align="center"><strong>Functions and Methods</strong></div></td>
<td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td>
</tr>
</thead>
<tbody>
<tr>
<td class="danger">Total</td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0 / 185</div></td>
<td class="None big"> </td>
<td class="None small"><div align="right"></div></td>
<td class="None small"><div align="right"> </div></td>
<td class="None big"> </td>
<td class="None small"><div align="right"></div></td>
<td class="None small"><div align="right"> </div></td>
</tr>
<tr>
<td class="danger"><i class="icon-folder-open"></i> <a href="views_errors_cli.html">cli</a></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0 / 17</div></td>
<td class="None big"> </td>
<td class="None small"><div align="right"></div></td>
<td class="None small"><div align="right"> </div></td>
<td class="None big"> </td>
<td class="None small"><div align="right"></div></td>
<td class="None small"><div align="right"> </div></td>
</tr>
<tr>
<td class="danger"><i class="icon-folder-open"></i> <a href="views_errors_html.html">html</a></td>
<td class="danger big"> <div class="progress progress-danger" style="width: 100px;">
<div class="bar" style="width: 0.00%;"></div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0 / 168</div></td>
<td class="None big"> </td>
<td class="None small"><div align="right"></div></td>
<td class="None small"><div align="right"> </div></td>
<td class="None big"> </td>
<td class="None small"><div align="right"></div></td>
<td class="None small"><div align="right"> </div></td>
</tr>
</tbody>
</table>
<footer>
<h4>Legend</h4>
<p>
<span class="danger"><strong>Low</strong>: 0% to 35%</span>
<span class="warning"><strong>Medium</strong>: 35% to 70%</span>
<span class="success"><strong>High</strong>: 70% to 100%</span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.11</a> using <a href="http://www.php.net/" target="_top">PHP 7.1.9</a> and <a href="http://phpunit.de/">PHPUnit 3.7.21</a> at Mon Oct 16 12:22:29 CEST 2017.</small>
</p>
</footer>
</div>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
</body>
</html>
| kveeen/monitorTA | application/tests/build/coverage/views_errors.html | HTML | mit | 4,430 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRResult" id="SR_fidstring">
<div class="SREntry">
<a id="Item0" onkeydown="return searchResults.Nav(event,0)" onkeypress="return searchResults.Nav(event,0)" onkeyup="return searchResults.Nav(event,0)" class="SRSymbol" href="../namespaceSteinberg.html#ad4c02134d1ee42389f3d94717935a1d5" target="_parent">FIDString</a>
<span class="SRScope">Steinberg</span>
</div>
</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
--></script>
</div>
</body>
</html>
| rcgilbert/csc344-wi14 | SDKs/VST3 SDK/doc/base/search/typedefs_66.html | HTML | mit | 1,203 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_73) on Thu Mar 24 14:34:21 PDT 2016 -->
<title>Filter (continuum-core 0.1.2 API)</title>
<meta name="date" content="2016-03-24">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Filter (continuum-core 0.1.2 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../continuum/slice/Const.html" title="class in continuum.slice"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../continuum/slice/Filter.Action.html" title="enum in continuum.slice"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?continuum/slice/Filter.html" target="_top">Frames</a></li>
<li><a href="Filter.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested.class.summary">Nested</a> | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">continuum.slice</div>
<h2 title="Interface Filter" class="title">Interface Filter</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Known Implementing Classes:</dt>
<dd><a href="../../continuum/core/slice/AndFilter.html" title="class in continuum.core.slice">AndFilter</a>, <a href="../../continuum/core/slice/KTimestampFilter.html" title="class in continuum.core.slice">KTimestampFilter</a>, <a href="../../continuum/core/slice/NameFilter.html" title="class in continuum.core.slice">NameFilter</a>, <a href="../../continuum/core/slice/ParticlesFilter.html" title="class in continuum.core.slice">ParticlesFilter</a>, <a href="../../continuum/core/slice/STimestampFilter.html" title="class in continuum.core.slice">STimestampFilter</a></dd>
</dl>
<hr>
<br>
<pre>public interface <span class="typeNameLabel">Filter</span></pre>
<div class="block">Time scan filter engines
Created by zack on 2/12/16.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../continuum/slice/Filter.Action.html" title="enum in continuum.slice">Filter.Action</a></span></code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="../../continuum/slice/Filter.Action.html" title="enum in continuum.slice">Filter.Action</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../continuum/slice/Filter.html#filter-continuum.atom.Atom-">filter</a></span>(<a href="../../continuum/atom/Atom.html" title="interface in continuum.atom">Atom</a> atom)</code> </td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="filter-continuum.atom.Atom-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>filter</h4>
<pre><a href="../../continuum/slice/Filter.Action.html" title="enum in continuum.slice">Filter.Action</a> filter(<a href="../../continuum/atom/Atom.html" title="interface in continuum.atom">Atom</a> atom)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../continuum/slice/Const.html" title="class in continuum.slice"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../continuum/slice/Filter.Action.html" title="enum in continuum.slice"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?continuum/slice/Filter.html" target="_top">Frames</a></li>
<li><a href="Filter.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested.class.summary">Nested</a> | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
| zackb/continuum | docs/html/javadoc/continuum/slice/Filter.html | HTML | mit | 9,100 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>gappa: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.0 / gappa - 1.4.6</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
gappa
<small>
1.4.6
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-12-26 20:28:19 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-26 20:28:19 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.7.0 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.08.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.08.1 Official release 4.08.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://gappa.gitlabpages.inria.fr/"
dev-repo: "git+https://gitlab.inria.fr/gappa/coq.git"
bug-reports: "https://gitlab.inria.fr/gappa/coq/issues"
license: "LGPL-3.0-or-later"
build: [
["autoconf"] {dev}
["./configure"]
["./remake" "-j%{jobs}%"]
]
install: ["./remake" "install"]
depends: [
"ocaml"
"ocamlfind" {build}
"coq" {>= "8.8.1" & < "8.14~"}
"coq-flocq" {>= "3.0" & < "4~"}
"conf-autoconf" {build & dev}
("conf-g++" {build} | "conf-clang" {build})
]
tags: [
"keyword:floating-point arithmetic"
"keyword:interval arithmetic"
"keyword:decision procedure"
"category:Computer Science/Decision Procedures and Certified Algorithms/Decision procedures"
"logpath:Gappa"
"date:2021-01-04"
]
authors: [ "Guillaume Melquiond <[email protected]>" ]
synopsis: "A Coq tactic for discharging goals about floating-point arithmetic and round-off errors using the Gappa prover"
url {
src: "https://gappa.gitlabpages.inria.fr/releases/gappalib-coq-1.4.6.tar.gz"
checksum: "sha512=bb9c431d320d9c66998ec02ba7d459ee3f00cb7b16f89e57f3d7eb4b89cd3c9254e98e3906a8dfac31f73e5a32918ad12eaeaf7504750d3bfdce878913b745d3"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-gappa.1.4.6 coq.8.7.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.7.0).
The following dependencies couldn't be met:
- coq-gappa -> coq >= 8.8.1
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-gappa.1.4.6</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.08.1-2.0.5/released/8.7.0/gappa/1.4.6.html | HTML | mit | 7,259 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Code Coverage for C:\xampp\htdocs\findingkostweb\application/views/akun/v_login.php</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<header>
<div class="container">
<div class="row">
<div class="span12">
<ul class="breadcrumb">
<li><a href="index.html">C:\xampp\htdocs\findingkostweb\application</a> <span class="divider">/</span></li>
<li><a href="views.html">views</a> <span class="divider">/</span></li>
<li><a href="views_akun.html">akun</a> <span class="divider">/</span></li>
<li class="active">v_login.php</li>
</ul>
</div>
</div>
</div>
</header>
<div class="container">
<table class="table table-bordered">
<thead>
<tr>
<td> </td>
<td colspan="10"><div align="center"><strong>Code Coverage</strong></div></td>
</tr>
<tr>
<td> </td>
<td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td>
<td colspan="4"><div align="center"><strong>Functions and Methods</strong></div></td>
<td colspan="3"><div align="center"><strong>Lines</strong></div></td>
</tr>
</thead>
<tbody>
<tr>
<td class="None">Total</td>
<td class="None big"> </td>
<td class="None small"><div align="right"></div></td>
<td class="None small"><div align="right"> </div></td>
<td class="None big"> </td>
<td class="None small"><div align="right"></div></td>
<td class="None small"><div align="right"> </div></td>
<td class="None small"><acronym title="Change Risk Anti-Patterns (CRAP) Index">CRAP</acronym></td>
<td class="success big"> <div class="progress progress-success" style="width: 100px;">
<div class="bar" style="width: 100.00%;"></div>
</div>
</td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">22 / 22</div></td>
</tr>
</tbody>
</table>
<table class="table table-borderless table-condensed">
<tbody>
<tr><td><div align="right"><a name="1"></a><a href="#1">1</a></div></td><td class="codeLine"><?php</td></tr>
<tr><td><div align="right"><a name="2"></a><a href="#2">2</a></div></td><td class="codeLine">$n = array(</td></tr>
<tr class="success popin" data-title="1 test covers line 3" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="3"></a><a href="#3">3</a></div></td><td class="codeLine"> 'type' => 'text',</td></tr>
<tr class="success popin" data-title="1 test covers line 4" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="4"></a><a href="#4">4</a></div></td><td class="codeLine"> 'name' => 'username',</td></tr>
<tr class="success popin" data-title="1 test covers line 5" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="5"></a><a href="#5">5</a></div></td><td class="codeLine"> 'id' => 'username',</td></tr>
<tr class="success popin" data-title="1 test covers line 6" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="6"></a><a href="#6">6</a></div></td><td class="codeLine"> 'value' => set_value('username'),</td></tr>
<tr><td><div align="right"><a name="7"></a><a href="#7">7</a></div></td><td class="codeLine"> 'class' => 'validate required'</td></tr>
<tr class="success popin" data-title="1 test covers line 8" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="8"></a><a href="#8">8</a></div></td><td class="codeLine">);</td></tr>
<tr><td><div align="right"><a name="9"></a><a href="#9">9</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="10"></a><a href="#10">10</a></div></td><td class="codeLine">$p = array(</td></tr>
<tr class="success popin" data-title="1 test covers line 11" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="11"></a><a href="#11">11</a></div></td><td class="codeLine"> 'type' => 'password',</td></tr>
<tr class="success popin" data-title="1 test covers line 12" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"> 'name' => 'password',</td></tr>
<tr class="success popin" data-title="1 test covers line 13" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"> 'id' => 'password',</td></tr>
<tr><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"> 'class' => 'validate required'</td></tr>
<tr class="success popin" data-title="1 test covers line 15" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine">);</td></tr>
<tr><td><div align="right"><a name="16"></a><a href="#16">16</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine">$s = array(</td></tr>
<tr class="success popin" data-title="1 test covers line 18" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"> 'type' => 'submit',</td></tr>
<tr class="success popin" data-title="1 test covers line 19" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"> 'name' => 'submit',</td></tr>
<tr class="success popin" data-title="1 test covers line 20" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"> 'id' => 'login',</td></tr>
<tr class="success popin" data-title="1 test covers line 21" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"> 'value' => 'true',</td></tr>
<tr class="success popin" data-title="1 test covers line 22" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"> 'class' => 'btn waves-effect waves-light indigo darken-4',</td></tr>
<tr><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"> 'content'=> 'Login<i class="material-icons right">send</i>'</td></tr>
<tr class="success popin" data-title="1 test covers line 24" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine">);</td></tr>
<tr class="success popin" data-title="1 test covers line 25" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine">echo form_open('akun/submit_masuk');</td></tr>
<tr><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine">?></td></tr>
<tr><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"><div class="row"></td></tr>
<tr><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"> <div class="input-field col s8 offset-s2 indigo-text darken-4"></td></tr>
<tr><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"> <i class="material-icons prefix">perm_identity</i></td></tr>
<tr><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"><?php</td></tr>
<tr class="success popin" data-title="1 test covers line 31" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine">echo form_input($n);</td></tr>
<tr class="success popin" data-title="1 test covers line 32" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine">echo form_label($n['name'], $n['name']);</td></tr>
<tr><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine">?></td></tr>
<tr><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"> </div></td></tr>
<tr><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"> <div class="input-field col s8 offset-s2 indigo-text darken-4"></td></tr>
<tr><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"> <i class="material-icons prefix">vpn_key</i></td></tr>
<tr><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"><?php</td></tr>
<tr class="success popin" data-title="1 test covers line 38" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine">echo form_input($p);</td></tr>
<tr class="success popin" data-title="1 test covers line 39" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine">echo form_label($p['name'], $p['name']);</td></tr>
<tr><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine">?></td></tr>
<tr><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"> </div></td></tr>
<tr><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"></div></td></tr>
<tr><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"><div class="row center-align"></td></tr>
<tr><td><div align="right"><a name="44"></a><a href="#44">44</a></div></td><td class="codeLine"><?php</td></tr>
<tr class="success popin" data-title="1 test covers line 45" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine">echo form_button($s);</td></tr>
<tr class="success popin" data-title="1 test covers line 46" data-content="<ul><li class="success">Akun_test::test_masuk</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine">echo form_close();</td></tr>
<tr><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine">?></td></tr>
</tbody>
</table>
<footer>
<h4>Legend</h4>
<p>
<span class="success"><strong>Executed</strong></span>
<span class="danger"><strong>Not Executed</strong></span>
<span class="warning"><strong>Dead Code</strong></span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.11</a> using <a href="http://www.php.net/" target="_top">PHP 5.6.3</a> and <a href="http://phpunit.de/">PHPUnit 3.7.21</a> at Sat Oct 14 6:11:08 CEST 2017.</small>
</p>
</footer>
</div>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<script type="text/javascript">$('.popin').popover({trigger: 'hover'});</script>
</body>
</html>
| satrio6210/KPPL | application/tests/build/coverage/views_akun_v_login.php.html | HTML | mit | 14,237 |
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>條目 </b></th><td class="std2">掣襟露肘</td></tr>
<tr><th class="std1"><b>注音 </b></th><td class="std2">ㄔㄜ<sup class="subfont">ˋ</sup> ㄐ|ㄣ ㄌㄨ<sup class="subfont">ˋ</sup> ㄓㄡ<sup class="subfont">ˇ</sup></td></tr>
<tr><th class="std1"><b>漢語拼音 </b></th><td class="std2"><font class="english_word">chè jīn lù zhǒu</font></td></tr>
<tr><th class="std1"><b>釋義 </b></th><td class="std2">拉整衣襟,即露出手肘。形容處境的困窘。醒世姻緣傳˙第三十五回:<img src=/cydic/dicword/fa40.gif border=0 alt=* class=fontimg valign=center>宗昭原是寒素之家,中了舉,百務齊作的時候,去了這四十兩銀,弄得手裡掣襟露肘。<img src=/cydic/dicword/fa41.gif border=0 alt=* class=fontimg valign=center>亦作<img src=/cydic/dicword/fa40.gif border=0 alt=* class=fontimg valign=center>掣襟肘見<img src=/cydic/dicword/fa41.gif border=0 alt=* class=fontimg valign=center>。</td></tr>
<tr><th class="std1"><b><font class="fltypefont">附錄</font> </b></th><td class="std2">修訂本參考資料</td></tr>
</td></tr></table></div> <!-- flayoutclass_first --><div class="flayoutclass_second"></div> <!-- flayoutclass_second --></div> <!-- flayoutclass --></td></tr></table>
| BuzzAcademy/idioms-moe-unformatted-data | all-data/15000-15999/15554-22.html | HTML | mit | 1,606 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Recipes - Easy Eatz! - Start Bootstrap Theme</title>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="css/business-casual.css" rel="stylesheet">
<!-- Fonts -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Josefin+Slab:100,300,400,600,700,100italic,300italic,400italic,600italic,700italic" rel="stylesheet" type="text/css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="brand">Easy Eatz!</div>
<!-- Navigation -->
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- navbar-brand is hidden on larger screens, but visible when the menu is collapsed -->
<a class="navbar-brand" href="index.html">Easy Eatz!</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href="about.html">Health Tips</a>
</li>
<li>
<a href="blog.html">Healthify</a>
</li>
<li>
<a href="contact.html">Submit A Recipe</a>
</li>
<li>
<a href="recipes.html">Recipes</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<div class="container">
<div class="row">
<div class="box">
<div class="col-lg-12">
<hr>
<h2 class="intro-text text-center"> Easy Eatz! Recipes
<strong>!</strong>
</h2>
<hr>
</div>
<div class="col-lg-12 text-center">
<img class="img-responsive img-border img-full" src="img/waffles.jpg" alt="">
<h2>Spinach Protein Waffles</h2>
<p>Nutrition Information
Serving size: 1 waffle Calories: 217 Fat: 7 g Saturated fat: 2 g Unsaturated fat: 4 g Trans fat: 0 g Carbohydrates: 22 g Sugar: 4 g Sodium: 121 mg Fiber: 3 g Protein: 18 g Cholesterol: 191 mg
</p>
<br>
<h2><small>|15 minutes| 224 cal| </small>
</h2>
<p> This batter couldn’t be easier to put together. All you gotta do is blend up spinach, oats, Greek yogurt,
and egg and some stevia and you have yourself a real treat. Plus, you can’t really ever complain about a recipe that hides veggies!.. </p>
</h2>
</h2>
<p> Ingredients: </p>
<p>1 large egg</p>
<p>1/3 cup non-fat plain greek yogurt)</p>
<p>1/3 cup oats</p>
<p>1/2 packet stevia</p>
<p>1 handful of spanich</p>
<hr>
<img class="img-responsive img-border img-left" src="img/waffle2.jpg" alt="">
<hr class="visible-xs">
<p><b>Instructions</b>:</p>
Plug in waffle iron and turn on.
Blend all ingredients together.
When waffle iron is ready, pour all batter into the iron and close.
Cook until no longer steaming (5 minutes or so). Waffle will be slightly golden brown. Add fruits ontop to add more flavor if you want.
| Angelinacraig1234/final_project | waffles.html | HTML | mit | 5,008 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>18 --> 19</title>
<link href="./../../assets/style.css" rel="stylesheet">
</head>
<body>
<h2>You have to be fast</h2>
<a href="./567896e70f699dfe094084709054d4c1b0730dce79813030eeac341250fcfd15.html">Teleport</a>
<hr>
<a href="./../../about.md">About</a> (Spoilers! )
<script src="./../../assets/md5.js"></script>
<script>
window.currentLevel = 7;
</script>
<script src="./../../assets/script.js"></script>
</body>
</html> | simonmysun/praxis | TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/b021234ab3df7c01ea4306aa0557d764795dcf037fbee98710fd2b59a20e43d9.html | HTML | mit | 550 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>18 --> 19</title>
<link href="./../../assets/style.css" rel="stylesheet">
</head>
<body>
<h2>You have to be fast</h2>
<a href="./66a638782d9b0be12626e97e840504e657e1fdc71b8417cd214f7fafbf0df0a1.html">Teleport</a>
<hr>
<a href="./../../about.md">About</a> (Spoilers! )
<script src="./../../assets/md5.js"></script>
<script>
window.currentLevel = 7;
</script>
<script src="./../../assets/script.js"></script>
</body>
</html> | simonmysun/praxis | TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/8fee551e1e3c59b020f86ab7dc2b15275cff02c484ad2323c604da60246c1d86.html | HTML | mit | 550 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es" dir="ltr">
<!-- Mirrored from esclap.es/node/48 by HTTrack Website Copier/3.x [XR&CO'2010], Wed, 04 Jun 2014 07:45:07 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Veranos de la Villa: Alternativa oficial. | Eduardo Esclap.es</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" media="all" href="http://esclap.es/sites/esclap.es/files/css/css_267e79d13662e7dee2ccbe79a7f8f1aa.css" />
<style type="text/css">#container{width:960px;}.two-sidebars .content-inner{margin-right:480px;margin-left:0;}.sidebar-first .content-inner{margin-right:300px;margin-left:0;}.sidebar-last .content-inner{margin-right:180px;margin-left:0;}#sidebar-first{width:300px;margin-left:-480px;}#sidebar-last{width:180px;margin-left:-180px;}.sidebar-first #sidebar-first{width:300px;margin-left:-300px;}</style> <script type="text/javascript" src="http://esclap.es/sites/esclap.es/files/js/js_0a7639d91b02dc77717be30994429d96.js"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/", "googleanalytics": { "trackOutgoing": 1, "trackMailto": 1, "trackDownload": 1, "trackDownloadExtensions": "7z|aac|avi|csv|doc|exe|flv|gif|gz|jpe?g|js|mp(3|4|e?g)|mov|pdf|phps|png|ppt|rar|sit|tar|torrent|txt|wma|wmv|xls|xml|zip" } });
//--><!]]>
</script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
$(function() {
$("#main-content img").lazyload({
threshhold : 0,
placeholder : "/sites/esclap.es/modules/lazy_image_loader/images/transparent.gif",
event : "scroll",
effect : "fadeIn",
failurelimit : 10
});
});
//--><!]]>
</script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
var typekitHost = (("https:" == document.location.protocol) ? "https://" : "http://");
document.write(unescape("%3Cscript src='" + typekitHost + "use.typekit.com/yfi3gyd.js' type='text/javascript'%3E%3C/script%3E"));
//--><!]]>
</script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
try{Typekit.load();}catch(e){}
//--><!]]>
</script>
</head>
<body class="one-sidebar sidebar-first">
<div id="container">
<div id="skip-nav" class="element-invisible">
<!-- To adjust the display of the skip link see the Advanced theme settings (General settings), and never use display:none! -->
<a href="#main-content">Skip to main content</a>
</div>
<div id="header" class="clearfix">
<div id="branding">
<div class="logo-site-name"><strong>
<span id="site-name"><a href="http://esclap.es/" rel="home">Eduardo Esclap.es</a></span> </strong></div>
<div id="site-slogan">Otro blog, este ya si eso.</div>
</div> <!-- /branding -->
<div id="header-region"><div class="block at-inline-menu clearfix primary-links">
<div class="block-inner">
<ul class="menu">
<li class="leaf"><a href="http://esclap.es/" title="">Blog</a></li>
</ul>
</div>
</div> <!-- /block -->
</div> <!-- /header region -->
</div> <!-- /header -->
<div id="columns"><div class="columns-inner clearfix">
<div id="content-column"><div class="content-inner">
<div id="main-content">
<div id="main-content-header">
<h1 id="page-title">Veranos de la Villa: Alternativa oficial.</h1> </div>
<div id="content"><div class="article">
<p class="submitted">Publicado el <em class="time">Mar, 11/08/2009 - 13:51</em></p>
En Agosto Madrid también chana! Así empieza esta <a href="http://patiomaravillas.net/veranosmaravillas/veranos-de-la-villa-2009.html">alternativa </a>a los <a href="http://patiomaravillas.net/veranosmaravillas/">veranos de la villa</a> llamada Los Veranos Maravillas. Actividades Culturales Gratuitas frente a la oferta de pago de la Comunidad de Madrid<br /><div class="separator" style="clear: both; text-align: center;"><a href="http://esclap.es/sites/esclap.es/files/images/veranos_maravillas_copia1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="198" src="http://esclap.es/sites/esclap.es/files/images/veranos_maravillas_copia1.jpg" width="200" /></a></div><div style="text-align: center;"></div>
<ul class="links inline"><li class="comment_forbidden">Array</li>
</ul>
</div> <!-- /article -->
</div>
</div> <!-- /main-content -->
</div></div> <!-- /content-column -->
<div id="sidebar-first" class="sidebar"><div class="block social-icons clear-block">
<div class="block-inner">
<p><a href="http://esclap.es/rss.xml" title="Suscribete al blog"><img class="rss" src="http://esclap.es/sites/all/icons/rss-128x128.png" /></a><a rel="me" href="http://www.linkedin.com/in/esclapes" title="Mi perfil en LinkedIn"><img src="http://esclap.es/sites/all/icons/linkedin.png" /></a><a href="http://delicious.com/ciberligre" title="Mis favoritos en Del.icio.us" rel="me"><img src="http://esclap.es/sites/all/icons/delicious.png" /></a><a href="http://picasaweb.google.com/ligre307" title="Fotos en Picasa"><img src="http://esclap.es/sites/all/icons/picasa.png" /></a><a rel="me" href="http://www.youtube.com/user/ciberligre" title="Canal en Youtube"><img src="http://esclap.es/sites/all/icons/youtube.png" /></a></p>
</div>
</div> <!-- /block -->
<div class="block twitterbox">
<div class="block-inner">
<h2 class="block-title title"><a href="http://twitter.com/esclapes" title="esclapes en twitter"><img height="23" src="http://esclap.es/sites/esclap.es/files/resize/sites/all/icons/twitter_logo-98x23.png" alt="" /></a></h2>
<div id="twitter_div">
<ul id="twitter_update_list"></ul>
</div>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script><script text="text/javascript" src="http://twitter.com/statuses/user_timeline/esclapes.json?callback=twitterCallback2&count=1"></script>
</div>
</div> <!-- /block -->
<div class="block at-center-content addfree">
<div class="block-inner">
<p><a href="http://www.adfreeblog.org/" target="_blank"> <img src="http://www.adfreeblog.org/adfreebutton2.jpg" /></a></p>
</div>
</div> <!-- /block -->
</div> <!-- /sidebar-first -->
</div></div> <!-- /columns -->
</div> <!-- /container -->
<script type="text/javascript" src="http://esclap.es/sites/esclap.es/files/js/js_fc71a33cb18511a062ab0a21fc79378b.js"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
//--><!]]>
</script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
try{var pageTracker = _gat._getTracker("UA-966627-7");pageTracker._trackPageview();} catch(err) {}
//--><!]]>
</script>
</body>
<!-- Mirrored from esclap.es/node/48 by HTTrack Website Copier/3.x [XR&CO'2010], Wed, 04 Jun 2014 07:45:07 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->
</html> | esclapes/esclapes.github.com | _scraping/_node/48.html | HTML | mit | 7,840 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Booking form</title>
<!-- Your META here -->
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0" name="viewport">
<!-- Stylesheets -->
<link rel="stylesheet" href="j-folder/css/demo.css">
<link rel="stylesheet" href="j-folder/css/font-awesome.min.css">
<link rel="stylesheet" href="j-folder/css/j-forms.css">
<!-- Scripts -->
<script src="j-folder/js/jquery.1.11.1.min.js"></script>
<script src="j-folder/js/jquery.ui.min.js"></script>
<script src="j-folder/js/jquery.maskedinput.min.js"></script>
<script src="j-folder/js/j-forms-multistep.js"></script>
<!--[if lt IE 10]>
<script src="j-folder/js/jquery.placeholder.min.js"></script>
<![endif]-->
</head>
<body class="bg-pic">
<div class="wrapper wrapper-640">
<form action="" method="" class="j-forms j-multistep" id="j-forms" novalidate>
<div class="header">
<p>Booking</p>
</div>
<!-- end /.header-->
<div class="content">
<!-- start steps -->
<div class="j-row">
<div class="span4 step">
<div class="steps">
<span>Step 1:</span>
<p>Personal info</p>
</div>
</div>
<div class="span4 step">
<div class="steps">
<span>Step 2:</span>
<p>Booking details</p>
</div>
</div>
<div class="span4 step">
<div class="steps">
<span>Step 3:</span>
<p>Comments</p>
</div>
</div>
</div>
<!-- end steps -->
<fieldset>
<div class="divider gap-bottom-25"></div>
<!-- start name -->
<div class="unit">
<label class="label">Your name</label>
<div class="input">
<label class="icon-right" for="name">
<i class="fa fa-user"></i>
</label>
<input type="text" id="name" name="name">
</div>
</div>
<!-- end name -->
<!-- start email phone -->
<div class="j-row">
<div class="span6 unit">
<label class="label">Your email</label>
<div class="input">
<label class="icon-right" for="email">
<i class="fa fa-envelope-o"></i>
</label>
<input type="email" id="email" name="email">
</div>
</div>
<div class="span6 unit">
<label class="label">Phone/Mobile</label>
<div class="input">
<label class="icon-right" for="phone">
<i class="fa fa-phone"></i>
</label>
<input type="text" id="phone" name="phone">
</div>
</div>
</div>
<!-- end email phone -->
</fieldset>
<fieldset>
<div class="divider gap-bottom-25"></div>
<!-- start guests -->
<div class="j-row">
<div class="span6 unit">
<label class="label">Adult guests</label>
<div class="input">
<label class="icon-right" for="adults">
<i class="fa fa-male"></i>
</label>
<input type="text" id="adults" name="adults">
<span class="tooltip tooltip-right-top">Number of adult guests</span>
</div>
</div>
<div class="span6 unit">
<label class="label">Children guests</label>
<div class="input">
<label class="icon-right" for="children">
<i class="fa fa-female"></i>
</label>
<input type="text" id="children" name="children">
<span class="tooltip tooltip-right-top">Number of children</span>
</div>
</div>
</div>
<!-- end guests -->
<!-- start date -->
<div class="j-row">
<div class="span6 unit">
<label class="label">Check-in date</label>
<div class="input">
<label class="icon-right" for="date_from">
<i class="fa fa-calendar"></i>
</label>
<input type="text" id="date_from" name="date_from">
</div>
</div>
<div class="span6 unit">
<label class="label">Check-out date</label>
<div class="input">
<label class="icon-right" for="date_to">
<i class="fa fa-calendar"></i>
</label>
<input type="text" id="date_to" name="date_to">
</div>
</div>
</div>
<!-- end date -->
</fieldset>
<fieldset>
<div class="divider gap-bottom-25"></div>
<!-- start message -->
<div class="unit">
<label class="label">Comments/Message</label>
<div class="input">
<textarea spellcheck="false" name="message"></textarea>
</div>
</div>
<!-- end message -->
</fieldset>
</div>
<!-- end /.content -->
<div class="footer">
<button type="submit" class="primary-btn multi-submit-btn">Booking</button>
<button type="button" class="primary-btn multi-next-btn">Next</button>
<button type="button" class="secondary-btn multi-prev-btn">Back</button>
</div>
<!-- end /.footer -->
</form>
</div>
<script>
$(document).ready(function(){
// Phone masking
$("#phone").mask('(999) 999-9999', {placeholder:'x'});
// Popup time interval
$(function() {
$( "#date_from" ).datepicker({
dateFormat: 'mm/dd/yy',
prevText: '<i class="fa fa-caret-left"></i>',
nextText: '<i class="fa fa-caret-right"></i>',
onClose: function( selectedDate ) {
$( "#date_to" ).datepicker( "option", "minDate", selectedDate );
}
});
$( "#date_to" ).datepicker({
dateFormat: 'mm/dd/yy',
prevText: '<i class="fa fa-caret-left"></i>',
nextText: '<i class="fa fa-caret-right"></i>',
onClose: function( selectedDate ) {
$( "#date_from" ).datepicker( "option", "maxDate", selectedDate );
}
});
});
});
</script>
</body>
</html> | Serious-Rage/SOCIAL-RAGE | j-forms/source/templates/booking_multistep_with_steps.html | HTML | mit | 5,860 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/><!-- using block title in layout.dt--><!-- using block ddox.defs in ddox.layout.dt--><!-- using block ddox.title in ddox.layout.dt-->
<title>Constructor GameObject.this</title>
<link rel="stylesheet" type="text/css" href="../../styles/ddox.css"/>
<link rel="stylesheet" href="../../prettify/prettify.css" type="text/css"/>
<script type="text/javascript" src="../../scripts/jquery.js">/**/</script>
<script type="text/javascript" src="../../prettify/prettify.js">/**/</script>
<script type="text/javascript" src="../../scripts/ddox.js">/**/</script>
</head>
<body onload="prettyPrint(); setupDdox();">
<nav id="main-nav"><!-- using block navigation in layout.dt-->
<ul class="tree-view">
<li class="collapsed tree-view">
<a href="#" class="package">components</a>
<ul class="tree-view">
<li>
<a href="../../components/animation.html" class=" module">animation</a>
</li>
<li>
<a href="../../components/assets.html" class=" module">assets</a>
</li>
<li>
<a href="../../components/camera.html" class=" module">camera</a>
</li>
<li>
<a href="../../components/icomponent.html" class=" module">icomponent</a>
</li>
<li>
<a href="../../components/lights.html" class=" module">lights</a>
</li>
<li>
<a href="../../components/material.html" class=" module">material</a>
</li>
<li>
<a href="../../components/mesh.html" class=" module">mesh</a>
</li>
<li>
<a href="../../components/userinterface.html" class=" module">userinterface</a>
</li>
</ul>
</li>
<li class=" tree-view">
<a href="#" class="package">core</a>
<ul class="tree-view">
<li>
<a href="../../core/dgame.html" class=" module">dgame</a>
</li>
<li>
<a href="../../core/gameobject.html" class="selected module">gameobject</a>
</li>
<li>
<a href="../../core/prefabs.html" class=" module">prefabs</a>
</li>
<li>
<a href="../../core/properties.html" class=" module">properties</a>
</li>
<li>
<a href="../../core/reflection.html" class=" module">reflection</a>
</li>
<li>
<a href="../../core/scene.html" class=" module">scene</a>
</li>
</ul>
</li>
<li class="collapsed tree-view">
<a href="#" class="package">graphics</a>
<ul class="tree-view">
<li class="collapsed tree-view">
<a href="#" class="package">adapters</a>
<ul class="tree-view">
<li>
<a href="../../graphics/adapters/adapter.html" class=" module">adapter</a>
</li>
<li>
<a href="../../graphics/adapters/linux.html" class=" module">linux</a>
</li>
<li>
<a href="../../graphics/adapters/mac.html" class=" module">mac</a>
</li>
<li>
<a href="../../graphics/adapters/win32.html" class=" module">win32</a>
</li>
</ul>
</li>
<li class="collapsed tree-view">
<a href="#" class="package">shaders</a>
<ul class="tree-view">
<li class="collapsed tree-view">
<a href="#" class="package">glsl</a>
<ul class="tree-view">
<li>
<a href="../../graphics/shaders/glsl/ambientlight.html" class=" module">ambientlight</a>
</li>
<li>
<a href="../../graphics/shaders/glsl/animatedgeometry.html" class=" module">animatedgeometry</a>
</li>
<li>
<a href="../../graphics/shaders/glsl/directionallight.html" class=" module">directionallight</a>
</li>
<li>
<a href="../../graphics/shaders/glsl/geometry.html" class=" module">geometry</a>
</li>
<li>
<a href="../../graphics/shaders/glsl/pointlight.html" class=" module">pointlight</a>
</li>
<li>
<a href="../../graphics/shaders/glsl/userinterface.html" class=" module">userinterface</a>
</li>
</ul>
</li>
<li>
<a href="../../graphics/shaders/glsl.html" class=" module">glsl</a>
</li>
<li>
<a href="../../graphics/shaders/shaders.html" class=" module">shaders</a>
</li>
</ul>
</li>
<li>
<a href="../../graphics/adapters.html" class=" module">adapters</a>
</li>
<li>
<a href="../../graphics/graphics.html" class=" module">graphics</a>
</li>
<li>
<a href="../../graphics/shaders.html" class=" module">shaders</a>
</li>
</ul>
</li>
<li class="collapsed tree-view">
<a href="#" class="package">utility</a>
<ul class="tree-view">
<li>
<a href="../../utility/awesomium.html" class=" module">awesomium</a>
</li>
<li>
<a href="../../utility/concurrency.html" class=" module">concurrency</a>
</li>
<li>
<a href="../../utility/config.html" class=" module">config</a>
</li>
<li>
<a href="../../utility/filepath.html" class=" module">filepath</a>
</li>
<li>
<a href="../../utility/input.html" class=" module">input</a>
</li>
<li>
<a href="../../utility/output.html" class=" module">output</a>
</li>
<li>
<a href="../../utility/string.html" class=" module">string</a>
</li>
<li>
<a href="../../utility/tasks.html" class=" module">tasks</a>
</li>
<li>
<a href="../../utility/time.html" class=" module">time</a>
</li>
</ul>
</li>
<li>
<a href="../../components.html" class=" module">components</a>
</li>
<li>
<a href="../../core.html" class=" module">core</a>
</li>
<li>
<a href="../../graphics.html" class=" module">graphics</a>
</li>
<li>
<a href="../../utility.html" class=" module">utility</a>
</li>
</ul>
<noscript>
<p style="color: red">The search functionality needs JavaScript enabled</p>
</noscript>
<div id="symbolSearchPane" style="display: none">
<p>
<input id="symbolSearch" type="text" placeholder="Search for symbols" onchange="performSymbolSearch(24);" onkeypress="this.onchange();" onpaste="this.onchange();" oninput="this.onchange();"/>
</p>
<ul id="symbolSearchResults" style="display: none"></ul>
<script type="application/javascript" src="../../symbols.js"></script>
<script type="application/javascript">
//<![CDATA[
var symbolSearchRootDir = "../../"; $('#symbolSearchPane').show();
//]]>
</script>
</div>
</nav>
<div id="main-contents">
<h1>Constructor GameObject.this</h1><!-- using block body in layout.dt--><!-- Default block ddox.description in ddox.layout.dt--><!-- Default block ddox.sections in ddox.layout.dt--><!-- using block ddox.members in ddox.layout.dt-->
<p> Creates basic <a href="../../core/gameobject/GameObject.html"><code class="prettyprint lang-d">GameObject</code></a> with <a href="../../core/gameobject/GameObject.transform.html"><code class="prettyprint lang-d">transform</code></a> and connection to <a href="../../core/gameobject/GameObject.transform.html"><code class="prettyprint lang-d">transform</code></a>'s emitter.
</p>
<section>
</section>
<section>
<h2>Prototype</h2>
<pre class="code prettyprint lang-d prototype">
this() shared;</pre>
</section>
<section>
<h2>Authors</h2><!-- using block ddox.authors in ddox.layout.dt-->
</section>
<section>
<h2>Copyright</h2><!-- using block ddox.copyright in ddox.layout.dt-->
</section>
<section>
<h2>License</h2><!-- using block ddox.license in ddox.layout.dt-->
</section>
</div>
</body>
</html> | Circular-Studios/Dash-Docs | api/v0.6.6/core/gameobject/GameObject.this.html | HTML | mit | 7,869 |
<!DOCTYPE html>
<html lang="ko">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<title>Junshoong의 기술블로그 - eclipse tag</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<link rel="stylesheet" href="../../theme/css/pygment.css" />
<link rel="stylesheet" href="../../theme/css/style.css" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="/atom.xml">
</head>
<body>
<div class="container-fluid">
<div class="row justify-content-start sticky-top header">
<div class="col-1 header-img">
<img class="profile-img" src="../../images/profile.png">
</div>
<div class="col header-title">
<h2 class="sitename"><a href="../.."> Junshoong의 기술블로그 </a></h2>
</div>
</div> <div class="row justify-content-around">
<div class="col-md-8 content">
<div class="posts">
<div class="post">
<h1 class="post-title">
<a href="../../linux/eclipse-freeze-linux/">[Linux] eclipse 실행시 시스템이 멈추는 현상</a>
</h1>
<span class="post-date">2016-03-08, Tue</span>
<p>
<p>eclipse 실행시 OS가 굳어버리는 문제가 있다.</p>
<p>GTK 버전 관련 이슈라고 한다.</p>
<p>실행 파일이 있는 디렉터리를 확인해보면 <code>eclipse.ini</code> 라는 설정 …</p>
</p>
</div>
</div>
</div>
<div class="col-md-3 sidebar">
<div class="list-group category">
<div class="list-group-item list-group-item-primary"> Category </div>
<a class="list-group-item list-group-item-action category-item" href="../../agile/">
Agile
<span class="category-item-count">(2)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../angular/">
Angular
<span class="category-item-count">(1)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../blog/">
Blog
<span class="category-item-count">(3)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../book/">
Book
<span class="category-item-count">(3)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../css/">
CSS
<span class="category-item-count">(1)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../ctf/">
CTF
<span class="category-item-count">(4)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../devops/">
DevOps
<span class="category-item-count">(2)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../django/">
Django
<span class="category-item-count">(6)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../docker/">
Docker
<span class="category-item-count">(2)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../editor/">
Editor
<span class="category-item-count">(3)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../english/">
English
<span class="category-item-count">(2)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../etc/">
ETC
<span class="category-item-count">(11)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../game/">
Game
<span class="category-item-count">(2)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../git/">
Git
<span class="category-item-count">(2)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../life/">
Life
<span class="category-item-count">(22)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../linux/">
Linux
<span class="category-item-count">(19)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../mac/">
Mac
<span class="category-item-count">(1)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../movie/">
Movie
<span class="category-item-count">(1)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../nginx/">
Nginx
<span class="category-item-count">(2)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../pelican/">
Pelican
<span class="category-item-count">(1)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../python/">
Python
<span class="category-item-count">(8)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../regex/">
Regex
<span class="category-item-count">(1)</span>
</a>
<a class="list-group-item list-group-item-action category-item" href="../../shell/">
Shell
<span class="category-item-count">(2)</span>
</a>
</div>
<div class="list-group social">
<div class="list-group-item list-group-item-primary"> Social </div>
<a class="list-group-item list-group-item-action" href="mailto:[email protected]"> email </a>
<a class="list-group-item list-group-item-action" href="https://www.facebook.com/vaporize93"> facebook </a>
<a class="list-group-item list-group-item-action" href="https://www.linkedin.com/in/junshoong"> linkedin </a>
<a class="list-group-item list-group-item-action" href="https://www.slideshare.net/junshoong"> slideshare </a>
<a class="list-group-item list-group-item-action" href="https://github.com/junshoong"> github </a>
<a class="list-group-item list-group-item-action" href="https://www.stackoverflow.com/users/4466697/junsu-kim"> stack-overflow </a>
<a class="list-group-item list-group-item-action" href=""> FEED </a>
</div>
</div> </div>
</div>
</body>
</html> | vaporize93/blog | tag/eclipse/index.html | HTML | mit | 7,078 |
<style type="text/css">
.ListaInstructores {margin-left: 4%; margin-top: 0%; visibility:hidden}
.size {font-size: 15px;}
.jumbotron{border-radius: 18px;}
.infocont{color:#fff; background-color: #D14841; margin: 1%; margin-bottom: 2%; border-radius: 13px;}
.infodesc{color:#fff; background-color: #D14841; margin-left: 20%; margin-bottom: 2%; border-radius: 13px;}
.user{}
.first{margin-left: 13%;}
.DescIco{margin-left: 47%;}
</style>
<!-- Right side column. Contains the navbar and content of the page -->
<aside class="right-side">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Rutinas
<small>Finalizar Rutina</small>
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Inicio</a></li>
<li class="">Rutinas</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<!-- HEADER DEL CONTENIDO-->
<h4 class="page-header">
Listado de Clientes
<small>
En este apartado encontrará toda la información de la rutina registrada para los Clientes de <span class="text-red">spin gym</span>,
podrá dar de alta los números de repeticiones y de circuitos para cada ejercicio de toda la rutina.
</small>
</h4>
<!-- HEADER DEL CONTENIDO-->
<div class="alert alert-success alert-dismissible" role="alert" style="display:none;" id="UsuarioEliminadoNotificacion">
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<strong>Bien Hecho!</strong> Cliente Eliminado.</div>
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<div class="col-sm-12">
<h4>Para relizar algún cambio de click sobre los campos vacíos (o con números si ya contiene) de <strong>Repeticiones</strong>
y <strong>Circuitos</strong>, anote los números y presionte <strong>Enter</strong>.
</h4>
</div>
</div><!-- /.box-header -->
<div class="box-body table-responsive" id="TablaDatos">
<div class="col-md-11">
<legend class="text-center">Información</legend>
<div class="row">
<div class="col-lg-3 infocont first col-xs-12">
<h4 class="text-center">Rutina</h4>
<i class="fa fa-star fa-3x col-md-offset-5"></i>
<p class="text-center">{{ejercicios[0].nb_rutina}}</p>
</div>
<div class="col-lg-3 infocont User col-xs-12">
<h4 class="text-center">Entrenador</h4>
<i class="fa fa-user fa-3x col-md-offset-5"></i>
<p class="text-center">{{ejercicios[0].nb_nombre+" "+ejercicios[0].nb_apellidos}}</p>
</div>
<div class="col-lg-3 infocont col-xs-12">
<h4 class="text-center">Categoria</h4>
<i class="fa fa-book fa-3x col-md-offset-5"></i>
<p class="text-center">{{ejercicios[0].nb_categoriarutina}}</p>
</div>
<div class="col-lg-8 infodesc col-xs-12">
<h4 class="text-center">Descripción</h4>
<i class="fa fa-commenting-o fa-3x DescIco" align="center"></i>
<p class="text-center">{{ejercicios[0].desc_rutina}}</p>
</div>
</div>
</div>
<table id="listados" class="table table-bordered table-striped col-xs-11 col-sm-11 size" >
<thead>
<tr>
<th class="text-center"> CODIGO </th>
<th class="text-center">EJERCICIO</th>
<th class="text-center">REPETICIONES</th>
<th class="text-center">SERIES</th>
<th class="text-center">DIA</th>
<th class="text-center">TIPO RUTINA</th>
<th class="text-center">MUSCULO</th>
</tr>
</thead>
<tbody id="tablecontent">
</tbody>
<tfoot>
<tr>
<th class="text-center"> CODIGO </th>
<th class="text-center">EJERCICIO</th>
<th class="text-center">REPETICIONES</th>
<th class="text-center">SERIES</th>
<th class="text-center">DIA</th>
<th class="text-center">TIPO RUTINA</th>
<th class="text-center">MUSCULO</th>
</tr>
</tfoot>
</table>
<div class="row">
<div class="col-sm-12">
<h3 class="box-title">Acciones</h3>
</div>
<div class="col-sm-1">
<button class="btn btn-success btn-sm" id="agregar" ng-click="FinalizarRutina()"><i class="fa fa-plus"></i> Finalizar Rutina</button>
</div>
</div>
</div>
</div>
</div>
</section>
</aside>
</div>
| lindemann18/spingyma | modulos/Rutinas/Rutinas_Prefinal.html | HTML | mit | 5,531 |
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Helper - Jekyll Boilerplate - Einfach statisch, mulitlinguale Seiten</title>
<meta name="description" content="Lorem ipsum">
<meta name="keywords" content="jekyll, boilerplate, html5, static">
<meta name="robots" content="index, follow" />
<meta name="language" content="de">
<meta name="viewport" content="width=device-width">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="stylesheet" href="/css/normalize.css">
<link rel="stylesheet" href="/css/foundation.css">
<link rel="stylesheet" href="/css/main.css">
<script src="/js/vendor/modernizr-2.6.2.min.js"></script>
</head>
<body>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
<!-- Add your site or application content here -->
<nav class="top-bar">
<ul class="title-area">
<!-- Title Area -->
<li class="name">
<h1><a href="/">Jekyll Boilerplate</a></h1>
</li>
<!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
</ul>
<ul class="right">
<li class="divider hide-for-small">
<dl class="sub-nav">
<dt>Sprache:</dt>
<dd class="active">
<a href="/deutsch/helper/">Deutsch</a>
</dd>
<dd >
<a href="/english/helper/">English</a>
</dd>
</dl>
</li>
</ul>
</nav>
<div class="row"></div>
<div class="row">
<div class="columns large-2">
<ul class="side-nav">
<li><h3>Navigation</h3></li>
<li class="divider"></li>
<li ><a href="/deutsch/debug/">Debug</a></li>
<li class="active"><a href="/deutsch/helper/">Helper</a></li>
</ul>
</div>
<div class="columns large-10">
<h2>Helper</h2>
<ul class="side-nav">
<li><a href="/deutsch/helper/lang-chooser/">Sprach-Wähler</a></li>
<li><a href="/deutsch/helper/navigation/">Navigation</a></li>
<li><a href="/deutsch/helper/url-builder/">Link-Builder</a></li>
</ul>
</div>
</div>
</body>
</html>
| makepanic/jekyll-i18n-boilerplate | _site/deutsch/helper/index.html | HTML | mit | 3,077 |
<!doctype html>
<html ng-csp ng-app="ngGiaffer.popup" ng-controller="PopupCtrl">
<head>
<link ng-href="vendor/bootstrap/dist/css/bootstrap-{{csstheme}}.css" rel="stylesheet" />
<script src="vendor/angular/angular.js"></script>
<script src="vendor/angular-florm/lib/angular-florm.js"></script>
<script src="vendor/jquery/dist/jquery.js"></script>
<script src="vendor/lodash/dist/lodash.js"></script>
<script src="vendor/bootstrap/dist/js/bootstrap.js"></script>
<script src="vendor/angular-bootstrap/ui-bootstrap-tpls.js"></script>
<script src="chrome/conf.js"></script>
<script src="lib/Giaffer.js"></script>
<script src="common/services/interestService.js"></script>
<script src="common/services/settingsService.js"></script>
<script src="chrome/popup/popup.js"></script>
<style>
body {
width: 500px;
height: 300px;
}
.ng-hide {
display:none;
}
section {
margin: 30px 30px 10px 30px;
text-align: center;
}
.results {
margin: 25px 10px 25px;
font-size: 1.2em;
}
.interest {
font-size: 115%;
font-weight:bold;
font-style:italic;
}
header {
padding: 1px 40px 1px 1px;
text-align: center;
}
.logo {
/* float: left;
margin: 15px 15px 0 30px;
*/
}
footer {
padding: 10px;
}
</style>
</head>
<body>
<header class="navbar-default">
<h2>
<img class="logo" src="images/icon-38.png">
Giaffer
</h2>
<div style="clear:both;"></div>
</header>
<section>
<div ng-show="firstVisit" class="alert alert-warning">
You have not configured your own interests yet.<br><a href="options.html#/interests/" target="_blank">Click here to manage them</a>
</div>
<p class="results">What about searching for <br>
<span ng-repeat="theme in search.themes"> <span ng-show='!$last && !$first'>,</span><span ng-show='$last'> and</span> <span class="interest">{{theme.name}}</span> </span> ?
</p>
<p>
<a class="btn btn-default btn-md" ng-click='newterms()'>
<span class="glyphicon glyphicon-refresh"></span> Pick others
</a>
<a id='search' class="btn btn-primary btn-md" role="button" href="{{search.url}}" target="_blank">
<span class="glyphicon glyphicon-search"></span> Let's search that !
</a>
</p>
</section>
<footer>
<div align="right" ng-show="!firstVisit">
<a href="options.html#/interests/" target="_blank">Manage interests</a>
</div>
</footer>
</body>
</html>
| mmai/giaffer | src/popup.html | HTML | mit | 2,431 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<base href="https://www.appsgeyser.com/">
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="stylesheet" type="text/css" href="https://app.appsgeyser.com/assets/deaec8c1/css/apps-style.css" media="all" />
<title>GoPass Android App - Download GoPass</title>
<meta name="keywords" content="App Builder,free app creator for android, android,
app, mobile, create app, free and easy, create app free no coding, create free android app,
Free App Builder, application creator, gopass">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- <link rel="image_src" href="-->
<!--" />-->
<meta property="og:title" content="Android App: GoPass" />
<meta property="og:site_name" content="AppsGeyser" />
<meta property="og:type" content="website">
<meta property="og:image" content="https://app.appsgeyser.com/public/247/2476601/4365912/thumbs/icon_GoPass_4365912_72.png" />
<!-- <meta property="og:image" content="https://chart.apis.google.com/chart?cht=qr&chs=300x300&chld=L|0&chl=-->
<!--"/>-->
<meta property="og:description" content="Make an App for Android for FREE. AppsGeyser is a free app maker. Build an app in seconds, promote existent business and earn a passive income." />
<meta property="og:url" content="https://app.appsgeyser.com/getwidget/GoPass_4365912" />
<meta name="geo.region" content="US-VA" />
<meta name="geo.placename" content="Alexandria" />
<meta name="geo.position" content="38.799972;-77.05069" />
<meta name="ICBM" content="38.799972, -77.05069" />
<meta name="description" content="Make an App for Android for FREE. AppsGeyser is a free app maker. Build an app in seconds, promote existent business and earn a passive income." />
<meta name="title" content="Android App: GoPass" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<meta name="robots" content="nofollow">
<link rel="canonical" href="https://app.appsgeyser.com/getwidget/GoPass_4365912" />
<link rel="stylesheet" type="text/css" href="https://yui.yahooapis.com/3.2.0/build/cssreset/reset-min.css" />
<link rel="stylesheet" type="text/css" href="https://app.appsgeyser.com/css/getwidget.css?c=0" />
<link rel="shortcut icon" href="https://app.appsgeyser.com/img/favicon.ico" type="image/x-icon" />
<script src="https://app.appsgeyser.com/js/jquery-2.0.3.min.js" type="text/javascript"></script>
<script src="https://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-179316-6']);
_gaq.push(['_setDomainName', 'appsgeyser.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
</script>
<style type="text/css">
div.seo-keywords {
position: absolute;
top: -2000px;
}
</style>
<script type="text/javascript" src="https://app.appsgeyser.com/js/fix-for-iframe-location-changing.js"></script>
</head>
<body style="margin: 0;">
<!-- Google Tag Manager -->
<noscript>
<iframe src="//www.googletagmanager.com/ns.html?id=GTM-NFSPN8" height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<script>
(function(w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src = '//www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-NFSPN8');
</script>
<!-- End Google Tag Manager -->
<div id="fb-root"></div>
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div class="seo-keywords"> <a href="https://app.appsgeyser.com/gamemaker/" title="App Builder">App Builder</a> FREE & Easy!App Builder No Coding! <img src="https://chart.apis.google.com/chart?cht=qr&chs=300x300&chld=L|0&chl=http%3A%2F%2Ffiles.appsgeyser.com%2FGoPass_4365912.apk"
alt="App Builder - How to make an app." title="App Builder"> FREE & Easy!App Builder No Coding! </div>
<div class="body">
<link rel="stylesheet" type="text/css" href="https://app.appsgeyser.com/css/slick.css" />
<script type="text/javascript" src="https://app.appsgeyser.com/js/slick.min.js"></script>
<script type="text/javascript" src="https://app.appsgeyser.com/js/magnific_popup.js"></script>
<script type="text/javascript" src="https://app.appsgeyser.com/js/getwidget.js"></script>
<script type="text/javascript" src="https://app.appsgeyser.com/js/jquery.js"></script>
<script type="text/javascript" src="https://app.appsgeyser.com/js/fancy.js"></script>
<link rel="stylesheet" type="text/css" href="https://app.appsgeyser.com/css/magnific_popup.css" />
<link rel="stylesheet" type="text/css" href="https://app.appsgeyser.com/css/getwidget_landing.css?c=0" />
<script type="text/javascript" src="https://app.appsgeyser.com/js/fancy.js"></script>
<script>
var jq142 = jQuery.noConflict();
</script>
<div class="landingPage" style="">
<section class="section section-main">
<div class="backgroundImage"></div>
<div class="phoneAndText">
<div class="titleBlock sectionBlock" style="">
<div class="appName"> GoPass </div>
<div class="shortDescription">
Introducing GoPass, the all-in-one transit tool that is like having a travel-sized tour guide at your side.
GoPass is the easy way to buy transit passes for DART, The T, the TRE and DCTA -- right on your phone!</br>
You can also plan trips, get next bus or train times and find out what’s happening in DFW.</br>
GoPass is your complete travel tool. The app is so easy to setup and use -- you’ll never buy a paper ticket again.
</div>
<div class="downloadBlockLanding">
<div class="scan-qr-code-block">
<div class="qrcode-top"> </div>
<div class="qrcode-middle"> <img src="https://chart.apis.google.com/chart?cht=qr&chs=140x140&chld=L|0&chl=
http%3A%2F%2Ffiles.appsgeyser.com%2FGoPass_4365912.apk" title="Download GoPass for Android" alt=" - " />
<div style="color: #666;"> Scan
<br/> QR code </div>
</div>
<div class="qrcode-bottom"> </div>
</div>
<div class="buttonsBlock">
<a id="downloadAPK" style="width: 252px;" href="https://app.appsgeyser.com/widgetdownload.php?widget=GoPass_4365912" class="download-button button growSmall" title="Download GoPass for Android">
<!-- <img src="https://www.appsgeyser.com/img/ic_file_download_white_24dp_2x.png" /> -->download </a>
</div>
</div>
<div class="social-links">
<a class="twitterIcon grow" href="https://twitter.com/intent/tweet?status=Download GoPass for Android!+https://appsgeyser.com/4365912"> <img src="https://appsgeyser.com/img/social_icons/twitter.png"> </a>
<a class="facebookIcon grow" href="https://www.facebook.com/sharer/sharer.php?u=https://appsgeyser.com/4365912&title=DownloadGoPass for Android!"> <img src="https://appsgeyser.com/img/social_icons/facebook.png"> </a>
<a class="plusIcon grow" href="https://plus.google.com/share?url=https://appsgeyser.com/4365912"> <img src="https://appsgeyser.com/img/social_icons/google.png"> </a>
</div>
<!--
<div class="createSameBlock">
<div class="createSameBlockText"> This App was created with AppsGeyser.
<br> Create an App like this one today! </div> <a href="https://www.appsgeyser.com/create/start/" class="create-button-top button grow" title="App Maker - How to make an app." alt="App Builder - How to create an app.">
create now
</a> </div>
-->
</div>
</div>
</section>
</div>
</div>
<!--
<div class="footer dashboardfooter">
<div class="footer-centered">
<div class="left_footer_block"> <span class="appgeysercopyright">Copyright <a rel="nofollow" href="https://www.besttoolbars.net/">Besttoolbars</a>, 2017</span> </div>
<div class="right_footer_block">
<ul class="dashboardinfolinks infolinks">
<li><a href="https://app.appsgeyser.com/" class="">App Maker</a></li>
<li><a href="https://app.appsgeyser.com/create/start" class="">Business App Maker</a></li>
<li><a href="https://app.appsgeyser.com/gamemaker" class="">App Game Maker</a></li>
<li><a rel="nofollow" href="https://app.appsgeyser.com/privacy" class="">Privacy Policy</a></li>
<li><a rel="nofollow" href="https://app.appsgeyser.com/legal" class="">Legal Info</a></li>
<li class="lastli"><a rel="nofollow" href="https://app.appsgeyser.com/dmca" class="">DMCA</a></li>
</ul>
</div>
</div>
</div>
-->
<!-- Google Code for Visited Appsgeyser Remarketing List -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1070959368;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "666666";
var google_conversion_label = "jqjDCJK4iAIQiJbW_gM";
var google_conversion_value = 0;
/* ]]> */
</script>
<script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/1070959368/?label=jqjDCJK4iAIQiJbW_gM&guid=ON&script=0" /> </div>
</noscript>
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function(d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter22613605 = new Ya.Metrika({
id: 22613605,
webvisor: true,
clickmap: true,
trackLinks: true,
accurateTrackBounce: true
});
} catch (e) {}
});
var n = d.getElementsByTagName("script")[0],
s = d.createElement("script"),
f = function() {
n.parentNode.insertBefore(s, n);
};
s.type = "text/javascript";
s.async = true;
s.src = (d.location.protocol == "https:" ? "https:" : "https:") + "//mc.yandex.ru/metrika/watch.js";
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else {
f();
}
})(document, window, "yandex_metrika_callbacks");
</script>
<noscript>
<div><img src="//mc.yandex.ru/watch/22613605" style="position:absolute; left:-9999px;" alt="" /></div>
</noscript>
<!-- /Yandex.Metrika counter -->
</body>
</html>
| Ephellon/ephellon.github.io | GoPass/download.html | HTML | mit | 11,596 |
<!-- footer -->
<footer>
<div class="top-bar" style = "background: -webkit-linear-gradient( rgba(255, 255, 255, .8), rgba(255, 255, 255, .8)), url({{ BASE_PATH }}/assets/images/pattern_background4.jpg); background: linear-gradient( rgba(255, 255, 255, .8), rgba(255, 255, 255, .8)), url({{ BASE_PATH }}/assets/images/pattern_background4.jpg); color: #333; padding: 150px 0 150px; background-repeat: repeat; background-position: center center; background-attachment: fixed; text-align: center;">
<h1><b>Hai un progetto in mente?</b></h1>
<p><i>"Sono sempre aperto ed interessato a nuove collaborazioni! Perchè non mi parli del tuo progetto?"</i></p>
<br /><p><a target="_blank" href="https://antoniotrento.net/it/contatti"><b>Contattami</b></a></p>
<div class="wave-container hidden-sm-down">
<div class="wave wave--grey"></div>
<div class="wave wave--white"></div>
</div>
</div>
</div>
</footer>
<!-- end footer -->
| lantoniotrento/lantoniotrento.github.io | _includes/themes/bootstrap/footer.html | HTML | mit | 1,017 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>FloatList</title>
<base href="/">
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
| paulbremer/floatlist | index.html | HTML | mit | 217 |
<!DOCTYPE html>
<html>
<head>
<title>The change you wanted was rejected (422)</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" type="text/css" href="errors.css">
</head>
<body class="rejected">
<!-- This file lives in public/422.html -->
<div class="dialog backdrop">
<div>
<h1 class="mainMessage">The change you wanted was rejected.</h1>
<p>Maybe you tried to change something you didn't have access to.</p>
</div>
<p>This means you'll most likely have to get ahold of Jordan.</p>
</div>
</body>
</html>
| yhordi/nfg_rails | public/422.html | HTML | mit | 606 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>ip::address_v4::to_string</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../ip__address_v4.html" title="ip::address_v4">
<link rel="prev" href="to_bytes.html" title="ip::address_v4::to_bytes">
<link rel="next" href="to_string/overload1.html" title="ip::address_v4::to_string (1 of 2 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="to_bytes.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../ip__address_v4.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="to_string/overload1.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.ip__address_v4.to_string"></a><a class="link" href="to_string.html" title="ip::address_v4::to_string">ip::address_v4::to_string</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="idp136733504"></a>
Get the address as a string in dotted decimal format.
</p>
<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="to_string/overload1.html" title="ip::address_v4::to_string (1 of 2 overloads)">to_string</a><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
<span class="emphasis"><em>» <a class="link" href="to_string/overload1.html" title="ip::address_v4::to_string (1 of 2 overloads)">more...</a></em></span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="to_string/overload2.html" title="ip::address_v4::to_string (2 of 2 overloads)">to_string</a><span class="special">(</span>
<span class="identifier">asio</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&</span> <span class="identifier">ec</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="emphasis"><em>» <a class="link" href="to_string/overload2.html" title="ip::address_v4::to_string (2 of 2 overloads)">more...</a></em></span>
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2014 Christopher M. Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="to_bytes.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../ip__address_v4.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="to_string/overload1.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
| dhh1128/intent | old/src/external/asio-1.10.2/doc/asio/reference/ip__address_v4/to_string.html | HTML | mit | 3,673 |
{% capture html %}
<ul class="nav">
{% assign page_folder = page.url | split: "/" | pop | join: "/" | append: "/" %}
{% assign entries = include.entries %}
{% for entry in entries %}
{% assign entry_folder = entry.url | split: "/" | pop | join: "/" | append: "/" %}
{% if include.root == true and entry.url == include.context %}
{% assign root_entry = true %}
{% else %}
{% assign root_entry = false %}
{% endif %}
{% if entry_folder == include.context or root_entry == true %}
{% assign entry_subfolder = entry.url %}
{% if page.url == entry.url or (root_entry != true and page_folder contains entry_subfolder) %}
{% assign entry_active = true %}
{% else %}
{% assign entry_active = false %}
{% endif %}
{% assign subentries = "" | split : "|" %}
{% if entry_active == true and root_entry != true %}
{% for subentry in entries %}
{% if subentry.url contains entry_subfolder and subentry.url != entry.url %}
{% assign subentries = subentries | push: subentry %}
{% endif %}
{% endfor %}
{% endif %}
<li class="{% if entry_active == true %}active{% endif %}">
<a href="{{ site.baseurl }}{{ entry.url }}">{{ entry.title }}</a>
{% if entry_active == true and subentries.size > 0 %}
{% include navigation.html context=entry_subfolder entries=subentries %}
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>
{% endcapture %}{{ html | strip_newlines | replace:' ','' | replace:' ','' | replace:' ',' ' }}
| graudeejs/releaf | docs/_includes/navigation.html | HTML | mit | 1,804 |
{% load easy_twitter_tags %}
<article class="twitter-feed">
<h3><a href="https://twitter.com/PASMALtd" title="@{{user}} on Twitter">@{{user}} on Twitter</a></h3>
<ul>
{% for tweet in tweets %}
<li>
<span>{{tweet.created_at|nice_date:0}}</span>
{% if tweet.entities.urls %}
<p>{{tweet.text|parse_urls:tweet.entities.urls|safe}}</p>
{% else %}
<p>{{tweet.text}}</p>
{% endif %}
</li>
{% endfor %}
</ul>
</article>
| publicFunction/django-easy-twitter | easy_twitter/templates/easy_twitter/twitter.html | HTML | mit | 447 |
<HTML>
<BODY BGCOLOR="white">
<PRE>
<FONT color="green">001</FONT> /*<a name="line.1"></a>
<FONT color="green">002</FONT> * Licensed to the Apache Software Foundation (ASF) under one or more<a name="line.2"></a>
<FONT color="green">003</FONT> * contributor license agreements. See the NOTICE file distributed with<a name="line.3"></a>
<FONT color="green">004</FONT> * this work for additional information regarding copyright ownership.<a name="line.4"></a>
<FONT color="green">005</FONT> * The ASF licenses this file to You under the Apache License, Version 2.0<a name="line.5"></a>
<FONT color="green">006</FONT> * (the "License"); you may not use this file except in compliance with<a name="line.6"></a>
<FONT color="green">007</FONT> * the License. You may obtain a copy of the License at<a name="line.7"></a>
<FONT color="green">008</FONT> *<a name="line.8"></a>
<FONT color="green">009</FONT> * http://www.apache.org/licenses/LICENSE-2.0<a name="line.9"></a>
<FONT color="green">010</FONT> *<a name="line.10"></a>
<FONT color="green">011</FONT> * Unless required by applicable law or agreed to in writing, software<a name="line.11"></a>
<FONT color="green">012</FONT> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.12"></a>
<FONT color="green">013</FONT> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.13"></a>
<FONT color="green">014</FONT> * See the License for the specific language governing permissions and<a name="line.14"></a>
<FONT color="green">015</FONT> * limitations under the License.<a name="line.15"></a>
<FONT color="green">016</FONT> */<a name="line.16"></a>
<FONT color="green">017</FONT> <a name="line.17"></a>
<FONT color="green">018</FONT> package org.apache.commons.math3.analysis.solvers;<a name="line.18"></a>
<FONT color="green">019</FONT> <a name="line.19"></a>
<FONT color="green">020</FONT> import org.apache.commons.math3.analysis.UnivariateFunction;<a name="line.20"></a>
<FONT color="green">021</FONT> import org.apache.commons.math3.exception.MaxCountExceededException;<a name="line.21"></a>
<FONT color="green">022</FONT> import org.apache.commons.math3.exception.NoBracketingException;<a name="line.22"></a>
<FONT color="green">023</FONT> import org.apache.commons.math3.exception.TooManyEvaluationsException;<a name="line.23"></a>
<FONT color="green">024</FONT> import org.apache.commons.math3.exception.NumberIsTooLargeException;<a name="line.24"></a>
<FONT color="green">025</FONT> import org.apache.commons.math3.exception.NullArgumentException;<a name="line.25"></a>
<FONT color="green">026</FONT> import org.apache.commons.math3.util.Incrementor;<a name="line.26"></a>
<FONT color="green">027</FONT> import org.apache.commons.math3.util.MathUtils;<a name="line.27"></a>
<FONT color="green">028</FONT> <a name="line.28"></a>
<FONT color="green">029</FONT> /**<a name="line.29"></a>
<FONT color="green">030</FONT> * Provide a default implementation for several functions useful to generic<a name="line.30"></a>
<FONT color="green">031</FONT> * solvers.<a name="line.31"></a>
<FONT color="green">032</FONT> *<a name="line.32"></a>
<FONT color="green">033</FONT> * @param <FUNC> Type of function to solve.<a name="line.33"></a>
<FONT color="green">034</FONT> *<a name="line.34"></a>
<FONT color="green">035</FONT> * @since 2.0<a name="line.35"></a>
<FONT color="green">036</FONT> * @version $Id: BaseAbstractUnivariateSolver.java 1391927 2012-09-30 00:03:30Z erans $<a name="line.36"></a>
<FONT color="green">037</FONT> */<a name="line.37"></a>
<FONT color="green">038</FONT> public abstract class BaseAbstractUnivariateSolver<FUNC extends UnivariateFunction><a name="line.38"></a>
<FONT color="green">039</FONT> implements BaseUnivariateSolver<FUNC> {<a name="line.39"></a>
<FONT color="green">040</FONT> /** Default relative accuracy. */<a name="line.40"></a>
<FONT color="green">041</FONT> private static final double DEFAULT_RELATIVE_ACCURACY = 1e-14;<a name="line.41"></a>
<FONT color="green">042</FONT> /** Default function value accuracy. */<a name="line.42"></a>
<FONT color="green">043</FONT> private static final double DEFAULT_FUNCTION_VALUE_ACCURACY = 1e-15;<a name="line.43"></a>
<FONT color="green">044</FONT> /** Function value accuracy. */<a name="line.44"></a>
<FONT color="green">045</FONT> private final double functionValueAccuracy;<a name="line.45"></a>
<FONT color="green">046</FONT> /** Absolute accuracy. */<a name="line.46"></a>
<FONT color="green">047</FONT> private final double absoluteAccuracy;<a name="line.47"></a>
<FONT color="green">048</FONT> /** Relative accuracy. */<a name="line.48"></a>
<FONT color="green">049</FONT> private final double relativeAccuracy;<a name="line.49"></a>
<FONT color="green">050</FONT> /** Evaluations counter. */<a name="line.50"></a>
<FONT color="green">051</FONT> private final Incrementor evaluations = new Incrementor();<a name="line.51"></a>
<FONT color="green">052</FONT> /** Lower end of search interval. */<a name="line.52"></a>
<FONT color="green">053</FONT> private double searchMin;<a name="line.53"></a>
<FONT color="green">054</FONT> /** Higher end of search interval. */<a name="line.54"></a>
<FONT color="green">055</FONT> private double searchMax;<a name="line.55"></a>
<FONT color="green">056</FONT> /** Initial guess. */<a name="line.56"></a>
<FONT color="green">057</FONT> private double searchStart;<a name="line.57"></a>
<FONT color="green">058</FONT> /** Function to solve. */<a name="line.58"></a>
<FONT color="green">059</FONT> private FUNC function;<a name="line.59"></a>
<FONT color="green">060</FONT> <a name="line.60"></a>
<FONT color="green">061</FONT> /**<a name="line.61"></a>
<FONT color="green">062</FONT> * Construct a solver with given absolute accuracy.<a name="line.62"></a>
<FONT color="green">063</FONT> *<a name="line.63"></a>
<FONT color="green">064</FONT> * @param absoluteAccuracy Maximum absolute error.<a name="line.64"></a>
<FONT color="green">065</FONT> */<a name="line.65"></a>
<FONT color="green">066</FONT> protected BaseAbstractUnivariateSolver(final double absoluteAccuracy) {<a name="line.66"></a>
<FONT color="green">067</FONT> this(DEFAULT_RELATIVE_ACCURACY,<a name="line.67"></a>
<FONT color="green">068</FONT> absoluteAccuracy,<a name="line.68"></a>
<FONT color="green">069</FONT> DEFAULT_FUNCTION_VALUE_ACCURACY);<a name="line.69"></a>
<FONT color="green">070</FONT> }<a name="line.70"></a>
<FONT color="green">071</FONT> <a name="line.71"></a>
<FONT color="green">072</FONT> /**<a name="line.72"></a>
<FONT color="green">073</FONT> * Construct a solver with given accuracies.<a name="line.73"></a>
<FONT color="green">074</FONT> *<a name="line.74"></a>
<FONT color="green">075</FONT> * @param relativeAccuracy Maximum relative error.<a name="line.75"></a>
<FONT color="green">076</FONT> * @param absoluteAccuracy Maximum absolute error.<a name="line.76"></a>
<FONT color="green">077</FONT> */<a name="line.77"></a>
<FONT color="green">078</FONT> protected BaseAbstractUnivariateSolver(final double relativeAccuracy,<a name="line.78"></a>
<FONT color="green">079</FONT> final double absoluteAccuracy) {<a name="line.79"></a>
<FONT color="green">080</FONT> this(relativeAccuracy,<a name="line.80"></a>
<FONT color="green">081</FONT> absoluteAccuracy,<a name="line.81"></a>
<FONT color="green">082</FONT> DEFAULT_FUNCTION_VALUE_ACCURACY);<a name="line.82"></a>
<FONT color="green">083</FONT> }<a name="line.83"></a>
<FONT color="green">084</FONT> <a name="line.84"></a>
<FONT color="green">085</FONT> /**<a name="line.85"></a>
<FONT color="green">086</FONT> * Construct a solver with given accuracies.<a name="line.86"></a>
<FONT color="green">087</FONT> *<a name="line.87"></a>
<FONT color="green">088</FONT> * @param relativeAccuracy Maximum relative error.<a name="line.88"></a>
<FONT color="green">089</FONT> * @param absoluteAccuracy Maximum absolute error.<a name="line.89"></a>
<FONT color="green">090</FONT> * @param functionValueAccuracy Maximum function value error.<a name="line.90"></a>
<FONT color="green">091</FONT> */<a name="line.91"></a>
<FONT color="green">092</FONT> protected BaseAbstractUnivariateSolver(final double relativeAccuracy,<a name="line.92"></a>
<FONT color="green">093</FONT> final double absoluteAccuracy,<a name="line.93"></a>
<FONT color="green">094</FONT> final double functionValueAccuracy) {<a name="line.94"></a>
<FONT color="green">095</FONT> this.absoluteAccuracy = absoluteAccuracy;<a name="line.95"></a>
<FONT color="green">096</FONT> this.relativeAccuracy = relativeAccuracy;<a name="line.96"></a>
<FONT color="green">097</FONT> this.functionValueAccuracy = functionValueAccuracy;<a name="line.97"></a>
<FONT color="green">098</FONT> }<a name="line.98"></a>
<FONT color="green">099</FONT> <a name="line.99"></a>
<FONT color="green">100</FONT> /** {@inheritDoc} */<a name="line.100"></a>
<FONT color="green">101</FONT> public int getMaxEvaluations() {<a name="line.101"></a>
<FONT color="green">102</FONT> return evaluations.getMaximalCount();<a name="line.102"></a>
<FONT color="green">103</FONT> }<a name="line.103"></a>
<FONT color="green">104</FONT> /** {@inheritDoc} */<a name="line.104"></a>
<FONT color="green">105</FONT> public int getEvaluations() {<a name="line.105"></a>
<FONT color="green">106</FONT> return evaluations.getCount();<a name="line.106"></a>
<FONT color="green">107</FONT> }<a name="line.107"></a>
<FONT color="green">108</FONT> /**<a name="line.108"></a>
<FONT color="green">109</FONT> * @return the lower end of the search interval.<a name="line.109"></a>
<FONT color="green">110</FONT> */<a name="line.110"></a>
<FONT color="green">111</FONT> public double getMin() {<a name="line.111"></a>
<FONT color="green">112</FONT> return searchMin;<a name="line.112"></a>
<FONT color="green">113</FONT> }<a name="line.113"></a>
<FONT color="green">114</FONT> /**<a name="line.114"></a>
<FONT color="green">115</FONT> * @return the higher end of the search interval.<a name="line.115"></a>
<FONT color="green">116</FONT> */<a name="line.116"></a>
<FONT color="green">117</FONT> public double getMax() {<a name="line.117"></a>
<FONT color="green">118</FONT> return searchMax;<a name="line.118"></a>
<FONT color="green">119</FONT> }<a name="line.119"></a>
<FONT color="green">120</FONT> /**<a name="line.120"></a>
<FONT color="green">121</FONT> * @return the initial guess.<a name="line.121"></a>
<FONT color="green">122</FONT> */<a name="line.122"></a>
<FONT color="green">123</FONT> public double getStartValue() {<a name="line.123"></a>
<FONT color="green">124</FONT> return searchStart;<a name="line.124"></a>
<FONT color="green">125</FONT> }<a name="line.125"></a>
<FONT color="green">126</FONT> /**<a name="line.126"></a>
<FONT color="green">127</FONT> * {@inheritDoc}<a name="line.127"></a>
<FONT color="green">128</FONT> */<a name="line.128"></a>
<FONT color="green">129</FONT> public double getAbsoluteAccuracy() {<a name="line.129"></a>
<FONT color="green">130</FONT> return absoluteAccuracy;<a name="line.130"></a>
<FONT color="green">131</FONT> }<a name="line.131"></a>
<FONT color="green">132</FONT> /**<a name="line.132"></a>
<FONT color="green">133</FONT> * {@inheritDoc}<a name="line.133"></a>
<FONT color="green">134</FONT> */<a name="line.134"></a>
<FONT color="green">135</FONT> public double getRelativeAccuracy() {<a name="line.135"></a>
<FONT color="green">136</FONT> return relativeAccuracy;<a name="line.136"></a>
<FONT color="green">137</FONT> }<a name="line.137"></a>
<FONT color="green">138</FONT> /**<a name="line.138"></a>
<FONT color="green">139</FONT> * {@inheritDoc}<a name="line.139"></a>
<FONT color="green">140</FONT> */<a name="line.140"></a>
<FONT color="green">141</FONT> public double getFunctionValueAccuracy() {<a name="line.141"></a>
<FONT color="green">142</FONT> return functionValueAccuracy;<a name="line.142"></a>
<FONT color="green">143</FONT> }<a name="line.143"></a>
<FONT color="green">144</FONT> <a name="line.144"></a>
<FONT color="green">145</FONT> /**<a name="line.145"></a>
<FONT color="green">146</FONT> * Compute the objective function value.<a name="line.146"></a>
<FONT color="green">147</FONT> *<a name="line.147"></a>
<FONT color="green">148</FONT> * @param point Point at which the objective function must be evaluated.<a name="line.148"></a>
<FONT color="green">149</FONT> * @return the objective function value at specified point.<a name="line.149"></a>
<FONT color="green">150</FONT> * @throws TooManyEvaluationsException if the maximal number of evaluations<a name="line.150"></a>
<FONT color="green">151</FONT> * is exceeded.<a name="line.151"></a>
<FONT color="green">152</FONT> */<a name="line.152"></a>
<FONT color="green">153</FONT> protected double computeObjectiveValue(double point)<a name="line.153"></a>
<FONT color="green">154</FONT> throws TooManyEvaluationsException {<a name="line.154"></a>
<FONT color="green">155</FONT> incrementEvaluationCount();<a name="line.155"></a>
<FONT color="green">156</FONT> return function.value(point);<a name="line.156"></a>
<FONT color="green">157</FONT> }<a name="line.157"></a>
<FONT color="green">158</FONT> <a name="line.158"></a>
<FONT color="green">159</FONT> /**<a name="line.159"></a>
<FONT color="green">160</FONT> * Prepare for computation.<a name="line.160"></a>
<FONT color="green">161</FONT> * Subclasses must call this method if they override any of the<a name="line.161"></a>
<FONT color="green">162</FONT> * {@code solve} methods.<a name="line.162"></a>
<FONT color="green">163</FONT> *<a name="line.163"></a>
<FONT color="green">164</FONT> * @param f Function to solve.<a name="line.164"></a>
<FONT color="green">165</FONT> * @param min Lower bound for the interval.<a name="line.165"></a>
<FONT color="green">166</FONT> * @param max Upper bound for the interval.<a name="line.166"></a>
<FONT color="green">167</FONT> * @param startValue Start value to use.<a name="line.167"></a>
<FONT color="green">168</FONT> * @param maxEval Maximum number of evaluations.<a name="line.168"></a>
<FONT color="green">169</FONT> */<a name="line.169"></a>
<FONT color="green">170</FONT> protected void setup(int maxEval,<a name="line.170"></a>
<FONT color="green">171</FONT> FUNC f,<a name="line.171"></a>
<FONT color="green">172</FONT> double min, double max,<a name="line.172"></a>
<FONT color="green">173</FONT> double startValue) {<a name="line.173"></a>
<FONT color="green">174</FONT> // Checks.<a name="line.174"></a>
<FONT color="green">175</FONT> MathUtils.checkNotNull(f);<a name="line.175"></a>
<FONT color="green">176</FONT> <a name="line.176"></a>
<FONT color="green">177</FONT> // Reset.<a name="line.177"></a>
<FONT color="green">178</FONT> searchMin = min;<a name="line.178"></a>
<FONT color="green">179</FONT> searchMax = max;<a name="line.179"></a>
<FONT color="green">180</FONT> searchStart = startValue;<a name="line.180"></a>
<FONT color="green">181</FONT> function = f;<a name="line.181"></a>
<FONT color="green">182</FONT> evaluations.setMaximalCount(maxEval);<a name="line.182"></a>
<FONT color="green">183</FONT> evaluations.resetCount();<a name="line.183"></a>
<FONT color="green">184</FONT> }<a name="line.184"></a>
<FONT color="green">185</FONT> <a name="line.185"></a>
<FONT color="green">186</FONT> /** {@inheritDoc} */<a name="line.186"></a>
<FONT color="green">187</FONT> public double solve(int maxEval, FUNC f, double min, double max, double startValue)<a name="line.187"></a>
<FONT color="green">188</FONT> throws TooManyEvaluationsException,<a name="line.188"></a>
<FONT color="green">189</FONT> NoBracketingException {<a name="line.189"></a>
<FONT color="green">190</FONT> // Initialization.<a name="line.190"></a>
<FONT color="green">191</FONT> setup(maxEval, f, min, max, startValue);<a name="line.191"></a>
<FONT color="green">192</FONT> <a name="line.192"></a>
<FONT color="green">193</FONT> // Perform computation.<a name="line.193"></a>
<FONT color="green">194</FONT> return doSolve();<a name="line.194"></a>
<FONT color="green">195</FONT> }<a name="line.195"></a>
<FONT color="green">196</FONT> <a name="line.196"></a>
<FONT color="green">197</FONT> /** {@inheritDoc} */<a name="line.197"></a>
<FONT color="green">198</FONT> public double solve(int maxEval, FUNC f, double min, double max) {<a name="line.198"></a>
<FONT color="green">199</FONT> return solve(maxEval, f, min, max, min + 0.5 * (max - min));<a name="line.199"></a>
<FONT color="green">200</FONT> }<a name="line.200"></a>
<FONT color="green">201</FONT> <a name="line.201"></a>
<FONT color="green">202</FONT> /** {@inheritDoc} */<a name="line.202"></a>
<FONT color="green">203</FONT> public double solve(int maxEval, FUNC f, double startValue)<a name="line.203"></a>
<FONT color="green">204</FONT> throws TooManyEvaluationsException,<a name="line.204"></a>
<FONT color="green">205</FONT> NoBracketingException {<a name="line.205"></a>
<FONT color="green">206</FONT> return solve(maxEval, f, Double.NaN, Double.NaN, startValue);<a name="line.206"></a>
<FONT color="green">207</FONT> }<a name="line.207"></a>
<FONT color="green">208</FONT> <a name="line.208"></a>
<FONT color="green">209</FONT> /**<a name="line.209"></a>
<FONT color="green">210</FONT> * Method for implementing actual optimization algorithms in derived<a name="line.210"></a>
<FONT color="green">211</FONT> * classes.<a name="line.211"></a>
<FONT color="green">212</FONT> *<a name="line.212"></a>
<FONT color="green">213</FONT> * @return the root.<a name="line.213"></a>
<FONT color="green">214</FONT> * @throws TooManyEvaluationsException if the maximal number of evaluations<a name="line.214"></a>
<FONT color="green">215</FONT> * is exceeded.<a name="line.215"></a>
<FONT color="green">216</FONT> * @throws NoBracketingException if the initial search interval does not bracket<a name="line.216"></a>
<FONT color="green">217</FONT> * a root and the solver requires it.<a name="line.217"></a>
<FONT color="green">218</FONT> */<a name="line.218"></a>
<FONT color="green">219</FONT> protected abstract double doSolve()<a name="line.219"></a>
<FONT color="green">220</FONT> throws TooManyEvaluationsException, NoBracketingException;<a name="line.220"></a>
<FONT color="green">221</FONT> <a name="line.221"></a>
<FONT color="green">222</FONT> /**<a name="line.222"></a>
<FONT color="green">223</FONT> * Check whether the function takes opposite signs at the endpoints.<a name="line.223"></a>
<FONT color="green">224</FONT> *<a name="line.224"></a>
<FONT color="green">225</FONT> * @param lower Lower endpoint.<a name="line.225"></a>
<FONT color="green">226</FONT> * @param upper Upper endpoint.<a name="line.226"></a>
<FONT color="green">227</FONT> * @return {@code true} if the function values have opposite signs at the<a name="line.227"></a>
<FONT color="green">228</FONT> * given points.<a name="line.228"></a>
<FONT color="green">229</FONT> */<a name="line.229"></a>
<FONT color="green">230</FONT> protected boolean isBracketing(final double lower,<a name="line.230"></a>
<FONT color="green">231</FONT> final double upper) {<a name="line.231"></a>
<FONT color="green">232</FONT> return UnivariateSolverUtils.isBracketing(function, lower, upper);<a name="line.232"></a>
<FONT color="green">233</FONT> }<a name="line.233"></a>
<FONT color="green">234</FONT> <a name="line.234"></a>
<FONT color="green">235</FONT> /**<a name="line.235"></a>
<FONT color="green">236</FONT> * Check whether the arguments form a (strictly) increasing sequence.<a name="line.236"></a>
<FONT color="green">237</FONT> *<a name="line.237"></a>
<FONT color="green">238</FONT> * @param start First number.<a name="line.238"></a>
<FONT color="green">239</FONT> * @param mid Second number.<a name="line.239"></a>
<FONT color="green">240</FONT> * @param end Third number.<a name="line.240"></a>
<FONT color="green">241</FONT> * @return {@code true} if the arguments form an increasing sequence.<a name="line.241"></a>
<FONT color="green">242</FONT> */<a name="line.242"></a>
<FONT color="green">243</FONT> protected boolean isSequence(final double start,<a name="line.243"></a>
<FONT color="green">244</FONT> final double mid,<a name="line.244"></a>
<FONT color="green">245</FONT> final double end) {<a name="line.245"></a>
<FONT color="green">246</FONT> return UnivariateSolverUtils.isSequence(start, mid, end);<a name="line.246"></a>
<FONT color="green">247</FONT> }<a name="line.247"></a>
<FONT color="green">248</FONT> <a name="line.248"></a>
<FONT color="green">249</FONT> /**<a name="line.249"></a>
<FONT color="green">250</FONT> * Check that the endpoints specify an interval.<a name="line.250"></a>
<FONT color="green">251</FONT> *<a name="line.251"></a>
<FONT color="green">252</FONT> * @param lower Lower endpoint.<a name="line.252"></a>
<FONT color="green">253</FONT> * @param upper Upper endpoint.<a name="line.253"></a>
<FONT color="green">254</FONT> * @throws NumberIsTooLargeException if {@code lower >= upper}.<a name="line.254"></a>
<FONT color="green">255</FONT> */<a name="line.255"></a>
<FONT color="green">256</FONT> protected void verifyInterval(final double lower,<a name="line.256"></a>
<FONT color="green">257</FONT> final double upper)<a name="line.257"></a>
<FONT color="green">258</FONT> throws NumberIsTooLargeException {<a name="line.258"></a>
<FONT color="green">259</FONT> UnivariateSolverUtils.verifyInterval(lower, upper);<a name="line.259"></a>
<FONT color="green">260</FONT> }<a name="line.260"></a>
<FONT color="green">261</FONT> <a name="line.261"></a>
<FONT color="green">262</FONT> /**<a name="line.262"></a>
<FONT color="green">263</FONT> * Check that {@code lower < initial < upper}.<a name="line.263"></a>
<FONT color="green">264</FONT> *<a name="line.264"></a>
<FONT color="green">265</FONT> * @param lower Lower endpoint.<a name="line.265"></a>
<FONT color="green">266</FONT> * @param initial Initial value.<a name="line.266"></a>
<FONT color="green">267</FONT> * @param upper Upper endpoint.<a name="line.267"></a>
<FONT color="green">268</FONT> * @throws NumberIsTooLargeException if {@code lower >= initial} or<a name="line.268"></a>
<FONT color="green">269</FONT> * {@code initial >= upper}.<a name="line.269"></a>
<FONT color="green">270</FONT> */<a name="line.270"></a>
<FONT color="green">271</FONT> protected void verifySequence(final double lower,<a name="line.271"></a>
<FONT color="green">272</FONT> final double initial,<a name="line.272"></a>
<FONT color="green">273</FONT> final double upper)<a name="line.273"></a>
<FONT color="green">274</FONT> throws NumberIsTooLargeException {<a name="line.274"></a>
<FONT color="green">275</FONT> UnivariateSolverUtils.verifySequence(lower, initial, upper);<a name="line.275"></a>
<FONT color="green">276</FONT> }<a name="line.276"></a>
<FONT color="green">277</FONT> <a name="line.277"></a>
<FONT color="green">278</FONT> /**<a name="line.278"></a>
<FONT color="green">279</FONT> * Check that the endpoints specify an interval and the function takes<a name="line.279"></a>
<FONT color="green">280</FONT> * opposite signs at the endpoints.<a name="line.280"></a>
<FONT color="green">281</FONT> *<a name="line.281"></a>
<FONT color="green">282</FONT> * @param lower Lower endpoint.<a name="line.282"></a>
<FONT color="green">283</FONT> * @param upper Upper endpoint.<a name="line.283"></a>
<FONT color="green">284</FONT> * @throws NullArgumentException if the function has not been set.<a name="line.284"></a>
<FONT color="green">285</FONT> * @throws NoBracketingException if the function has the same sign at<a name="line.285"></a>
<FONT color="green">286</FONT> * the endpoints.<a name="line.286"></a>
<FONT color="green">287</FONT> */<a name="line.287"></a>
<FONT color="green">288</FONT> protected void verifyBracketing(final double lower,<a name="line.288"></a>
<FONT color="green">289</FONT> final double upper)<a name="line.289"></a>
<FONT color="green">290</FONT> throws NullArgumentException,<a name="line.290"></a>
<FONT color="green">291</FONT> NoBracketingException {<a name="line.291"></a>
<FONT color="green">292</FONT> UnivariateSolverUtils.verifyBracketing(function, lower, upper);<a name="line.292"></a>
<FONT color="green">293</FONT> }<a name="line.293"></a>
<FONT color="green">294</FONT> <a name="line.294"></a>
<FONT color="green">295</FONT> /**<a name="line.295"></a>
<FONT color="green">296</FONT> * Increment the evaluation count by one.<a name="line.296"></a>
<FONT color="green">297</FONT> * Method {@link #computeObjectiveValue(double)} calls this method internally.<a name="line.297"></a>
<FONT color="green">298</FONT> * It is provided for subclasses that do not exclusively use<a name="line.298"></a>
<FONT color="green">299</FONT> * {@code computeObjectiveValue} to solve the function.<a name="line.299"></a>
<FONT color="green">300</FONT> * See e.g. {@link AbstractUnivariateDifferentiableSolver}.<a name="line.300"></a>
<FONT color="green">301</FONT> *<a name="line.301"></a>
<FONT color="green">302</FONT> * @throws TooManyEvaluationsException when the allowed number of function<a name="line.302"></a>
<FONT color="green">303</FONT> * evaluations has been exhausted.<a name="line.303"></a>
<FONT color="green">304</FONT> */<a name="line.304"></a>
<FONT color="green">305</FONT> protected void incrementEvaluationCount()<a name="line.305"></a>
<FONT color="green">306</FONT> throws TooManyEvaluationsException {<a name="line.306"></a>
<FONT color="green">307</FONT> try {<a name="line.307"></a>
<FONT color="green">308</FONT> evaluations.incrementCount();<a name="line.308"></a>
<FONT color="green">309</FONT> } catch (MaxCountExceededException e) {<a name="line.309"></a>
<FONT color="green">310</FONT> throw new TooManyEvaluationsException(e.getMax());<a name="line.310"></a>
<FONT color="green">311</FONT> }<a name="line.311"></a>
<FONT color="green">312</FONT> }<a name="line.312"></a>
<FONT color="green">313</FONT> }<a name="line.313"></a>
</PRE>
</BODY>
</HTML>
| vaisaghvt/gameAnalyzer | commons-math3-3.1.1-bin/commons-math3-3.1.1/docs/apidocs/src-html/org/apache/commons/math3/analysis/solvers/BaseAbstractUnivariateSolver.html | HTML | mit | 28,708 |
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
<script src="../node_modules/systemjs/dist/system.src.js"></script>
<script src="../node_modules/angular2/bundles/angular2.dev.js"></script>
<script src="../node_modules/angular2/bundles/router.dev.js"></script>
<script src="../node_modules/angular2/bundles/http.dev.js"></script>
<script src="../node_modules/socket.io-client/socket.io.js"></script>
<!-- include ag-Grid javascript file -->
<script src="../node_modules/ag-grid/dist/ag-grid.js"></script>
<!-- include stylesheets for the grid -->
<link rel="stylesheet" type="text/css" href="../node_modules/ag-grid/dist/ag-grid.css">
<link rel="stylesheet" type="text/css" href="../node_modules/ag-grid/dist/theme-fresh.css">
<script>
System.config({
packages: {'app': {defaultExtension: 'js'}}
});
System.import("angular2/angular2").then(function(ng2) {
ag.grid.initialiseAgGridWithAngular2(ng2);
});
System.import('app/bootstrap')
.catch(console.log.bind(console));
</script>
</head>
<body>
<my-app>Loading...</my-app>
</body>
</html> | rtsjs/rts | src/index.html | HTML | mit | 1,196 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pronósticos</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<script src="build/jquery-1.11.3.min.js"></script>
<script src="build/bootstrap.min.js"></script>
<script src="build/react.js"></script>
<script src="build/JSXTransformer.js"></script>
</head>
<body>
<div id="contenedor"></div>
<script type="text/jsx" src="/build/view-pronosticos.js"></script>
</body>
</html>
| antonioyee/view-pronosticos | index.html | HTML | mit | 488 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>qarith-stern-brocot: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.8.1 / qarith-stern-brocot - 8.5.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
qarith-stern-brocot
<small>
8.5.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-01-01 11:10:21 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-01 11:10:21 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.8.1 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.08.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.08.1 Official release 4.08.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-contribs/qarith-stern-brocot"
license: "LGPL 2"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/QArithSternBrocot"]
depends: [
"ocaml"
"coq" {>= "8.5" & < "8.6~"}
]
tags: [ "keyword:rational numbers" "keyword:arithmetic" "keyword:field tactic" "keyword:binary lists" "keyword:stern brocot" "category:Mathematics/Arithmetic and Number Theory/Rational numbers" "category:Miscellaneous/Extracted Programs/Arithmetic" "date:2003" ]
authors: [ "Milad Niqui <>" "Yves Bertot <>" ]
bug-reports: "https://github.com/coq-contribs/qarith-stern-brocot/issues"
dev-repo: "git+https://github.com/coq-contribs/qarith-stern-brocot.git"
synopsis: "Binary Rational Numbers"
description:
"Developement of rational numbers as finite binary lists and defining field operations on them in two different ways: strict and lazy."
flags: light-uninstall
url {
src:
"https://github.com/coq-contribs/qarith-stern-brocot/archive/v8.5.0.tar.gz"
checksum: "md5=3e0916361e3fd7e25304426eb1e5aabf"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-qarith-stern-brocot.8.5.0 coq.8.8.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.8.1).
The following dependencies couldn't be met:
- coq-qarith-stern-brocot -> coq < 8.6~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-qarith-stern-brocot.8.5.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.08.1-2.0.5/released/8.8.1/qarith-stern-brocot/8.5.0.html | HTML | mit | 7,183 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-analysis: Black list 🏴☠️</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.1+2 / mathcomp-analysis - 0.3.4</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
mathcomp-analysis
<small>
0.3.4
<span class="label label-default">Black list 🏴☠️</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-02-24 14:39:15 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-24 14:39:15 UTC)</em><p>
<div class="alert alert-info" role="alert">
<p>This result is black-listed as it is considered as too hard to reproduce / to solve. If you find a way to fix this package, please make a pull-request to <a class="alert-link" href="https://github.com/coq/opam-coq-archive">github.com/coq/opam-coq-archive</a>. The list of black-listed packages is in <a class="alert-link" href="https://github.com/coq-bench/make-html/blob/master/black_list.rb">black_list.rb</a>.</p>
</div>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.7.1+2 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.3 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Reynald Affeldt <[email protected]>"
version: "dev"
homepage: "https://github.com/math-comp/analysis"
dev-repo: "git+https://github.com/math-comp/analysis.git"
bug-reports: "https://github.com/math-comp/analysis/issues"
license: "CECILL-C"
synopsis: "An analysis library for mathematical components"
description: """
This repository contains an experimental library for real analysis for
the Coq proof-assistant and using the Mathematical Components library."""
build: [make "-j%{jobs}%" ]
install: [make "install"]
depends: [
"coq" { (>= "8.11" & < "8.13~") | (= "dev") }
"coq-mathcomp-ssreflect" { (>= "1.11.0" & < "1.12~") }
"coq-mathcomp-bigenough" {(>= "1.0.0")}
"coq-mathcomp-fingroup" { (>= "1.11.0" & < "1.12~") }
"coq-mathcomp-algebra" { (>= "1.11.0" & < "1.12~") }
"coq-mathcomp-solvable" { (>= "1.11.0" & < "1.12~") }
"coq-mathcomp-field" { (>= "1.11.0" & < "1.12~") }
"coq-mathcomp-finmap" { (>= "1.5.0" & < "1.6~") }
"coq-hierarchy-builder" { (>= "0.10.0" & < "0.11~") }
]
tags: [
"keyword:analysis"
"keyword:topology"
"keyword:real numbers"
"logpath:mathcomp.analysis"
]
authors: [
"Reynald Affeldt"
"Cyril Cohen"
"Marie Kerjean"
"Assia Mahboubi"
"Damien Rouhling"
"Kazuhiko Sakaguchi"
"Pierre-Yves Strub"
]
url {
http: "https://github.com/math-comp/analysis/archive/0.3.4.tar.gz"
checksum: "sha512=d17ccb9accfc2812accf3c289c89c559421823e3e96d8478d00f8d8c3518aef540674836da82f708410901e9447cc1ea654fd5c45a65f90f776b8e94f9015a41"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-mathcomp-analysis.0.3.4 coq.8.7.1+2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1+2).
The following dependencies couldn't be met:
- coq-mathcomp-analysis -> coq >= dev
no matching version
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-mathcomp-analysis.0.3.4</code></dd>
<dt>Return code</dt>
<dd>15360</dd>
<dt>Output</dt>
<dd><pre>The following actions will be performed:
- remove coq 8.7.1+2
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[WARNING] package uninstall script failed at /home/bench/.opam/opam-init/hooks/sandbox.sh remove rm -R /home/bench/.opam/ocaml-base-compiler.4.05.0/lib/coq /home/bench/.opam/ocaml-base-compiler.4.05.0/share/coq:
# context 2.0.1 | linux/x86_64 | ocaml-base-compiler.4.05.0 | https://opam.ocaml.org#e864079c
# path ~/run
# command ~/.opam/opam-init/hooks/sandbox.sh remove rm -R /home/bench/.opam/ocaml-base-compiler.4.05.0/lib/coq /home/bench/.opam/ocaml-base-compiler.4.05.0/share/coq
# exit-code 1
# env-file ~/.opam/log/coq-31620-9b8556.env
# output-file ~/.opam/log/coq-31620-9b8556.out
### output ###
# rm: cannot remove '/home/bench/.opam/ocaml-base-compiler.4.05.0/share/coq': No such file or directory
Done.
# Run eval $(opam env) to update the current shell environment
[ERROR] Sorry, resolution of the request timed out.
Try to specify a simpler request, use a different solver, or increase the allowed time by setting OPAMSOLVERTIMEOUT to a bigger value (currently, it is set to 600.0 seconds).
</pre></dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/released/8.7.1+2/mathcomp-analysis/0.3.4.html | HTML | mit | 10,097 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="pl">
<head>
<!-- Generated by javadoc (version 1.7.0_76) on Tue Jul 07 00:20:54 CEST 2015 -->
<title>pl.garciapl.banknow.controller.form</title>
<meta name="date" content="2015-07-07">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<h1 class="bar"><a href="../../../../../pl/garciapl/banknow/controller/domain/package-summary.html" target="classFrame">pl.garciapl.banknow.controller.form</a></h1>
<div class="indexContainer">
<h2 title="Classes">Classes</h2>
<ul title="Classes">
<li><a href="AccountForm.html" title="class in pl.garciapl.banknow.controller.form" target="classFrame">AccountForm</a></li>
<li><a href="DepositForm.html" title="class in pl.garciapl.banknow.controller.form" target="classFrame">DepositForm</a></li>
<li><a href="TransferForm.html" title="class in pl.garciapl.banknow.controller.form" target="classFrame">TransferForm</a></li>
</ul>
</div>
</body>
</html>
| GarciaPL/BankNow | javadoc/pl/garciapl/banknow/controller/domain/package-frame.html | HTML | mit | 1,077 |
{% load staticfiles %}
<!DOCTYPE html>
<html lang="en" {% block htmlattr %}{% endblock %}>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}City Air{% endblock %}</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
{% block head_css %}
<link rel="stylesheet" media="screen" href='{% static "css/main.css" %}'>
{% endblock %}
</head>
<body class='{% block pageclass %}{% endblock %}' {% block bodyattr %}{% endblock %}>
{% block nav %}{% endblock %}
{% block content %}{% endblock %}
{% block footer %}
<div class=container>
<hr>
<footer>
<ul class="list-inline pull-right">
<li><a href="{% url 'website_terms' %}">Terms</a></li>
<li><a href="{% url 'website_contact' %}">Contact</a></li>
</ul>
<p class=muted>{% include "copyright.html" %}</p>
</footer>
</div>
{% endblock %}
{% block tail_js %}
{% endblock %}
</body>
</html>
| py-geek/City-Air | allauthdemo/templates/bases/bootstrap.html | HTML | mit | 1,529 |
<html>
<head>
<!-- bower:css -->
<!-- endbower -->
</head>
<body>
<!-- bower:js -->
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<!-- endbower -->
</body>
</html> | TimMurphy/gulp-examples | examples/wiredep/index.html | HTML | mit | 264 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>async_read_until</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="../../boost_asio.html" title="Boost.Asio">
<link rel="up" href="../reference.html" title="Reference">
<link rel="prev" href="async_read_at/overload4.html" title="async_read_at (4 of 4 overloads)">
<link rel="next" href="async_read_until/overload1.html" title="async_read_until (1 of 4 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="async_read_at/overload4.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="async_read_until/overload1.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="boost_asio.reference.async_read_until"></a><a class="link" href="async_read_until.html" title="async_read_until">async_read_until</a>
</h3></div></div></div>
<p>
<a class="indexterm" name="idp55740648"></a>
Start an asynchronous operation to read data into a streambuf
until it contains a delimiter, matches a regular expression, or a function
object indicates a match.
</p>
<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span>
<span class="keyword">typename</span> <a class="link" href="AsyncReadStream.html" title="Buffer-oriented asynchronous read stream requirements">AsyncReadStream</a><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Allocator</span><span class="special">,</span>
<span class="keyword">typename</span> <a class="link" href="ReadHandler.html" title="Read handler requirements">ReadHandler</a><span class="special">></span>
<a class="link" href="asynchronous_operations.html#boost_asio.reference.asynchronous_operations.return_type_of_an_initiating_function"><span class="emphasis"><em>void-or-deduced</em></span></a> <a class="link" href="async_read_until/overload1.html" title="async_read_until (1 of 4 overloads)">async_read_until</a><span class="special">(</span>
<span class="identifier">AsyncReadStream</span> <span class="special">&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">basic_streambuf</span><span class="special"><</span> <span class="identifier">Allocator</span> <span class="special">></span> <span class="special">&</span> <span class="identifier">b</span><span class="special">,</span>
<span class="keyword">char</span> <span class="identifier">delim</span><span class="special">,</span>
<span class="identifier">ReadHandler</span> <span class="identifier">handler</span><span class="special">);</span>
<span class="emphasis"><em>» <a class="link" href="async_read_until/overload1.html" title="async_read_until (1 of 4 overloads)">more...</a></em></span>
<span class="keyword">template</span><span class="special"><</span>
<span class="keyword">typename</span> <a class="link" href="AsyncReadStream.html" title="Buffer-oriented asynchronous read stream requirements">AsyncReadStream</a><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Allocator</span><span class="special">,</span>
<span class="keyword">typename</span> <a class="link" href="ReadHandler.html" title="Read handler requirements">ReadHandler</a><span class="special">></span>
<a class="link" href="asynchronous_operations.html#boost_asio.reference.asynchronous_operations.return_type_of_an_initiating_function"><span class="emphasis"><em>void-or-deduced</em></span></a> <a class="link" href="async_read_until/overload2.html" title="async_read_until (2 of 4 overloads)">async_read_until</a><span class="special">(</span>
<span class="identifier">AsyncReadStream</span> <span class="special">&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">basic_streambuf</span><span class="special"><</span> <span class="identifier">Allocator</span> <span class="special">></span> <span class="special">&</span> <span class="identifier">b</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&</span> <span class="identifier">delim</span><span class="special">,</span>
<span class="identifier">ReadHandler</span> <span class="identifier">handler</span><span class="special">);</span>
<span class="emphasis"><em>» <a class="link" href="async_read_until/overload2.html" title="async_read_until (2 of 4 overloads)">more...</a></em></span>
<span class="keyword">template</span><span class="special"><</span>
<span class="keyword">typename</span> <a class="link" href="AsyncReadStream.html" title="Buffer-oriented asynchronous read stream requirements">AsyncReadStream</a><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Allocator</span><span class="special">,</span>
<span class="keyword">typename</span> <a class="link" href="ReadHandler.html" title="Read handler requirements">ReadHandler</a><span class="special">></span>
<a class="link" href="asynchronous_operations.html#boost_asio.reference.asynchronous_operations.return_type_of_an_initiating_function"><span class="emphasis"><em>void-or-deduced</em></span></a> <a class="link" href="async_read_until/overload3.html" title="async_read_until (3 of 4 overloads)">async_read_until</a><span class="special">(</span>
<span class="identifier">AsyncReadStream</span> <span class="special">&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">basic_streambuf</span><span class="special"><</span> <span class="identifier">Allocator</span> <span class="special">></span> <span class="special">&</span> <span class="identifier">b</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span> <span class="special">&</span> <span class="identifier">expr</span><span class="special">,</span>
<span class="identifier">ReadHandler</span> <span class="identifier">handler</span><span class="special">);</span>
<span class="emphasis"><em>» <a class="link" href="async_read_until/overload3.html" title="async_read_until (3 of 4 overloads)">more...</a></em></span>
<span class="keyword">template</span><span class="special"><</span>
<span class="keyword">typename</span> <a class="link" href="AsyncReadStream.html" title="Buffer-oriented asynchronous read stream requirements">AsyncReadStream</a><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Allocator</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">MatchCondition</span><span class="special">,</span>
<span class="keyword">typename</span> <a class="link" href="ReadHandler.html" title="Read handler requirements">ReadHandler</a><span class="special">></span>
<a class="link" href="asynchronous_operations.html#boost_asio.reference.asynchronous_operations.return_type_of_an_initiating_function"><span class="emphasis"><em>void-or-deduced</em></span></a> <a class="link" href="async_read_until/overload4.html" title="async_read_until (4 of 4 overloads)">async_read_until</a><span class="special">(</span>
<span class="identifier">AsyncReadStream</span> <span class="special">&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">basic_streambuf</span><span class="special"><</span> <span class="identifier">Allocator</span> <span class="special">></span> <span class="special">&</span> <span class="identifier">b</span><span class="special">,</span>
<span class="identifier">MatchCondition</span> <span class="identifier">match_condition</span><span class="special">,</span>
<span class="identifier">ReadHandler</span> <span class="identifier">handler</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">enable_if</span><span class="special"><</span> <span class="identifier">is_match_condition</span><span class="special"><</span> <span class="identifier">MatchCondition</span> <span class="special">>::</span><span class="identifier">value</span> <span class="special">>::</span><span class="identifier">type</span> <span class="special">*</span> <span class="special">=</span> <span class="number">0</span><span class="special">);</span>
<span class="emphasis"><em>» <a class="link" href="async_read_until/overload4.html" title="async_read_until (4 of 4 overloads)">more...</a></em></span>
</pre>
<h5>
<a name="boost_asio.reference.async_read_until.h0"></a>
<span class="phrase"><a name="boost_asio.reference.async_read_until.requirements"></a></span><a class="link" href="async_read_until.html#boost_asio.reference.async_read_until.requirements">Requirements</a>
</h5>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">boost/asio/read_until.hpp</code>
</p>
<p>
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">boost/asio.hpp</code>
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2013 Christopher M. Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="async_read_at/overload4.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="async_read_until/overload1.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
| laborautonomo/poedit | deps/boost/doc/html/boost_asio/reference/async_read_until.html | HTML | mit | 11,970 |
<html>
<head>
<title>Turing</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<style>body {
margin: 0;
padding: 0;
font: 14px/1.5 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
color: #252519;
}
a {
color: #252519;
}
a:hover {
text-decoration: underline;
color: #19469D;
}
p {
margin: 12px 0;
}
h1, h2, h3 {
margin: 0;
padding: 0;
}
table#source {
width: 100%;
border-collapse: collapse;
}
table#source td:first-child {
padding: 30px 40px 30px 40px;
vertical-align: top;
}
table#source td:first-child,
table#source td:first-child pre {
width: 450px;
}
table#source td:last-child {
padding: 30px 0 30px 40px;
border-left: 1px solid #E5E5EE;
background: #F5F5FF;
}
table#source tr {
border-bottom: 1px solid #E5E5EE;
}
table#source tr.filename {
padding-top: 40px;
border-top: 1px solid #E5E5EE;
}
table#source tr.filename td:first-child {
text-transform: capitalize;
}
table#source tr.filename td:last-child {
font-size: 12px;
}
table#source tr.filename h2 {
margin: 0;
padding: 0;
cursor: pointer;
}
table#source tr.code h1,
table#source tr.code h2,
table#source tr.code h3 {
margin-top: 30px;
font-family: "Lucida Grande", "Helvetica Nueue", Arial, sans-serif;
font-size: 18px;
}
table#source tr.code h2 {
font-size: 16px;
}
table#source tr.code h3 {
font-size: 14px;
}
table#source tr.code ul {
margin: 15px 0 15px 35px;
padding: 0;
}
table#source tr.code ul li {
margin: 0;
padding: 1px 0;
}
table#source tr.code ul li p {
margin: 0;
padding: 0;
}
table#source tr.code td:first-child pre {
padding: 20px;
}
#ribbon {
position: fixed;
top: 0;
right: 0;
}
code .string { color: #219161; }
code .regexp { color: #219161; }
code .keyword { color: #954121; }
code .number { color: #19469D; }
code .comment { color: #bbb; }
code .this { color: #19469D; }</style>
<script>
$(function(){
$('tr.code').hide();
$('tr.filename').toggle(function(){
$(this).nextUntil('.filename').fadeIn();
}, function(){
$(this).nextUntil('.filename').fadeOut();
});
});
</script>
</head>
<body>
<table id="source"><tbody><tr><td><h1>Turing</h1><p>Turing is a JavaScript framework. The source is available from GitHub at <a href="https://github.com/alexyoung/turing.js/">alexyoung/turing.js</a>.</p>
<p>The DOM, Events, and Anim modules are chainable, like this:</p>
<pre><code> turing('p')
.fadeIn(2000)
.animate(1000, { color: '#ff0000' })
.click(function() { alert('clicked'); });</code></pre>
<p>This is the easiest way to use Turing.</p>
<p>The DOM results can be manipulated with the <code>turing.enumerable</code> module methods:</p>
<pre><code> turing('p')
.map(function(element) { return element.innerHTML; })
.values();</code></pre>
<p>The <code>values</code> method returns the results of the last operation, in this case each paragraph's <code>innerHTML</code>.</p>
<p>Arrays or objects can be iterated using <code>turing()</code>, too:</p>
<pre><code> turing([1, 2, 3])
.map(function(n) { return n + 1; })
.values();
// => [2, 3, 4]</code></pre></td><td></td></tr><tr class="filename"><td><h2 id="turing.anim.js"><a href="#">turing.anim</a></h2></td><td>turing.anim.js</td></tr><tr class="code">
<td class="docs">
<p>The main animation method is <code>turing.anim.animate</code>. The animate method animates CSS properties.</p>
<p>There are also animation helper methods, like <code>turing.anim.fadeIn</code> and <code>turing.anim.move</code>. </p>
<h2>Animation Examples</h2>
<p>Turn a paragraph red:</p>
<pre><code> turing.anim.animate($t('p')[0], 2000, {
'color': '#ff0000'
});</code></pre>
<p>Move a paragraph:</p>
<pre><code> turing.anim.animate($t('p')[0], 2000, {
'marginLeft': '400px'
});</code></pre>
<p>It's possible to chain animation module calls with <code>turing.anim.chain</code>, but it's easier to use the DOM chained methods:</p>
<pre><code> turing('p').fadeIn(2000).animate(1000, {
'marginLeft': '200px'
})</code></pre>
<h2>Or</h2>
<pre><code> $t('p').fadeIn(2000).animate(1000, {
'marginLeft': '200px'
})</code></pre>
<p> </p>
</td>
<td class="code">
<pre><code>(<span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">anim</span> = {},
<span class="variable">easing</span> = {},
<span class="class">Chainer</span>,
<span class="variable">opacityType</span>,
<span class="variable">methodName</span>,
<span class="class">CSSTransitions</span> = {};
<span class="comment">// These CSS related functions should be moved into turing.css</span>
<span class="keyword">function</span> <span class="variable">camelize</span>(<span class="variable">property</span>) {
<span class="keyword">return</span> <span class="variable">property</span>.<span class="variable">replace</span>(<span class="regexp">/-+(.)?/g</span>, <span class="keyword">function</span>(<span class="variable">match</span>, <span class="variable">chr</span>) {
<span class="keyword">return</span> <span class="variable">chr</span> ? <span class="variable">chr</span>.<span class="variable">toUpperCase</span>() : <span class="string">''</span>;
});
}
<span class="keyword">function</span> <span class="variable">getOpacityType</span>() {
<span class="keyword">return</span> (<span class="keyword">typeof</span> <span class="variable">document</span>.<span class="variable">body</span>.<span class="variable">style</span>.<span class="variable">opacity</span> !== <span class="string">'undefined'</span>) ? <span class="string">'opacity'</span> : <span class="string">'filter'</span>;
}
<span class="keyword">function</span> <span class="class">Colour</span>(<span class="variable">value</span>) {
<span class="this">this</span>.<span class="variable">r</span> = <span class="number integer">0</span>;
<span class="this">this</span>.<span class="variable">g</span> = <span class="number integer">0</span>;
<span class="this">this</span>.<span class="variable">b</span> = <span class="number integer">0</span>;
<span class="this">this</span>.<span class="variable">value</span> = <span class="this">this</span>.<span class="variable">normalise</span>(<span class="variable">value</span>);
<span class="this">this</span>.<span class="variable">parse</span>();
}
<span class="comment">// Based on: http://www.phpied.com/rgb-color-parser-in-javascript/</span>
<span class="class">Colour</span>.<span class="variable">matchers</span> = [
{
<span class="variable">re</span>: <span class="regexp">/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/</span>,
<span class="variable">example</span>: [<span class="string">'rgb(123, 234, 45)'</span>, <span class="string">'rgb(255,234,245)'</span>],
<span class="variable">process</span>: <span class="keyword">function</span> (<span class="variable">bits</span>){
<span class="keyword">return</span> [
<span class="variable">parseInt</span>(<span class="variable">bits</span>[<span class="number integer">1</span>], <span class="number integer">10</span>),
<span class="variable">parseInt</span>(<span class="variable">bits</span>[<span class="number integer">2</span>], <span class="number integer">10</span>),
<span class="variable">parseInt</span>(<span class="variable">bits</span>[<span class="number integer">3</span>], <span class="number integer">10</span>)
];
}
},
{
<span class="variable">re</span>: <span class="regexp">/^(\w{2})(\w{2})(\w{2})$/</span>,
<span class="variable">example</span>: [<span class="string">'#00ff00'</span>, <span class="string">'336699'</span>],
<span class="variable">process</span>: <span class="keyword">function</span> (<span class="variable">bits</span>){
<span class="keyword">return</span> [
<span class="variable">parseInt</span>(<span class="variable">bits</span>[<span class="number integer">1</span>], <span class="number integer">16</span>),
<span class="variable">parseInt</span>(<span class="variable">bits</span>[<span class="number integer">2</span>], <span class="number integer">16</span>),
<span class="variable">parseInt</span>(<span class="variable">bits</span>[<span class="number integer">3</span>], <span class="number integer">16</span>)
];
}
},
{
<span class="variable">re</span>: <span class="regexp">/^(\w{1})(\w{1})(\w{1})$/</span>,
<span class="variable">example</span>: [<span class="string">'#fb0'</span>, <span class="string">'f0f'</span>],
<span class="variable">process</span>: <span class="keyword">function</span> (<span class="variable">bits</span>) {
<span class="keyword">return</span> [
<span class="variable">parseInt</span>(<span class="variable">bits</span>[<span class="number integer">1</span>] + <span class="variable">bits</span>[<span class="number integer">1</span>], <span class="number integer">16</span>),
<span class="variable">parseInt</span>(<span class="variable">bits</span>[<span class="number integer">2</span>] + <span class="variable">bits</span>[<span class="number integer">2</span>], <span class="number integer">16</span>),
<span class="variable">parseInt</span>(<span class="variable">bits</span>[<span class="number integer">3</span>] + <span class="variable">bits</span>[<span class="number integer">3</span>], <span class="number integer">16</span>)
];
}
}
];
<span class="class">Colour</span>.<span class="variable">prototype</span>.<span class="variable">normalise</span> = <span class="keyword">function</span>(<span class="variable">value</span>) {
<span class="variable">value</span>.<span class="variable">replace</span>(<span class="regexp">/ /g</span>, <span class="string">''</span>);
<span class="keyword">if</span> (<span class="variable">value</span>.<span class="variable">charAt</span>(<span class="number integer">0</span>) === <span class="string">'#'</span>) {
<span class="variable">value</span> = <span class="variable">value</span>.<span class="variable">substr</span>(<span class="number integer">1</span>, <span class="number integer">6</span>);
}
<span class="keyword">return</span> <span class="variable">value</span>;
};
<span class="class">Colour</span>.<span class="variable">prototype</span>.<span class="variable">parse</span> = <span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">channels</span> = [], <span class="variable">i</span>;
<span class="keyword">for</span> (<span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="class">Colour</span>.<span class="variable">matchers</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="variable">channels</span> = <span class="this">this</span>.<span class="variable">value</span>.<span class="variable">match</span>(<span class="class">Colour</span>.<span class="variable">matchers</span>[<span class="variable">i</span>].<span class="variable">re</span>);
<span class="keyword">if</span> (<span class="variable">channels</span>) {
<span class="variable">channels</span> = <span class="class">Colour</span>.<span class="variable">matchers</span>[<span class="variable">i</span>].<span class="variable">process</span>(<span class="variable">channels</span>);
<span class="this">this</span>.<span class="variable">r</span> = <span class="variable">channels</span>[<span class="number integer">0</span>];
<span class="this">this</span>.<span class="variable">g</span> = <span class="variable">channels</span>[<span class="number integer">1</span>];
<span class="this">this</span>.<span class="variable">b</span> = <span class="variable">channels</span>[<span class="number integer">2</span>];
<span class="keyword">break</span>;
}
}
<span class="this">this</span>.<span class="variable">validate</span>();
};
<span class="class">Colour</span>.<span class="variable">prototype</span>.<span class="variable">validate</span> = <span class="keyword">function</span>() {
<span class="this">this</span>.<span class="variable">r</span> = (<span class="this">this</span>.<span class="variable">r</span> &<span class="variable">lt</span>; <span class="number integer">0</span> || <span class="variable">isNaN</span>(<span class="this">this</span>.<span class="variable">r</span>)) ? <span class="number integer">0</span> : ((<span class="this">this</span>.<span class="variable">r</span> &<span class="variable">gt</span>; <span class="number integer">255</span>) ? <span class="number integer">255</span> : <span class="this">this</span>.<span class="variable">r</span>);
<span class="this">this</span>.<span class="variable">g</span> = (<span class="this">this</span>.<span class="variable">g</span> &<span class="variable">lt</span>; <span class="number integer">0</span> || <span class="variable">isNaN</span>(<span class="this">this</span>.<span class="variable">g</span>)) ? <span class="number integer">0</span> : ((<span class="this">this</span>.<span class="variable">g</span> &<span class="variable">gt</span>; <span class="number integer">255</span>) ? <span class="number integer">255</span> : <span class="this">this</span>.<span class="variable">g</span>);
<span class="this">this</span>.<span class="variable">b</span> = (<span class="this">this</span>.<span class="variable">b</span> &<span class="variable">lt</span>; <span class="number integer">0</span> || <span class="variable">isNaN</span>(<span class="this">this</span>.<span class="variable">b</span>)) ? <span class="number integer">0</span> : ((<span class="this">this</span>.<span class="variable">b</span> &<span class="variable">gt</span>; <span class="number integer">255</span>) ? <span class="number integer">255</span> : <span class="this">this</span>.<span class="variable">b</span>);
};
<span class="class">Colour</span>.<span class="variable">prototype</span>.<span class="variable">sum</span> = <span class="keyword">function</span>() {
<span class="keyword">return</span> <span class="this">this</span>.<span class="variable">r</span> + <span class="this">this</span>.<span class="variable">g</span> + <span class="this">this</span>.<span class="variable">b</span>;
};
<span class="class">Colour</span>.<span class="variable">prototype</span>.<span class="variable">toString</span> = <span class="keyword">function</span>() {
<span class="keyword">return</span> <span class="string">'rgb('</span> + <span class="this">this</span>.<span class="variable">r</span> + <span class="string">', '</span> + <span class="this">this</span>.<span class="variable">g</span> + <span class="string">', '</span> + <span class="this">this</span>.<span class="variable">b</span> + <span class="string">')'</span>;
};
<span class="keyword">function</span> <span class="variable">isColour</span>(<span class="variable">value</span>) {
<span class="keyword">return</span> <span class="keyword">typeof</span> <span class="variable">value</span> === <span class="string">'string'</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">value</span>.<span class="variable">match</span>(<span class="regexp">/(#[a-f|A-F|0-9]|rgb)/</span>);
}
<span class="keyword">function</span> <span class="variable">parseColour</span>(<span class="variable">value</span>) {
<span class="keyword">return</span> { <span class="variable">value</span>: <span class="keyword">new</span> <span class="class">Colour</span>(<span class="variable">value</span>), <span class="variable">units</span>: <span class="string">''</span>, <span class="variable">transform</span>: <span class="variable">colourTransform</span> };
}
<span class="keyword">function</span> <span class="variable">numericalTransform</span>(<span class="variable">parsedValue</span>, <span class="variable">position</span>, <span class="variable">easingFunction</span>) {
<span class="keyword">return</span> (<span class="variable">easingFunction</span>(<span class="variable">position</span>) * <span class="variable">parsedValue</span>.<span class="variable">value</span>);
}
<span class="keyword">function</span> <span class="variable">colourTransform</span>(<span class="variable">v</span>, <span class="variable">position</span>, <span class="variable">easingFunction</span>) {
<span class="keyword">var</span> <span class="variable">colours</span> = [];
<span class="variable">colours</span>[<span class="number integer">0</span>] = <span class="class">Math</span>.<span class="variable">round</span>(<span class="variable">v</span>.<span class="variable">base</span>.<span class="variable">r</span> + (<span class="variable">v</span>.<span class="variable">direction</span>[<span class="number integer">0</span>] * (<span class="class">Math</span>.<span class="variable">abs</span>(<span class="variable">v</span>.<span class="variable">base</span>.<span class="variable">r</span> - <span class="variable">v</span>.<span class="variable">value</span>.<span class="variable">r</span>) * <span class="variable">easingFunction</span>(<span class="variable">position</span>))));
<span class="variable">colours</span>[<span class="number integer">1</span>] = <span class="class">Math</span>.<span class="variable">round</span>(<span class="variable">v</span>.<span class="variable">base</span>.<span class="variable">g</span> + (<span class="variable">v</span>.<span class="variable">direction</span>[<span class="number integer">1</span>] * (<span class="class">Math</span>.<span class="variable">abs</span>(<span class="variable">v</span>.<span class="variable">base</span>.<span class="variable">g</span> - <span class="variable">v</span>.<span class="variable">value</span>.<span class="variable">g</span>) * <span class="variable">easingFunction</span>(<span class="variable">position</span>))));
<span class="variable">colours</span>[<span class="number integer">2</span>] = <span class="class">Math</span>.<span class="variable">round</span>(<span class="variable">v</span>.<span class="variable">base</span>.<span class="variable">b</span> + (<span class="variable">v</span>.<span class="variable">direction</span>[<span class="number integer">2</span>] * (<span class="class">Math</span>.<span class="variable">abs</span>(<span class="variable">v</span>.<span class="variable">base</span>.<span class="variable">b</span> - <span class="variable">v</span>.<span class="variable">value</span>.<span class="variable">b</span>) * <span class="variable">easingFunction</span>(<span class="variable">position</span>))));
<span class="keyword">return</span> <span class="string">'rgb('</span> + <span class="variable">colours</span>.<span class="variable">join</span>(<span class="string">', '</span>) + <span class="string">')'</span>;
}
<span class="keyword">function</span> <span class="variable">parseNumericalValue</span>(<span class="variable">value</span>) {
<span class="keyword">var</span> <span class="variable">n</span> = (<span class="keyword">typeof</span> <span class="variable">value</span> === <span class="string">'string'</span>) ? <span class="variable">parseFloat</span>(<span class="variable">value</span>) : <span class="variable">value</span>,
<span class="variable">units</span> = (<span class="keyword">typeof</span> <span class="variable">value</span> === <span class="string">'string'</span>) ? <span class="variable">value</span>.<span class="variable">replace</span>(<span class="variable">n</span>, <span class="string">''</span>) : <span class="string">''</span>;
<span class="keyword">return</span> { <span class="variable">value</span>: <span class="variable">n</span>, <span class="variable">units</span>: <span class="variable">units</span>, <span class="variable">transform</span>: <span class="variable">numericalTransform</span> };
}
<span class="keyword">function</span> <span class="variable">parseCSSValue</span>(<span class="variable">value</span>, <span class="variable">element</span>, <span class="variable">property</span>) {
<span class="keyword">if</span> (<span class="variable">isColour</span>(<span class="variable">value</span>)) {
<span class="keyword">var</span> <span class="variable">colour</span> = <span class="variable">parseColour</span>(<span class="variable">value</span>), <span class="variable">i</span>;
<span class="variable">colour</span>.<span class="variable">base</span> = <span class="keyword">new</span> <span class="class">Colour</span>(<span class="variable">element</span>.<span class="variable">style</span>[<span class="variable">property</span>]);
<span class="variable">colour</span>.<span class="variable">direction</span> = [<span class="variable">colour</span>.<span class="variable">base</span>.<span class="variable">r</span> &<span class="variable">lt</span>; <span class="variable">colour</span>.<span class="variable">value</span>.<span class="variable">r</span> ? <span class="number integer">1</span> : -<span class="number integer">1</span>,
<span class="variable">colour</span>.<span class="variable">base</span>.<span class="variable">g</span> &<span class="variable">lt</span>; <span class="variable">colour</span>.<span class="variable">value</span>.<span class="variable">g</span> ? <span class="number integer">1</span> : -<span class="number integer">1</span>,
<span class="variable">colour</span>.<span class="variable">base</span>.<span class="variable">b</span> &<span class="variable">lt</span>; <span class="variable">colour</span>.<span class="variable">value</span>.<span class="variable">b</span> ? <span class="number integer">1</span> : -<span class="number integer">1</span>];
<span class="keyword">return</span> <span class="variable">colour</span>;
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">value</span> !== <span class="string">'object'</span>) {
<span class="keyword">return</span> <span class="variable">parseNumericalValue</span>(<span class="variable">value</span>);
} <span class="keyword">else</span> {
<span class="keyword">return</span> <span class="variable">value</span>;
}
}
<span class="keyword">function</span> <span class="variable">setCSSProperty</span>(<span class="variable">element</span>, <span class="variable">property</span>, <span class="variable">value</span>) {
<span class="keyword">if</span> (<span class="variable">property</span> === <span class="string">'opacity'</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">opacityType</span> === <span class="string">'filter'</span>) {
<span class="variable">element</span>.<span class="variable">style</span>[<span class="variable">opacityType</span>] = <span class="string">'alpha(opacity='</span> + <span class="class">Math</span>.<span class="variable">round</span>(<span class="variable">value</span> * <span class="number integer">100</span>) + <span class="string">')'</span>;
<span class="keyword">return</span> <span class="variable">element</span>;
}
<span class="variable">element</span>.<span class="variable">style</span>[<span class="variable">property</span>] = <span class="variable">value</span>;
<span class="keyword">return</span> <span class="variable">element</span>;
}
<span class="variable">easing</span>.<span class="variable">linear</span> = <span class="keyword">function</span>(<span class="variable">position</span>) {
<span class="keyword">return</span> <span class="variable">position</span>;
};
<span class="variable">easing</span>.<span class="variable">sine</span> = <span class="keyword">function</span>(<span class="variable">position</span>) {
<span class="keyword">return</span> (-<span class="class">Math</span>.<span class="variable">cos</span>(<span class="variable">position</span> * <span class="class">Math</span>.<span class="class">PI</span>) / <span class="number integer">2</span>) + <span class="number float">0.5</span>;
};
<span class="variable">easing</span>.<span class="variable">reverse</span> = <span class="keyword">function</span>(<span class="variable">position</span>) {
<span class="keyword">return</span> <span class="number float">1.0</span> - <span class="variable">position</span>;
};
<span class="variable">easing</span>.<span class="variable">spring</span> = <span class="keyword">function</span>(<span class="variable">position</span>) {
<span class="keyword">return</span> <span class="number integer">1</span> - (<span class="class">Math</span>.<span class="variable">cos</span>(<span class="variable">position</span> * <span class="class">Math</span>.<span class="class">PI</span> * <span class="number integer">4</span>) * <span class="class">Math</span>.<span class="variable">exp</span>(-<span class="variable">position</span> * <span class="number integer">6</span>));
};
<span class="variable">easing</span>.<span class="variable">bounce</span> = <span class="keyword">function</span>(<span class="variable">position</span>) {
<span class="keyword">if</span> (<span class="variable">position</span> &<span class="variable">lt</span>; (<span class="number integer">1</span> / <span class="number float">2.75</span>)) {
<span class="keyword">return</span> <span class="number float">7.6</span> * <span class="variable">position</span> * <span class="variable">position</span>;
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="variable">position</span> &<span class="variable">lt</span>; (<span class="number integer">2</span> /<span class="number float">2.75</span>)) {
<span class="keyword">return</span> <span class="number float">7.6</span> * (<span class="variable">position</span> -= (<span class="number float">1.5</span> / <span class="number float">2.75</span>)) * <span class="variable">position</span> + <span class="number float">0.74</span>;
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="variable">position</span> &<span class="variable">lt</span>; (<span class="number float">2.5</span> / <span class="number float">2.75</span>)) {
<span class="keyword">return</span> <span class="number float">7.6</span> * (<span class="variable">position</span> -= (<span class="number float">2.25</span> / <span class="number float">2.75</span>)) * <span class="variable">position</span> + <span class="number float">0.91</span>;
} <span class="keyword">else</span> {
<span class="keyword">return</span> <span class="number float">7.6</span> * (<span class="variable">position</span> -= (<span class="number float">2.625</span> / <span class="number float">2.75</span>)) * <span class="variable">position</span> + <span class="number float">0.98</span>;
}
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Animates an element using CSS properties.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>Number</em> duration Duration in milliseconds</p></li><li><p><strong>param</strong>: <em>Object</em> properties CSS properties to animate, for example: <code>{ width: '20px' }</code></p></li><li><p><strong>param</strong>: <em>Object</em> options Currently accepts an easing function or built-in easing method name (linear, sine, reverse, spring, bounce)</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">anim</span>.<span class="variable">animate</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">duration</span>, <span class="variable">properties</span>, <span class="variable">options</span>) {
<span class="keyword">var</span> <span class="variable">start</span> = <span class="keyword">new</span> <span class="class">Date</span>().<span class="variable">valueOf</span>(),
<span class="variable">finish</span> = <span class="variable">start</span> + <span class="variable">duration</span>,
<span class="variable">easingFunction</span> = <span class="variable">easing</span>.<span class="variable">linear</span>,
<span class="variable">interval</span>,
<span class="variable">p</span>;
<span class="keyword">if</span> (!<span class="variable">opacityType</span>) {
<span class="variable">opacityType</span> = <span class="variable">getOpacityType</span>();
}
<span class="variable">options</span> = <span class="variable">options</span> || {};
<span class="keyword">if</span> (<span class="variable">options</span>.<span class="variable">hasOwnProperty</span>(<span class="string">'easing'</span>)) {
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">options</span>.<span class="variable">easing</span> === <span class="string">'string'</span>) {
<span class="variable">easingFunction</span> = <span class="variable">easing</span>[<span class="variable">options</span>.<span class="variable">easing</span>];
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="variable">options</span>.<span class="variable">easing</span>) {
<span class="variable">easingFunction</span> = <span class="variable">options</span>.<span class="variable">easing</span>;
}
}
<span class="keyword">function</span> <span class="variable">transition</span>() {
<span class="class">CSSTransitions</span>.<span class="variable">end</span>(<span class="variable">element</span>, <span class="variable">property</span>);
}
<span class="keyword">for</span> (<span class="variable">p</span> <span class="keyword">in</span> <span class="variable">properties</span>) {
<span class="keyword">if</span> (<span class="variable">properties</span>.<span class="variable">hasOwnProperty</span>(<span class="variable">p</span>)) {
<span class="variable">properties</span>[<span class="variable">p</span>] = <span class="variable">parseCSSValue</span>(<span class="variable">properties</span>[<span class="variable">p</span>], <span class="variable">element</span>, <span class="variable">p</span>);
<span class="keyword">if</span> (<span class="variable">p</span> === <span class="string">'opacity'</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">opacityType</span> === <span class="string">'filter'</span>) {
<span class="variable">element</span>.<span class="variable">style</span>.<span class="variable">zoom</span> = <span class="number integer">1</span>;
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="class">CSSTransitions</span>.<span class="variable">vendorPrefix</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; (<span class="variable">p</span> === <span class="string">'left'</span> || <span class="variable">p</span> === <span class="string">'top'</span>)) {
<span class="class">CSSTransitions</span>.<span class="variable">start</span>(<span class="variable">element</span>, <span class="variable">duration</span>, <span class="variable">p</span>, <span class="variable">properties</span>[<span class="variable">p</span>].<span class="variable">value</span> + <span class="variable">properties</span>[<span class="variable">p</span>].<span class="variable">units</span>, <span class="variable">options</span>.<span class="variable">easing</span>);
<span class="variable">setTimeout</span>(<span class="variable">transition</span>, <span class="variable">duration</span>);
<span class="keyword">return</span>;
}
}
}
<span class="variable">interval</span> = <span class="variable">setInterval</span>(<span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">time</span> = <span class="keyword">new</span> <span class="class">Date</span>().<span class="variable">valueOf</span>(), <span class="variable">position</span> = <span class="variable">time</span> &<span class="variable">gt</span>; <span class="variable">finish</span> ? <span class="number integer">1</span> : (<span class="variable">time</span> - <span class="variable">start</span>) / <span class="variable">duration</span>,
<span class="variable">property</span>;
<span class="keyword">for</span> (<span class="variable">property</span> <span class="keyword">in</span> <span class="variable">properties</span>) {
<span class="keyword">if</span> (<span class="variable">properties</span>.<span class="variable">hasOwnProperty</span>(<span class="variable">property</span>)) {
<span class="variable">setCSSProperty</span>(
<span class="variable">element</span>,
<span class="variable">property</span>,
<span class="variable">properties</span>[<span class="variable">property</span>].<span class="variable">transform</span>(<span class="variable">properties</span>[<span class="variable">property</span>], <span class="variable">position</span>, <span class="variable">easingFunction</span>) + <span class="variable">properties</span>[<span class="variable">property</span>].<span class="variable">units</span>);
}
}
<span class="keyword">if</span> (<span class="variable">time</span> &<span class="variable">gt</span>; <span class="variable">finish</span>) {
<span class="variable">clearInterval</span>(<span class="variable">interval</span>);
}
}, <span class="number integer">10</span>);
};
<span class="class">CSSTransitions</span> = {
<span class="comment">// CSS3 vendor detection</span>
<span class="variable">vendors</span>: {
<span class="comment">// Opera Presto 2.3</span>
<span class="string">'opera'</span>: {
<span class="string">'prefix'</span>: <span class="string">'-o-'</span>,
<span class="string">'detector'</span>: <span class="keyword">function</span>() {
<span class="keyword">try</span> {
<span class="variable">document</span>.<span class="variable">createEvent</span>(<span class="string">'OTransitionEvent'</span>);
<span class="keyword">return</span> <span class="variable">true</span>;
} <span class="keyword">catch</span>(<span class="variable">e</span>) {
<span class="keyword">return</span> <span class="variable">false</span>;
}
}
},
<span class="comment">// Chrome 5, Safari 4</span>
<span class="string">'webkit'</span>: {
<span class="string">'prefix'</span>: <span class="string">'-webkit-'</span>,
<span class="string">'detector'</span>: <span class="keyword">function</span>() {
<span class="keyword">try</span> {
<span class="variable">document</span>.<span class="variable">createEvent</span>(<span class="string">'WebKitTransitionEvent'</span>);
<span class="keyword">return</span> <span class="variable">true</span>;
} <span class="keyword">catch</span>(<span class="variable">e</span>) {
<span class="keyword">return</span> <span class="variable">false</span>;
}
}
},
<span class="comment">// Firefox 4</span>
<span class="string">'firefox'</span>: {
<span class="string">'prefix'</span>: <span class="string">'-moz-'</span>,
<span class="string">'detector'</span>: <span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">div</span> = <span class="variable">document</span>.<span class="variable">createElement</span>(<span class="string">'div'</span>),
<span class="variable">supported</span> = <span class="variable">false</span>;
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">div</span>.<span class="variable">style</span>.<span class="class">MozTransition</span> !== <span class="string">'undefined'</span>) {
<span class="variable">supported</span> = <span class="variable">true</span>;
}
<span class="variable">div</span> = <span class="keyword">null</span>;
<span class="keyword">return</span> <span class="variable">supported</span>;
}
}
},
<span class="variable">findCSS3VendorPrefix</span>: <span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">detector</span>;
<span class="keyword">for</span> (<span class="variable">detector</span> <span class="keyword">in</span> <span class="class">CSSTransitions</span>.<span class="variable">vendors</span>) {
<span class="keyword">if</span> (<span class="this">this</span>.<span class="variable">vendors</span>.<span class="variable">hasOwnProperty</span>(<span class="variable">detector</span>)) {
<span class="variable">detector</span> = <span class="this">this</span>.<span class="variable">vendors</span>[<span class="variable">detector</span>];
<span class="keyword">if</span> (<span class="variable">detector</span>.<span class="variable">detector</span>()) {
<span class="keyword">return</span> <span class="variable">detector</span>.<span class="variable">prefix</span>;
}
}
}
},
<span class="variable">vendorPrefix</span>: <span class="keyword">null</span>,
<span class="comment">// CSS3 Transitions</span>
<span class="variable">start</span>: <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">duration</span>, <span class="variable">property</span>, <span class="variable">value</span>, <span class="variable">easing</span>) {
<span class="variable">element</span>.<span class="variable">style</span>[<span class="variable">camelize</span>(<span class="this">this</span>.<span class="variable">vendorPrefix</span> + <span class="string">'transition'</span>)] = <span class="variable">property</span> + <span class="string">' '</span> + <span class="variable">duration</span> + <span class="string">'ms '</span> + (<span class="variable">easing</span> || <span class="string">'linear'</span>);
<span class="variable">element</span>.<span class="variable">style</span>[<span class="variable">property</span>] = <span class="variable">value</span>;
},
<span class="variable">end</span>: <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">property</span>) {
<span class="variable">element</span>.<span class="variable">style</span>[<span class="variable">camelize</span>(<span class="this">this</span>.<span class="variable">vendorPrefix</span> + <span class="string">'transition'</span>)] = <span class="keyword">null</span>;
}
};
<span class="class">CSSTransitions</span>.<span class="variable">vendorPrefix</span> = <span class="class">CSSTransitions</span>.<span class="variable">findCSS3VendorPrefix</span>();</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Fade an element.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>Number</em> duration Duration in milliseconds</p></li><li><p><strong>param</strong>: <em>Object</em> options to, from, easing function: <code>{ to: 1, from: 0, easing: 'bounce' }</code></p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">anim</span>.<span class="variable">fade</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">duration</span>, <span class="variable">options</span>) {
<span class="variable">element</span>.<span class="variable">style</span>.<span class="variable">opacity</span> = <span class="variable">options</span>.<span class="variable">from</span>;
<span class="keyword">return</span> <span class="variable">anim</span>.<span class="variable">animate</span>(<span class="variable">element</span>, <span class="variable">duration</span>, { <span class="string">'opacity'</span>: <span class="variable">options</span>.<span class="variable">to</span> }, { <span class="string">'easing'</span>: <span class="variable">options</span>.<span class="variable">easing</span> });
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Fade in an element.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>Number</em> duration Duration in milliseconds</p></li><li><p><strong>param</strong>: <em>Object</em> options May include an easing function: <code>{ to: 1, from: 0, easing: 'bounce' }</code></p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">anim</span>.<span class="variable">fadeIn</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">duration</span>, <span class="variable">options</span>) {
<span class="variable">options</span> = <span class="variable">options</span> || {};
<span class="variable">options</span>.<span class="variable">from</span> = <span class="variable">options</span>.<span class="variable">from</span> || <span class="number float">0.0</span>;
<span class="variable">options</span>.<span class="variable">to</span> = <span class="variable">options</span>.<span class="variable">to</span> || <span class="number float">1.0</span>;
<span class="keyword">return</span> <span class="variable">anim</span>.<span class="variable">fade</span>(<span class="variable">element</span>, <span class="variable">duration</span>, <span class="variable">options</span>);
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Fade out an element.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>Number</em> duration Duration in milliseconds</p></li><li><p><strong>param</strong>: <em>Object</em> options May include an easing function: <code>{ to: 1, from: 0, easing: 'bounce' }</code></p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">anim</span>.<span class="variable">fadeOut</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">duration</span>, <span class="variable">options</span>) {
<span class="keyword">var</span> <span class="variable">from</span>;
<span class="variable">options</span> = <span class="variable">options</span> || {};
<span class="variable">options</span>.<span class="variable">from</span> = <span class="variable">options</span>.<span class="variable">from</span> || <span class="number float">1.0</span>;
<span class="variable">options</span>.<span class="variable">to</span> = <span class="variable">options</span>.<span class="variable">to</span> || <span class="number float">0.0</span>;
<span class="comment">// Swap from and to</span>
<span class="variable">from</span> = <span class="variable">options</span>.<span class="variable">from</span>;
<span class="variable">options</span>.<span class="variable">from</span> = <span class="variable">options</span>.<span class="variable">to</span>;
<span class="variable">options</span>.<span class="variable">to</span> = <span class="variable">from</span>;
<span class="comment">// This easing function reverses the position value and adds from</span>
<span class="variable">options</span>.<span class="variable">easing</span> = <span class="keyword">function</span>(<span class="variable">p</span>) { <span class="keyword">return</span> (<span class="number float">1.0</span> - <span class="variable">p</span>) + <span class="variable">options</span>.<span class="variable">from</span>; };
<span class="keyword">return</span> <span class="variable">anim</span>.<span class="variable">fade</span>(<span class="variable">element</span>, <span class="variable">duration</span>, <span class="variable">options</span>);
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Highlight an element.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>Number</em> duration Duration in milliseconds</p></li><li><p><strong>param</strong>: <em>Object</em> options May include an easing function: <code>{ to: 1, from: 0, easing: 'bounce' }</code></p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">anim</span>.<span class="variable">highlight</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">duration</span>, <span class="variable">options</span>) {
<span class="keyword">var</span> <span class="variable">style</span> = <span class="variable">element</span>.<span class="variable">currentStyle</span> ? <span class="variable">element</span>.<span class="variable">currentStyle</span> : <span class="variable">getComputedStyle</span>(<span class="variable">element</span>, <span class="keyword">null</span>);
<span class="variable">options</span> = <span class="variable">options</span> || {};
<span class="variable">options</span>.<span class="variable">from</span> = <span class="variable">options</span>.<span class="variable">from</span> || <span class="string">'#ff9'</span>;
<span class="variable">options</span>.<span class="variable">to</span> = <span class="variable">options</span>.<span class="variable">to</span> || <span class="variable">style</span>.<span class="variable">backgroundColor</span>;
<span class="variable">options</span>.<span class="variable">easing</span> = <span class="variable">options</span>.<span class="variable">easing</span> || <span class="variable">easing</span>.<span class="variable">sine</span>;
<span class="variable">duration</span> = <span class="variable">duration</span> || <span class="number integer">500</span>;
<span class="variable">element</span>.<span class="variable">style</span>.<span class="variable">backgroundColor</span> = <span class="variable">options</span>.<span class="variable">from</span>;
<span class="keyword">return</span> <span class="variable">setTimeout</span>(<span class="keyword">function</span>() {
<span class="variable">anim</span>.<span class="variable">animate</span>(<span class="variable">element</span>, <span class="variable">duration</span>, { <span class="string">'backgroundColor'</span>: <span class="variable">options</span>.<span class="variable">to</span>, <span class="string">'easing'</span>: <span class="variable">options</span>.<span class="variable">easing</span> });
}, <span class="number integer">200</span>);
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Move an element.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>Number</em> duration Duration in milliseconds</p></li><li><p><strong>param</strong>: <em>Object</em> options Position and easing, for example: <code>{ left: 100, top: 50, easing: 'sine' }</code></p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">anim</span>.<span class="variable">move</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">duration</span>, <span class="variable">options</span>) {
<span class="keyword">return</span> <span class="variable">anim</span>.<span class="variable">animate</span>(<span class="variable">element</span>, <span class="variable">duration</span>, { <span class="string">'left'</span>: <span class="variable">options</span>.<span class="variable">x</span>, <span class="string">'top'</span>: <span class="variable">options</span>.<span class="variable">y</span> }, { <span class="string">'easing'</span>: <span class="variable">options</span>.<span class="variable">easing</span> || <span class="variable">easing</span>.<span class="variable">sine</span> });
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Parse colour strings. For example:</p>
<pre><code> assert.equal('rgb(255, 0, 255)',
turing.anim.parseColour('#ff00ff').toString());</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> colourString A hex colour string</p></li><li><p><strong>returns</strong>: <em>String</em> RGB string</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">anim</span>.<span class="variable">parseColour</span> = <span class="keyword">function</span>(<span class="variable">colourString</span>) { <span class="keyword">return</span> <span class="keyword">new</span> <span class="class">Colour</span>(<span class="variable">colourString</span>); };
<span class="variable">anim</span>.<span class="variable">pause</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">duration</span>, <span class="variable">options</span>) {};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Easing functions: linear, sine, reverse, spring, bounce.
</p>
</td>
<td class="code">
<pre><code><span class="variable">anim</span>.<span class="variable">easing</span> = <span class="variable">easing</span>;
<span class="class">Chainer</span> = <span class="keyword">function</span>(<span class="variable">element</span>) {
<span class="this">this</span>.<span class="variable">element</span> = <span class="variable">element</span>;
<span class="this">this</span>.<span class="variable">position</span> = <span class="number integer">0</span>;
};
<span class="keyword">function</span> <span class="variable">makeChain</span>(<span class="variable">m</span>) {
<span class="keyword">var</span> <span class="variable">method</span> = <span class="variable">anim</span>[<span class="variable">m</span>];
<span class="class">Chainer</span>.<span class="variable">prototype</span>[<span class="variable">m</span>] = <span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">args</span> = <span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">slice</span>.<span class="variable">call</span>(<span class="variable">arguments</span>);
<span class="variable">args</span>.<span class="variable">unshift</span>(<span class="this">this</span>.<span class="variable">element</span>);
<span class="comment">// Note: the duration needs to be communicated another way</span>
<span class="comment">// because of defaults (like highlight())</span>
<span class="this">this</span>.<span class="variable">position</span> += <span class="variable">args</span>[<span class="number integer">1</span>] || <span class="number integer">0</span>;
<span class="variable">setTimeout</span>(<span class="keyword">function</span>() {
<span class="variable">method</span>.<span class="variable">apply</span>(<span class="keyword">null</span>, <span class="variable">args</span>);
}, <span class="this">this</span>.<span class="variable">position</span>);
<span class="keyword">return</span> <span class="this">this</span>;
};
}
<span class="keyword">for</span> (<span class="variable">methodName</span> <span class="keyword">in</span> <span class="variable">anim</span>) {
<span class="keyword">if</span> (<span class="variable">anim</span>.<span class="variable">hasOwnProperty</span>(<span class="variable">methodName</span>)) {
<span class="variable">makeChain</span>(<span class="variable">methodName</span>);
}
}</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Chain animation module calls, for example:</p>
<pre><code>turing.anim.chain(element)
.highlight()
.pause(250)
.move(100, { x: '100px', y: '100px', easing: 'ease-in-out' })
.animate(250, { width: '1000px' })
.fadeOut(250)
.pause(250)
.fadeIn(250)
.animate(250, { width: '20px' });</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>returns</strong>: <em>Chainer</em> Chained API object</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">anim</span>.<span class="variable">chain</span> = <span class="keyword">function</span>(<span class="variable">element</span>) {
<span class="keyword">return</span> <span class="keyword">new</span> <span class="class">Chainer</span>(<span class="variable">element</span>);
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Animations can be chained with DOM calls:</p>
<pre><code> turing('p').animate(2000, {
color: '#ff0000'
});
</code></pre>
</td>
<td class="code">
<pre><code><span class="variable">anim</span>.<span class="variable">addDOMethods</span> = <span class="keyword">function</span>() {
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">turing</span>.<span class="variable">domChain</span> === <span class="string">'undefined'</span>) {
<span class="keyword">return</span>;
}
<span class="keyword">var</span> <span class="variable">chainedAliases</span> = (<span class="string">'animate fade fadeIn fadeOut highlight '</span> +
<span class="string">'move parseColour pause easing'</span>).<span class="variable">split</span>(<span class="string">' '</span>),
<span class="variable">i</span>;
<span class="keyword">function</span> <span class="variable">makeChainedAlias</span>(<span class="variable">name</span>) {
<span class="variable">turing</span>.<span class="variable">domChain</span>[<span class="variable">name</span>] = <span class="keyword">function</span>(<span class="variable">handler</span>) {
<span class="keyword">var</span> <span class="variable">j</span>, <span class="variable">args</span> = <span class="variable">turing</span>.<span class="variable">toArray</span>(<span class="variable">arguments</span>);
<span class="variable">args</span>.<span class="variable">unshift</span>(<span class="keyword">null</span>);
<span class="keyword">for</span> (<span class="variable">j</span> = <span class="number integer">0</span>; <span class="variable">j</span> &<span class="variable">lt</span>; <span class="this">this</span>.<span class="variable">length</span>; <span class="variable">j</span>++) {
<span class="variable">args</span>[<span class="number integer">0</span>] = <span class="this">this</span>[<span class="variable">j</span>];
<span class="variable">anim</span>[<span class="variable">name</span>].<span class="variable">apply</span>(<span class="this">this</span>, <span class="variable">args</span>);
}
<span class="keyword">return</span> <span class="this">this</span>;
};
}
<span class="keyword">for</span> (<span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="variable">chainedAliases</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="variable">makeChainedAlias</span>(<span class="variable">chainedAliases</span>[<span class="variable">i</span>]);
}
};
<span class="variable">anim</span>.<span class="variable">addDOMethods</span>();
<span class="variable">turing</span>.<span class="variable">anim</span> = <span class="variable">anim</span>;
}());
</code></pre>
</td>
</tr><tr class="filename"><td><h2 id="turing.core.js"><a href="#">turing.core</a></h2></td><td>turing.core.js</td></tr><tr class="code">
<td class="docs">
<p>A private namespace to set things up against the global object.
</p>
</td>
<td class="code">
<pre><code>(<span class="keyword">function</span>(<span class="variable">global</span>) {
<span class="keyword">var</span> <span class="variable">middleware</span> = [];</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>The turing object. Use <code>turing('selector')</code> for quick DOM access when built with the DOM module.</p>
<h2></h2>
<ul><li><p><strong>returns</strong>: <em>Object</em> The turing object, run through <code>init</code></p></li></ul>
</td>
<td class="code">
<pre><code><span class="keyword">function</span> <span class="variable">turing</span>() {
<span class="keyword">var</span> <span class="variable">result</span>, <span class="variable">i</span>;
<span class="keyword">for</span> (<span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="variable">middleware</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="variable">result</span> = <span class="variable">middleware</span>[<span class="variable">i</span>].<span class="variable">apply</span>(<span class="variable">turing</span>, <span class="variable">arguments</span>);
<span class="keyword">if</span> (<span class="variable">result</span>) {
<span class="keyword">return</span> <span class="variable">result</span>;
}
}
}
<span class="variable">turing</span>.<span class="class">VERSION</span> = <span class="string">'0.0.84'</span>;
<span class="variable">turing</span>.<span class="variable">lesson</span> = <span class="string">'Part 84: Asynchronous Loading'</span>;</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>This alias will be used as an alternative to <code>turing()</code>.
If <code>__turing_alias</code> is present in the global scope this will be used instead. </p>
<p> </p>
</td>
<td class="code">
<pre><code><span class="variable">turing</span>.<span class="variable">alias</span> = <span class="variable">global</span>.<span class="variable">__turing_alias</span> || <span class="string">'$t'</span>;
<span class="variable">global</span>[<span class="variable">turing</span>.<span class="variable">alias</span>] = <span class="variable">turing</span>;</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Determine if an object is an <code>Array</code>.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> object An object that may or may not be an array</p></li><li><p><strong>returns</strong>: <em>Boolean</em> True if the parameter is an array</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">turing</span>.<span class="variable">isArray</span> = <span class="class">Array</span>.<span class="variable">isArray</span> || <span class="keyword">function</span>(<span class="variable">object</span>) {
<span class="keyword">return</span> !!(<span class="variable">object</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">object</span>.<span class="variable">concat</span>
&<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">object</span>.<span class="variable">unshift</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; !<span class="variable">object</span>.<span class="variable">callee</span>);
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Convert an <code>Array</code>-like collection into an <code>Array</code>.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> collection A collection of items that responds to length</p></li><li><p><strong>returns</strong>: <em>Array</em> An <code>Array</code> of items</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">turing</span>.<span class="variable">toArray</span> = <span class="keyword">function</span>(<span class="variable">collection</span>) {
<span class="keyword">var</span> <span class="variable">results</span> = [], <span class="variable">i</span>;
<span class="keyword">for</span> (<span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="variable">collection</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="variable">results</span>.<span class="variable">push</span>(<span class="variable">collection</span>[<span class="variable">i</span>]);
}
<span class="keyword">return</span> <span class="variable">results</span>;
};
<span class="comment">// This can be overriden by libraries that extend turing(...)</span>
<span class="variable">turing</span>.<span class="variable">init</span> = <span class="keyword">function</span>(<span class="variable">fn</span>) {
<span class="variable">middleware</span>.<span class="variable">unshift</span>(<span class="variable">fn</span>);
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Determines if an object is a <code>Number</code>.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> object A value to test</p></li><li><p><strong>returns</strong>: <em>Boolean</em> True if the object is a Number</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">turing</span>.<span class="variable">isNumber</span> = <span class="keyword">function</span>(<span class="variable">object</span>) {
<span class="keyword">return</span> (<span class="variable">object</span> === +<span class="variable">object</span>) || (<span class="variable">toString</span>.<span class="variable">call</span>(<span class="variable">object</span>) === <span class="string">'[object Number]'</span>);
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Binds a function to an object.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Function</em> fn A function</p></li><li><p><strong>param</strong>: <em>Object</em> object An object to bind to</p></li><li><p><strong>returns</strong>: <em>Function</em> A rebound method</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">turing</span>.<span class="variable">bind</span> = <span class="keyword">function</span>(<span class="variable">fn</span>, <span class="variable">object</span>) {
<span class="keyword">var</span> <span class="variable">slice</span> = <span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">slice</span>,
<span class="variable">args</span> = <span class="variable">slice</span>.<span class="variable">apply</span>(<span class="variable">arguments</span>, [<span class="number integer">2</span>]);
<span class="keyword">return</span> <span class="keyword">function</span>() {
<span class="keyword">return</span> <span class="variable">fn</span>.<span class="variable">apply</span>(<span class="variable">object</span> || {}, <span class="variable">args</span>.<span class="variable">concat</span>(<span class="variable">slice</span>.<span class="variable">apply</span>(<span class="variable">arguments</span>)));
};
};
<span class="keyword">var</span> <span class="variable">testCache</span> = {},
<span class="variable">detectionTests</span> = {};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Used to add feature-detection methods.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> name The name of the test</p></li><li><p><strong>param</strong>: <em>Function</em> fn The function that performs the test</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">turing</span>.<span class="variable">addDetectionTest</span> = <span class="keyword">function</span>(<span class="variable">name</span>, <span class="variable">fn</span>) {
<span class="keyword">if</span> (!<span class="variable">detectionTests</span>[<span class="variable">name</span>]) {
<span class="variable">detectionTests</span>[<span class="variable">name</span>] = <span class="variable">fn</span>;
}
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Run a feature detection name.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> name The name of the test</p></li><li><p><strong>returns</strong>: <em>Boolean</em> The outcome of the test</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">turing</span>.<span class="variable">detect</span> = <span class="keyword">function</span>(<span class="variable">testName</span>) {
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">testCache</span>[<span class="variable">testCache</span>] === <span class="string">'undefined'</span>) {
<span class="variable">testCache</span>[<span class="variable">testName</span>] = <span class="variable">detectionTests</span>[<span class="variable">testName</span>]();
}
<span class="keyword">return</span> <span class="variable">testCache</span>[<span class="variable">testName</span>];
};
<span class="keyword">if</span> (<span class="variable">global</span>.<span class="variable">turing</span>) {
<span class="keyword">throw</span> <span class="keyword">new</span> <span class="class">Error</span>(<span class="string">'turing has already been defined'</span>);
} <span class="keyword">else</span> {
<span class="variable">global</span>.<span class="variable">turing</span> = <span class="variable">turing</span>;
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">exports</span> !== <span class="string">'undefined'</span>) {
<span class="variable">exports</span>.<span class="variable">turing</span> = <span class="variable">turing</span>;
}
}
}(<span class="keyword">typeof</span> <span class="variable">window</span> === <span class="string">'undefined'</span> ? <span class="this">this</span> : <span class="variable">window</span>));
</code></pre>
</td>
</tr><tr class="filename"><td><h2 id="turing.dom.js"><a href="#">turing.dom</a></h2></td><td>turing.dom.js</td></tr><tr class="code">
<td class="docs">
<p>The Turing DOM module.
</p>
</td>
<td class="code">
<pre><code>(<span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">dom</span> = {}, <span class="class">InvalidFinder</span> = <span class="class">Error</span>, <span class="variable">macros</span>, <span class="variable">rules</span>, <span class="variable">tokenMap</span>,
<span class="variable">find</span>, <span class="variable">matchMap</span>, <span class="variable">findMap</span>, <span class="variable">filter</span>, <span class="variable">scannerRegExp</span>, <span class="variable">nodeTypes</span>,
<span class="variable">getStyle</span>, <span class="variable">setStyle</span>, <span class="variable">cssNumericalProperty</span>, <span class="variable">propertyFix</span>,
<span class="variable">getAttributeParamFix</span>, <span class="variable">booleanAttributes</span>;
<span class="variable">macros</span> = {
<span class="string">'nl'</span>: <span class="string">'\n|\r\n|\r|\f'</span>,
<span class="string">'w'</span>: <span class="string">'[\s\r\n\f]*'</span>,
<span class="string">'nonascii'</span>: <span class="string">'[^\0-\177]'</span>,
<span class="string">'num'</span>: <span class="string">'-?([0-9]+|[0-9]*\.[0-9]+)'</span>,
<span class="string">'unicode'</span>: <span class="string">'\\[0-9A-Fa-f]{1,6}(\r\n|[\s\n\r\t\f])?'</span>,
<span class="string">'escape'</span>: <span class="string">'#{unicode}|\\[^\n\r\f0-9A-Fa-f]'</span>,
<span class="string">'nmchar'</span>: <span class="string">'[_A-Za-z0-9-]|#{nonascii}|#{escape}'</span>,
<span class="string">'nmstart'</span>: <span class="string">'[_A-Za-z]|#{nonascii}|#{escape}'</span>,
<span class="string">'ident'</span>: <span class="string">'[-@]?(#{nmstart})(#{nmchar})*'</span>,
<span class="string">'name'</span>: <span class="string">'(#{nmchar})+'</span>,
<span class="string">'string1'</span>: <span class="string">'"([^\n\r\f"]|#{nl}|#{nonascii}|#{escape})*"'</span>,
<span class="string">'string2'</span>: &<span class="variable">quot</span>;<span class="string">'([^\n\r\f'</span>]|#{<span class="variable">nl</span>}|#{<span class="variable">nonascii</span>}|#{<span class="variable">escape</span>})*'&<span class="variable">quot</span>;,
<span class="string">'string'</span>: <span class="string">'#{string1}|#{string2}'</span>
};
<span class="variable">nodeTypes</span> = {
<span class="class">ELEMENT_NODE</span>: <span class="number integer">1</span>,
<span class="class">ATTRIBUTE_NODE</span>: <span class="number integer">2</span>,
<span class="class">TEXT_NODE</span>: <span class="number integer">3</span>,
<span class="class">CDATA_SECTION_NODE</span>: <span class="number integer">4</span>,
<span class="class">ENTITY_REFERENCE_NODE</span>: <span class="number integer">5</span>,
<span class="class">ENTITY_NODE</span>: <span class="number integer">6</span>,
<span class="class">PROCESSING_INSTRUCTION_NODE</span>: <span class="number integer">7</span>,
<span class="class">COMMENT_NODE</span>: <span class="number integer">8</span>,
<span class="class">DOCUMENT_NODE</span>: <span class="number integer">9</span>,
<span class="class">DOCUMENT_TYPE_NODE</span>: <span class="number integer">10</span>,
<span class="class">DOCUMENT_FRAGMENT_NODE</span>: <span class="number integer">11</span>,
<span class="class">NOTATION_NODE</span>: <span class="number integer">12</span>
};
<span class="variable">cssNumericalProperty</span> = {
<span class="string">'zIndex'</span>: <span class="variable">true</span>,
<span class="string">'fontWeight'</span>: <span class="variable">true</span>,
<span class="string">'opacity'</span>: <span class="variable">true</span>,
<span class="string">'zoom'</span>: <span class="variable">true</span>,
<span class="string">'lineHeight'</span>: <span class="variable">true</span>
};
<span class="variable">booleanAttributes</span> = {
<span class="string">'selected'</span>: <span class="variable">true</span>,
<span class="string">'readonly'</span>: <span class="variable">true</span>,
<span class="string">'checked'</span>: <span class="variable">true</span>
};
<span class="variable">rules</span> = {
<span class="string">'name and id'</span>: <span class="string">'(#{ident}##{ident})'</span>,
<span class="string">'id'</span>: <span class="string">'(##{ident})'</span>,
<span class="string">'class'</span>: <span class="string">'(\\.#{ident})'</span>,
<span class="string">'name and class'</span>: <span class="string">'(#{ident}\\.#{ident})'</span>,
<span class="string">'element'</span>: <span class="string">'(#{ident})'</span>,
<span class="string">'pseudo class'</span>: <span class="string">'(:#{ident})'</span>
};
<span class="variable">propertyFix</span> = {
<span class="variable">tabindex</span>: <span class="string">'tabIndex'</span>,
<span class="variable">readonly</span>: <span class="string">'readOnly'</span>,
<span class="string">'for'</span>: <span class="string">'htmlFor'</span>,
<span class="string">'class'</span>: <span class="string">'className'</span>,
<span class="variable">maxlength</span>: <span class="string">'maxLength'</span>,
<span class="variable">cellspacing</span>: <span class="string">'cellSpacing'</span>,
<span class="variable">cellpadding</span>: <span class="string">'cellPadding'</span>,
<span class="variable">rowspan</span>: <span class="string">'rowSpan'</span>,
<span class="variable">colspan</span>: <span class="string">'colSpan'</span>,
<span class="variable">usemap</span>: <span class="string">'useMap'</span>,
<span class="variable">frameborder</span>: <span class="string">'frameBorder'</span>,
<span class="variable">contenteditable</span>: <span class="string">'contentEditable'</span>
};
<span class="variable">getAttributeParamFix</span> = {
<span class="variable">width</span>: <span class="variable">true</span>,
<span class="variable">height</span>: <span class="variable">true</span>,
<span class="variable">src</span>: <span class="variable">true</span>,
<span class="variable">href</span>: <span class="variable">true</span>
};
<span class="variable">turing</span>.<span class="variable">addDetectionTest</span>(<span class="string">'classList'</span>, <span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">div</span> = <span class="variable">document</span>.<span class="variable">createElement</span>(<span class="string">'div'</span>);
<span class="keyword">if</span> (<span class="variable">div</span>.<span class="variable">classList</span>) {
<span class="keyword">return</span> <span class="variable">true</span>;
}
<span class="variable">div</span> = <span class="keyword">null</span>;
<span class="keyword">return</span> <span class="variable">false</span>;
});
<span class="keyword">function</span> <span class="variable">scanner</span>() {
<span class="keyword">function</span> <span class="variable">replacePattern</span>(<span class="variable">pattern</span>, <span class="variable">patterns</span>) {
<span class="keyword">var</span> <span class="variable">matched</span> = <span class="variable">true</span>, <span class="variable">match</span>;
<span class="keyword">while</span> (<span class="variable">matched</span>) {
<span class="variable">match</span> = <span class="variable">pattern</span>.<span class="variable">match</span>(<span class="regexp">/#\{([^}]+)\}/</span>);
<span class="keyword">if</span> (<span class="variable">match</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">match</span>[<span class="number integer">1</span>]) {
<span class="variable">pattern</span> = <span class="variable">pattern</span>.<span class="variable">replace</span>(<span class="keyword">new</span> <span class="class">RegExp</span>(<span class="string">'#\{'</span> + <span class="variable">match</span>[<span class="number integer">1</span>] + <span class="string">'\}'</span>, <span class="string">'g'</span>), <span class="variable">patterns</span>[<span class="variable">match</span>[<span class="number integer">1</span>]]);
<span class="variable">matched</span> = <span class="variable">true</span>;
} <span class="keyword">else</span> {
<span class="variable">matched</span> = <span class="variable">false</span>;
}
}
<span class="keyword">return</span> <span class="variable">pattern</span>;
}
<span class="keyword">function</span> <span class="variable">escapePattern</span>(<span class="variable">text</span>) {
<span class="keyword">return</span> <span class="variable">text</span>.<span class="variable">replace</span>(<span class="regexp">/\/</span><span class="regexp">/g, '/</span>/');
}
<span class="keyword">function</span> <span class="variable">convertPatterns</span>() {
<span class="keyword">var</span> <span class="variable">key</span>, <span class="variable">pattern</span>, <span class="variable">results</span> = {}, <span class="variable">patterns</span>, <span class="variable">source</span>;
<span class="keyword">if</span> (<span class="variable">arguments</span>.<span class="variable">length</span> === <span class="number integer">2</span>) {
<span class="variable">source</span> = <span class="variable">arguments</span>[<span class="number integer">0</span>];
<span class="variable">patterns</span> = <span class="variable">arguments</span>[<span class="number integer">1</span>];
} <span class="keyword">else</span> {
<span class="variable">source</span> = <span class="variable">arguments</span>[<span class="number integer">0</span>];
<span class="variable">patterns</span> = <span class="variable">arguments</span>[<span class="number integer">0</span>];
}
<span class="keyword">for</span> (<span class="variable">key</span> <span class="keyword">in</span> <span class="variable">patterns</span>) {
<span class="variable">pattern</span> = <span class="variable">escapePattern</span>(<span class="variable">replacePattern</span>(<span class="variable">patterns</span>[<span class="variable">key</span>], <span class="variable">source</span>));
<span class="variable">results</span>[<span class="variable">key</span>] = <span class="variable">pattern</span>;
}
<span class="keyword">return</span> <span class="variable">results</span>;
}
<span class="keyword">function</span> <span class="variable">joinPatterns</span>(<span class="variable">regexps</span>) {
<span class="keyword">var</span> <span class="variable">results</span> = [], <span class="variable">key</span>;
<span class="keyword">for</span> (<span class="variable">key</span> <span class="keyword">in</span> <span class="variable">regexps</span>) {
<span class="variable">results</span>.<span class="variable">push</span>(<span class="variable">regexps</span>[<span class="variable">key</span>]);
}
<span class="keyword">return</span> <span class="keyword">new</span> <span class="class">RegExp</span>(<span class="variable">results</span>.<span class="variable">join</span>(<span class="string">'|'</span>), <span class="string">'g'</span>);
}
<span class="keyword">return</span> <span class="variable">joinPatterns</span>(
<span class="variable">convertPatterns</span>(<span class="variable">convertPatterns</span>(<span class="variable">macros</span>), <span class="variable">rules</span>)
);
}
<span class="variable">scannerRegExp</span> = <span class="variable">scanner</span>();
<span class="variable">find</span> = {
<span class="variable">byId</span>: <span class="keyword">function</span>(<span class="variable">root</span>, <span class="variable">id</span>) {
<span class="keyword">if</span> (<span class="variable">root</span> === <span class="keyword">null</span>) <span class="keyword">return</span> [];
<span class="keyword">return</span> [<span class="variable">root</span>.<span class="variable">getElementById</span>(<span class="variable">id</span>)];
},
<span class="variable">byNodeName</span>: <span class="keyword">function</span>(<span class="variable">root</span>, <span class="variable">tagName</span>) {
<span class="keyword">if</span> (<span class="variable">root</span> === <span class="keyword">null</span>) <span class="keyword">return</span> [];
<span class="keyword">var</span> <span class="variable">i</span>, <span class="variable">results</span> = [], <span class="variable">nodes</span> = <span class="variable">root</span>.<span class="variable">getElementsByTagName</span>(<span class="variable">tagName</span>);
<span class="keyword">for</span> (<span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="variable">nodes</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="variable">results</span>.<span class="variable">push</span>(<span class="variable">nodes</span>[<span class="variable">i</span>]);
}
<span class="keyword">return</span> <span class="variable">results</span>;
},
<span class="variable">byClassName</span>: <span class="keyword">function</span>(<span class="variable">root</span>, <span class="variable">className</span>) {
<span class="keyword">if</span> (<span class="variable">root</span> === <span class="keyword">null</span>) <span class="keyword">return</span> [];
<span class="keyword">var</span> <span class="variable">i</span>, <span class="variable">results</span> = [], <span class="variable">nodes</span> = <span class="variable">root</span>.<span class="variable">getElementsByTagName</span>(<span class="string">'*'</span>);
<span class="keyword">for</span> (<span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="variable">nodes</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="keyword">if</span> (<span class="variable">nodes</span>[<span class="variable">i</span>].<span class="variable">className</span>.<span class="variable">match</span>(<span class="string">'\\b'</span> + <span class="variable">className</span> + <span class="string">'\\b'</span>)) {
<span class="variable">results</span>.<span class="variable">push</span>(<span class="variable">nodes</span>[<span class="variable">i</span>]);
}
}
<span class="keyword">return</span> <span class="variable">results</span>;
}
};
<span class="variable">findMap</span> = {
<span class="string">'id'</span>: <span class="keyword">function</span>(<span class="variable">root</span>, <span class="variable">selector</span>) {
<span class="variable">selector</span> = <span class="variable">selector</span>.<span class="variable">split</span>(<span class="string">'#'</span>)[<span class="number integer">1</span>];
<span class="keyword">return</span> <span class="variable">find</span>.<span class="variable">byId</span>(<span class="variable">root</span>, <span class="variable">selector</span>);
},
<span class="string">'name and id'</span>: <span class="keyword">function</span>(<span class="variable">root</span>, <span class="variable">selector</span>) {
<span class="keyword">var</span> <span class="variable">matches</span> = <span class="variable">selector</span>.<span class="variable">split</span>(<span class="string">'#'</span>), <span class="variable">name</span>, <span class="variable">id</span>;
<span class="variable">name</span> = <span class="variable">matches</span>[<span class="number integer">0</span>];
<span class="variable">id</span> = <span class="variable">matches</span>[<span class="number integer">1</span>];
<span class="keyword">return</span> <span class="variable">filter</span>.<span class="variable">byAttr</span>(<span class="variable">find</span>.<span class="variable">byId</span>(<span class="variable">root</span>, <span class="variable">id</span>), <span class="string">'nodeName'</span>, <span class="variable">name</span>.<span class="variable">toUpperCase</span>());
},
<span class="string">'name'</span>: <span class="keyword">function</span>(<span class="variable">root</span>, <span class="variable">selector</span>) {
<span class="keyword">return</span> <span class="variable">find</span>.<span class="variable">byNodeName</span>(<span class="variable">root</span>, <span class="variable">selector</span>);
},
<span class="string">'class'</span>: <span class="keyword">function</span>(<span class="variable">root</span>, <span class="variable">selector</span>) {
<span class="variable">selector</span> = <span class="variable">selector</span>.<span class="variable">split</span>(<span class="string">'\.'</span>)[<span class="number integer">1</span>];
<span class="keyword">return</span> <span class="variable">find</span>.<span class="variable">byClassName</span>(<span class="variable">root</span>, <span class="variable">selector</span>);
},
<span class="string">'name and class'</span>: <span class="keyword">function</span>(<span class="variable">root</span>, <span class="variable">selector</span>) {
<span class="keyword">var</span> <span class="variable">matches</span> = <span class="variable">selector</span>.<span class="variable">split</span>(<span class="string">'\.'</span>), <span class="variable">name</span>, <span class="variable">className</span>;
<span class="variable">name</span> = <span class="variable">matches</span>[<span class="number integer">0</span>];
<span class="variable">className</span> = <span class="variable">matches</span>[<span class="number integer">1</span>];
<span class="keyword">return</span> <span class="variable">filter</span>.<span class="variable">byAttr</span>(<span class="variable">find</span>.<span class="variable">byClassName</span>(<span class="variable">root</span>, <span class="variable">className</span>), <span class="string">'nodeName'</span>, <span class="variable">name</span>.<span class="variable">toUpperCase</span>());
}
};
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">document</span> !== <span class="string">'undefined'</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="keyword">typeof</span> <span class="variable">document</span>.<span class="variable">getElementsByClassName</span> !== <span class="string">'undefined'</span>) {
<span class="variable">find</span>.<span class="variable">byClassName</span> = <span class="keyword">function</span>(<span class="variable">root</span>, <span class="variable">className</span>) {
<span class="keyword">return</span> <span class="variable">root</span>.<span class="variable">getElementsByClassName</span>(<span class="variable">className</span>);
};
}
<span class="variable">filter</span> = {
<span class="variable">byAttr</span>: <span class="keyword">function</span>(<span class="variable">elements</span>, <span class="variable">attribute</span>, <span class="variable">value</span>) {
<span class="keyword">var</span> <span class="variable">key</span>, <span class="variable">results</span> = [];
<span class="keyword">for</span> (<span class="variable">key</span> <span class="keyword">in</span> <span class="variable">elements</span>) {
<span class="keyword">if</span> (<span class="variable">elements</span>[<span class="variable">key</span>] &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">elements</span>[<span class="variable">key</span>][<span class="variable">attribute</span>] === <span class="variable">value</span>) {
<span class="variable">results</span>.<span class="variable">push</span>(<span class="variable">elements</span>[<span class="variable">key</span>]);
}
}
<span class="keyword">return</span> <span class="variable">results</span>;
}
};
<span class="variable">matchMap</span> = {
<span class="string">'id'</span>: <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">selector</span>) {
<span class="variable">selector</span> = <span class="variable">selector</span>.<span class="variable">split</span>(<span class="string">'#'</span>)[<span class="number integer">1</span>];
<span class="keyword">return</span> <span class="variable">element</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">element</span>.<span class="variable">id</span> === <span class="variable">selector</span>;
},
<span class="string">'name'</span>: <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">nodeName</span>) {
<span class="keyword">return</span> <span class="variable">element</span>.<span class="variable">nodeName</span> === <span class="variable">nodeName</span>.<span class="variable">toUpperCase</span>();
},
<span class="string">'name and id'</span>: <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">selector</span>) {
<span class="keyword">return</span> <span class="variable">matchMap</span>.<span class="variable">id</span>(<span class="variable">element</span>, <span class="variable">selector</span>) &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">matchMap</span>.<span class="variable">name</span>(<span class="variable">element</span>, <span class="variable">selector</span>.<span class="variable">split</span>(<span class="string">'#'</span>)[<span class="number integer">0</span>]);
},
<span class="string">'class'</span>: <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">selector</span>) {
<span class="keyword">if</span> (<span class="variable">element</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">element</span>.<span class="variable">className</span>) {
<span class="variable">selector</span> = <span class="variable">selector</span>.<span class="variable">split</span>(<span class="string">'\.'</span>)[<span class="number integer">1</span>];
<span class="keyword">return</span> <span class="variable">element</span>.<span class="variable">className</span>.<span class="variable">match</span>(<span class="string">'\\b'</span> + <span class="variable">selector</span> + <span class="string">'\\b'</span>);
}
},
<span class="string">'name and class'</span>: <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">selector</span>) {
<span class="keyword">return</span> <span class="variable">matchMap</span>[<span class="string">'class'</span>](<span class="variable">element</span>, <span class="variable">selector</span>) &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">matchMap</span>.<span class="variable">name</span>(<span class="variable">element</span>, <span class="variable">selector</span>.<span class="variable">split</span>(<span class="string">'\.'</span>)[<span class="number integer">0</span>]);
}
};
<span class="keyword">function</span> <span class="class">Searcher</span>(<span class="variable">root</span>, <span class="variable">tokens</span>) {
<span class="this">this</span>.<span class="variable">root</span> = <span class="variable">root</span>;
<span class="this">this</span>.<span class="variable">key_selector</span> = <span class="variable">tokens</span>.<span class="variable">pop</span>();
<span class="this">this</span>.<span class="variable">tokens</span> = <span class="variable">tokens</span>;
<span class="this">this</span>.<span class="variable">results</span> = [];
}
<span class="class">Searcher</span>.<span class="variable">prototype</span>.<span class="variable">matchesToken</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">token</span>) {
<span class="keyword">if</span> (!<span class="variable">matchMap</span>[<span class="variable">token</span>.<span class="variable">finder</span>]) {
<span class="keyword">throw</span> <span class="keyword">new</span> <span class="class">InvalidFinder</span>(<span class="string">'Invalid matcher: '</span> + <span class="variable">token</span>.<span class="variable">finder</span>);
}
<span class="keyword">return</span> <span class="variable">matchMap</span>[<span class="variable">token</span>.<span class="variable">finder</span>](<span class="variable">element</span>, <span class="variable">token</span>.<span class="variable">identity</span>);
};
<span class="class">Searcher</span>.<span class="variable">prototype</span>.<span class="variable">find</span> = <span class="keyword">function</span>(<span class="variable">token</span>) {
<span class="keyword">if</span> (!<span class="variable">findMap</span>[<span class="variable">token</span>.<span class="variable">finder</span>]) {
<span class="keyword">throw</span> <span class="keyword">new</span> <span class="class">InvalidFinder</span>(<span class="string">'Invalid finder: '</span> + <span class="variable">token</span>.<span class="variable">finder</span>);
}
<span class="keyword">return</span> <span class="variable">findMap</span>[<span class="variable">token</span>.<span class="variable">finder</span>](<span class="this">this</span>.<span class="variable">root</span>, <span class="variable">token</span>.<span class="variable">identity</span>);
};
<span class="class">Searcher</span>.<span class="variable">prototype</span>.<span class="variable">matchesAllRules</span> = <span class="keyword">function</span>(<span class="variable">element</span>) {
<span class="keyword">if</span> (<span class="this">this</span>.<span class="variable">tokens</span>.<span class="variable">length</span> === <span class="number integer">0</span>) <span class="keyword">return</span>;
<span class="keyword">var</span> <span class="variable">i</span> = <span class="this">this</span>.<span class="variable">tokens</span>.<span class="variable">length</span> - <span class="number integer">1</span>,
<span class="variable">token</span> = <span class="this">this</span>.<span class="variable">tokens</span>[<span class="variable">i</span>],
<span class="variable">matchFound</span> = <span class="variable">false</span>;
<span class="keyword">while</span> (<span class="variable">i</span> &<span class="variable">gt</span>;= <span class="number integer">0</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">element</span>) {
<span class="keyword">if</span> (<span class="this">this</span>.<span class="variable">matchesToken</span>(<span class="variable">element</span>, <span class="variable">token</span>)) {
<span class="variable">matchFound</span> = <span class="variable">true</span>;
<span class="variable">i</span>--;
<span class="variable">token</span> = <span class="this">this</span>.<span class="variable">tokens</span>[<span class="variable">i</span>];
}
<span class="variable">element</span> = <span class="variable">element</span>.<span class="variable">parentNode</span>;
}
<span class="keyword">return</span> <span class="variable">matchFound</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="number integer">0</span>;
};
<span class="class">Searcher</span>.<span class="variable">prototype</span>.<span class="variable">parse</span> = <span class="keyword">function</span>() {
<span class="comment">// Find all elements with the key selector</span>
<span class="keyword">var</span> <span class="variable">i</span>, <span class="variable">element</span>, <span class="variable">elements</span> = <span class="this">this</span>.<span class="variable">find</span>(<span class="this">this</span>.<span class="variable">key_selector</span>), <span class="variable">results</span> = [];
<span class="comment">// Traverse upwards from each element to see if it matches all of the rules</span>
<span class="keyword">for</span> (<span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="variable">elements</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="variable">element</span> = <span class="variable">elements</span>[<span class="variable">i</span>];
<span class="keyword">if</span> (<span class="this">this</span>.<span class="variable">tokens</span>.<span class="variable">length</span> &<span class="variable">gt</span>; <span class="number integer">0</span>) {
<span class="keyword">if</span> (<span class="this">this</span>.<span class="variable">matchesAllRules</span>(<span class="variable">element</span>.<span class="variable">parentNode</span>)) {
<span class="variable">results</span>.<span class="variable">push</span>(<span class="variable">element</span>);
}
} <span class="keyword">else</span> {
<span class="keyword">if</span> (<span class="this">this</span>.<span class="variable">matchesToken</span>(<span class="variable">element</span>, <span class="this">this</span>.<span class="variable">key_selector</span>)) {
<span class="variable">results</span>.<span class="variable">push</span>(<span class="variable">element</span>);
}
}
}
<span class="keyword">return</span> <span class="variable">results</span>;
};
<span class="class">Searcher</span>.<span class="variable">prototype</span>.<span class="variable">values</span> = <span class="keyword">function</span>() {
<span class="keyword">return</span> <span class="this">this</span>.<span class="variable">results</span>;
};
<span class="keyword">function</span> <span class="variable">normalize</span>(<span class="variable">text</span>) {
<span class="keyword">return</span> <span class="variable">text</span>.<span class="variable">replace</span>(<span class="regexp">/^\s+|\s+$/g</span>, <span class="string">''</span>).<span class="variable">replace</span>(<span class="regexp">/[ \t\r\n\f]+/g</span>, <span class="string">' '</span>);
}
<span class="comment">// Tokens are used by the Tokenizer</span>
<span class="keyword">function</span> <span class="class">Token</span>(<span class="variable">identity</span>, <span class="variable">finder</span>) {
<span class="this">this</span>.<span class="variable">identity</span> = <span class="variable">identity</span>;
<span class="this">this</span>.<span class="variable">finder</span> = <span class="variable">finder</span>;
}
<span class="class">Token</span>.<span class="variable">prototype</span>.<span class="variable">toString</span> = <span class="keyword">function</span>() {
<span class="keyword">return</span> <span class="string">'identity: '</span> + <span class="this">this</span>.<span class="variable">identity</span> + <span class="string">', finder: '</span> + <span class="this">this</span>.<span class="variable">finder</span>;
};
<span class="comment">// Tokenizer: classify sections of the scanner output</span>
<span class="keyword">function</span> <span class="class">Tokenizer</span>(<span class="variable">selector</span>) {
<span class="this">this</span>.<span class="variable">selector</span> = <span class="variable">normalize</span>(<span class="variable">selector</span>);
<span class="this">this</span>.<span class="variable">tokens</span> = [];
<span class="this">this</span>.<span class="variable">tokenize</span>();
}
<span class="class">Tokenizer</span>.<span class="variable">prototype</span>.<span class="variable">tokenize</span> = <span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">match</span>, <span class="variable">r</span>, <span class="variable">finder</span>;
<span class="variable">r</span> = <span class="variable">scannerRegExp</span>;
<span class="variable">r</span>.<span class="variable">lastIndex</span> = <span class="number integer">0</span>;
<span class="keyword">while</span> (<span class="variable">match</span> = <span class="variable">r</span>.<span class="variable">exec</span>(<span class="this">this</span>.<span class="variable">selector</span>)) {
<span class="variable">finder</span> = <span class="keyword">null</span>;
<span class="keyword">if</span> (<span class="variable">match</span>[<span class="number integer">10</span>]) {
<span class="variable">finder</span> = <span class="string">'id'</span>;
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="variable">match</span>[<span class="number integer">1</span>]) {
<span class="variable">finder</span> = <span class="string">'name and id'</span>;
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="variable">match</span>[<span class="number integer">29</span>]) {
<span class="variable">finder</span> = <span class="string">'name'</span>;
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="variable">match</span>[<span class="number integer">15</span>]) {
<span class="variable">finder</span> = <span class="string">'class'</span>;
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="variable">match</span>[<span class="number integer">20</span>]) {
<span class="variable">finder</span> = <span class="string">'name and class'</span>;
}
<span class="this">this</span>.<span class="variable">tokens</span>.<span class="variable">push</span>(<span class="keyword">new</span> <span class="class">Token</span>(<span class="variable">match</span>[<span class="number integer">0</span>], <span class="variable">finder</span>));
}
<span class="keyword">return</span> <span class="this">this</span>.<span class="variable">tokens</span>;
};
<span class="class">Tokenizer</span>.<span class="variable">prototype</span>.<span class="variable">finders</span> = <span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">i</span>, <span class="variable">results</span> = [];
<span class="keyword">for</span> (<span class="variable">i</span> <span class="keyword">in</span> <span class="this">this</span>.<span class="variable">tokens</span>) {
<span class="variable">results</span>.<span class="variable">push</span>(<span class="this">this</span>.<span class="variable">tokens</span>[<span class="variable">i</span>].<span class="variable">finder</span>);
}
<span class="keyword">return</span> <span class="variable">results</span>;
};
<span class="variable">dom</span>.<span class="variable">tokenize</span> = <span class="keyword">function</span>(<span class="variable">selector</span>) {
<span class="keyword">var</span> <span class="variable">tokenizer</span> = <span class="keyword">new</span> <span class="class">Tokenizer</span>(<span class="variable">selector</span>);
<span class="keyword">return</span> <span class="variable">tokenizer</span>;
};
<span class="keyword">function</span> <span class="variable">get</span>(<span class="variable">selector</span>, <span class="variable">root</span>) {
<span class="keyword">var</span> <span class="variable">tokens</span> = <span class="variable">dom</span>.<span class="variable">tokenize</span>(<span class="variable">selector</span>).<span class="variable">tokens</span>,
<span class="variable">searcher</span> = <span class="keyword">new</span> <span class="class">Searcher</span>(<span class="variable">root</span>, <span class="variable">tokens</span>);
<span class="keyword">return</span> <span class="variable">searcher</span>.<span class="variable">parse</span>();
}
<span class="variable">turing</span>.<span class="variable">addDetectionTest</span>(<span class="string">'querySelectorAll'</span>, <span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">div</span> = <span class="variable">document</span>.<span class="variable">createElement</span>(<span class="string">'div'</span>);
<span class="variable">div</span>.<span class="variable">innerHTML</span> = <span class="string">'<p class="TEST"></p>'</span>;
<span class="comment">// Some versions of Safari can't handle uppercase in quirks mode</span>
<span class="keyword">if</span> (<span class="variable">div</span>.<span class="variable">querySelectorAll</span>) {
<span class="keyword">if</span> (<span class="variable">div</span>.<span class="variable">querySelectorAll</span>(<span class="string">'.TEST'</span>).<span class="variable">length</span> === <span class="number integer">0</span>) <span class="keyword">return</span> <span class="variable">false</span>;
<span class="keyword">return</span> <span class="variable">true</span>;
}
<span class="comment">// Helps IE release memory associated with the div</span>
<span class="variable">div</span> = <span class="keyword">null</span>;
<span class="keyword">return</span> <span class="variable">false</span>;
});</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Converts property names with hyphens to camelCase.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> text A property name</p></li><li><p><strong>returns</strong>: <em>String</em> text A camelCase property name</p></li></ul>
</td>
<td class="code">
<pre><code><span class="keyword">function</span> <span class="variable">camelCase</span>(<span class="variable">text</span>) {
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">text</span> !== <span class="string">'string'</span>) <span class="keyword">return</span>;
<span class="keyword">return</span> <span class="variable">text</span>.<span class="variable">replace</span>(<span class="regexp">/-([a-z])/ig</span>, <span class="keyword">function</span>(<span class="variable">all</span>, <span class="variable">letter</span>) { <span class="keyword">return</span> <span class="variable">letter</span>.<span class="variable">toUpperCase</span>(); });
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Converts property names in camelCase to ones with hyphens.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> text A property name</p></li><li><p><strong>returns</strong>: <em>String</em> text A camelCase property name</p></li></ul>
</td>
<td class="code">
<pre><code><span class="keyword">function</span> <span class="variable">uncamel</span>(<span class="variable">text</span>) {
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">text</span> !== <span class="string">'string'</span>) <span class="keyword">return</span>;
<span class="keyword">return</span> <span class="variable">text</span>.<span class="variable">replace</span>(<span class="regexp">/([A-Z])/g</span>, <span class="string">'-$1'</span>).<span class="variable">toLowerCase</span>();
};
<span class="keyword">function</span> <span class="variable">invalidCSSNode</span>(<span class="variable">element</span>) {
<span class="keyword">return</span> !<span class="variable">element</span> || <span class="variable">element</span>.<span class="variable">nodeType</span> === <span class="variable">nodeTypes</span>.<span class="class">TEXT_NODE</span> || <span class="variable">element</span>.<span class="variable">nodeType</span> === <span class="variable">nodeTypes</span>.<span class="class">COMMENT_NODE</span> || !<span class="variable">element</span>.<span class="variable">style</span>;
}
<span class="keyword">function</span> <span class="variable">setStyleProperty</span>(<span class="variable">element</span>, <span class="variable">property</span>, <span class="variable">value</span>) {
<span class="keyword">if</span> (<span class="variable">invalidCSSNode</span>(<span class="variable">element</span>)) {
<span class="keyword">return</span>;
}
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">value</span> === <span class="string">'number'</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; !<span class="variable">cssNumericalProperty</span>[<span class="variable">property</span>]) {
<span class="variable">value</span> += <span class="string">'px'</span>;
}
<span class="variable">element</span>.<span class="variable">style</span>[<span class="variable">property</span>] = <span class="variable">value</span>;
}
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">document</span> !== <span class="string">'undefined'</span>) {
<span class="keyword">if</span> (<span class="variable">document</span>.<span class="variable">documentElement</span>.<span class="variable">currentStyle</span>) {
<span class="variable">getStyle</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">property</span>) {
<span class="keyword">return</span> <span class="variable">element</span>.<span class="variable">currentStyle</span>[<span class="variable">camelCase</span>(<span class="variable">property</span>)];
};
<span class="variable">setStyle</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">property</span>, <span class="variable">value</span>) {
<span class="keyword">return</span> <span class="variable">setStyleProperty</span>(<span class="variable">element</span>, <span class="variable">camelCase</span>(<span class="variable">property</span>), <span class="variable">value</span>);
};
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="variable">document</span>.<span class="variable">defaultView</span>.<span class="variable">getComputedStyle</span>) {
<span class="variable">getStyle</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">property</span>) {
<span class="keyword">return</span> <span class="variable">element</span>.<span class="variable">ownerDocument</span>.<span class="variable">defaultView</span>.<span class="variable">getComputedStyle</span>(<span class="variable">element</span>, <span class="keyword">null</span>).<span class="variable">getPropertyValue</span>(<span class="variable">uncamel</span>(<span class="variable">property</span>));
};
<span class="variable">setStyle</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">property</span>, <span class="variable">value</span>) {
<span class="keyword">return</span> <span class="variable">setStyleProperty</span>(<span class="variable">element</span>, <span class="variable">uncamel</span>(<span class="variable">property</span>), <span class="variable">value</span>);
};
}
}</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Gets or sets style values.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>returns</strong>: <em>Object</em> The style value</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">dom</span>.<span class="variable">css</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">options</span>) {
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">options</span> === <span class="string">'string'</span>) {
<span class="keyword">return</span> <span class="variable">getStyle</span>(<span class="variable">element</span>, <span class="variable">options</span>);
} <span class="keyword">else</span> {
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">property</span> <span class="keyword">in</span> <span class="variable">options</span>) {
<span class="keyword">if</span> (<span class="variable">options</span>.<span class="variable">hasOwnProperty</span>(<span class="variable">property</span>)) {
<span class="variable">setStyle</span>(<span class="variable">element</span>, <span class="variable">property</span>, <span class="variable">options</span>[<span class="variable">property</span>]);
}
}
}
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Finds DOM elements based on a CSS selector.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> selector A CSS selector</p></li><li><p><strong>returns</strong>: <em>Array</em> The elements</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">dom</span>.<span class="variable">get</span> = <span class="keyword">function</span>(<span class="variable">selector</span>) {
<span class="keyword">var</span> <span class="variable">root</span> = <span class="keyword">typeof</span> <span class="variable">arguments</span>[<span class="number integer">1</span>] === <span class="string">'undefined'</span> ? <span class="variable">document</span> : <span class="variable">arguments</span>[<span class="number integer">1</span>];
<span class="keyword">return</span> <span class="variable">turing</span>.<span class="variable">toArray</span>(<span class="variable">turing</span>.<span class="variable">detect</span>(<span class="string">'querySelectorAll'</span>) ?
<span class="variable">root</span>.<span class="variable">querySelectorAll</span>(<span class="variable">selector</span>) : <span class="variable">get</span>(<span class="variable">selector</span>, <span class="variable">root</span>));
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Does an element satify a selector, based on root element?</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>String</em> selector A CSS selector</p></li><li><p><strong>param</strong>: <em>Object</em> root The root DOM element</p></li><li><p><strong>returns</strong>: <em>Object</em> The matching DOM element</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">dom</span>.<span class="variable">findElement</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">selector</span>, <span class="variable">root</span>) {
<span class="keyword">var</span> <span class="variable">tokens</span> = <span class="variable">dom</span>.<span class="variable">tokenize</span>(<span class="variable">selector</span>).<span class="variable">tokens</span>,
<span class="variable">searcher</span> = <span class="keyword">new</span> <span class="class">Searcher</span>(<span class="variable">root</span>, []);
<span class="variable">searcher</span>.<span class="variable">tokens</span> = <span class="variable">tokens</span>;
<span class="keyword">while</span> (<span class="variable">element</span>) {
<span class="keyword">if</span> (<span class="variable">searcher</span>.<span class="variable">matchesAllRules</span>(<span class="variable">element</span>)) {
<span class="keyword">return</span> <span class="variable">element</span>;
}
<span class="variable">element</span> = <span class="variable">element</span>.<span class="variable">parentNode</span>;
}
};
<span class="keyword">function</span> <span class="variable">manipulateDOM</span>(<span class="variable">element</span>, <span class="variable">html</span>, <span class="variable">callback</span>) {
<span class="keyword">var</span> <span class="variable">context</span> = <span class="variable">document</span>,
<span class="variable">isTable</span> = <span class="variable">element</span>.<span class="variable">nodeName</span> === <span class="string">'TABLE'</span>,
<span class="variable">shim</span>,
<span class="variable">div</span>;
<span class="variable">div</span> = <span class="variable">context</span>.<span class="variable">createElement</span>(<span class="string">'div'</span>);
<span class="variable">div</span>.<span class="variable">innerHTML</span> = <span class="string">'<'</span> + <span class="variable">element</span>.<span class="variable">nodeName</span> + <span class="string">'>'</span> + <span class="variable">html</span> + <span class="string">'</'</span> + <span class="variable">element</span>.<span class="variable">nodeName</span> + <span class="string">'>'</span>;
<span class="variable">shim</span> = <span class="variable">isTable</span> ? <span class="variable">div</span>.<span class="variable">lastChild</span>.<span class="variable">lastChild</span> : <span class="variable">div</span>.<span class="variable">lastChild</span>;
<span class="variable">callback</span>(<span class="variable">isTable</span> ? <span class="variable">element</span>.<span class="variable">lastChild</span> : <span class="variable">element</span>, <span class="variable">shim</span>);
<span class="variable">div</span> = <span class="keyword">null</span>;
};
<span class="keyword">function</span> <span class="variable">getText</span>(<span class="variable">elements</span>) {
<span class="keyword">var</span> <span class="variable">results</span> = <span class="string">''</span>, <span class="variable">element</span>, <span class="variable">i</span>;
<span class="keyword">for</span> (<span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">elements</span>[<span class="variable">i</span>]; <span class="variable">i</span>++) {
<span class="variable">element</span> = <span class="variable">elements</span>[<span class="variable">i</span>];
<span class="keyword">if</span> (<span class="variable">element</span>.<span class="variable">nodeType</span> === <span class="variable">nodeTypes</span>.<span class="class">TEXT_NODE</span>
|| <span class="variable">element</span>.<span class="variable">nodeType</span> === <span class="variable">nodeTypes</span>.<span class="class">CDATA_SECTION_NODE</span>) {
<span class="variable">results</span> += <span class="variable">element</span>.<span class="variable">nodeValue</span>;
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="variable">element</span>.<span class="variable">nodeType</span> !== <span class="variable">nodeTypes</span>.<span class="class">COMMENT_NODE</span>) {
<span class="variable">results</span> += <span class="variable">getText</span>(<span class="variable">element</span>.<span class="variable">childNodes</span>);
}
}
<span class="keyword">return</span> <span class="variable">results</span>;
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Replaces the content of an element.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>String</em> html A string containing HTML</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">dom</span>.<span class="variable">replace</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">html</span>) {
<span class="variable">manipulateDOM</span>(<span class="variable">element</span>, <span class="variable">html</span>, <span class="keyword">function</span>(<span class="variable">insert</span>, <span class="variable">shim</span>) {
<span class="variable">element</span>.<span class="variable">replaceChild</span>(<span class="variable">shim</span>, <span class="variable">insert</span>);
});
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Appends an element to the end of an element.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>String</em> html A string containing HTML</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">dom</span>.<span class="variable">append</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">html</span>) {
<span class="variable">manipulateDOM</span>(<span class="variable">element</span>, <span class="variable">html</span>, <span class="keyword">function</span>(<span class="variable">insertTo</span>, <span class="variable">shim</span>) {
<span class="variable">insertTo</span>.<span class="variable">appendChild</span>(<span class="variable">shim</span>.<span class="variable">firstChild</span>);
});
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Set or get innerHTML.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>String</em> html A string containing HTML</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">dom</span>.<span class="variable">html</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">html</span>) {
<span class="keyword">if</span> (<span class="variable">arguments</span>.<span class="variable">length</span> === <span class="number integer">1</span>) {
<span class="keyword">return</span> <span class="variable">element</span>.<span class="variable">innerHTML</span>;
}
<span class="keyword">try</span> {
<span class="variable">element</span>.<span class="variable">innerHTML</span> = <span class="variable">html</span>;
} <span class="keyword">catch</span> (<span class="variable">e</span>) {
<span class="variable">dom</span>.<span class="variable">replace</span>(<span class="variable">element</span>, <span class="variable">html</span>);
}
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Set or get text nodes.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>String</em> text A string containing text</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">dom</span>.<span class="variable">text</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">text</span>) {
<span class="keyword">if</span> (<span class="variable">arguments</span>.<span class="variable">length</span> === <span class="number integer">1</span>) {
<span class="keyword">return</span> <span class="variable">getText</span>(<span class="variable">element</span>);
} <span class="keyword">else</span> {
<span class="variable">dom</span>.<span class="variable">empty</span>(<span class="variable">element</span>);
<span class="variable">element</span>.<span class="variable">appendChild</span>(<span class="variable">document</span>.<span class="variable">createTextNode</span>(<span class="variable">text</span>));
}
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Empty nodes.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">dom</span>.<span class="variable">empty</span> = <span class="keyword">function</span>(<span class="variable">element</span>) {
<span class="keyword">while</span> (<span class="variable">element</span>.<span class="variable">firstChild</span>) {
<span class="variable">element</span>.<span class="variable">removeChild</span>(<span class="variable">element</span>.<span class="variable">firstChild</span>);
}
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Detects if a class is present, optimised by Henrik Lindqvist
and Ryan Cannon.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>String</em> className The class name</p></li><li><p><strong>return</strong>: <em>Boolean</em> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="keyword">if</span> (<span class="variable">turing</span>.<span class="variable">detect</span>(<span class="string">'classList'</span>)) {
<span class="variable">dom</span>.<span class="variable">hasClass</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">className</span>) {
<span class="keyword">return</span> <span class="variable">element</span>.<span class="variable">classList</span>.<span class="variable">contains</span>(<span class="variable">className</span>);
};
} <span class="keyword">else</span> {
<span class="variable">dom</span>.<span class="variable">hasClass</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">className</span>) {
<span class="keyword">return</span> (<span class="string">' '</span> + <span class="variable">element</span>.<span class="variable">className</span> + <span class="string">' '</span>).<span class="variable">indexOf</span>(<span class="string">' '</span> + <span class="variable">className</span> + <span class="string">' '</span>) !== -<span class="number integer">1</span>;
};
}</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Append CSS classes.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>String</em> className The class name</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">dom</span>.<span class="variable">addClass</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">className</span>) {
<span class="keyword">if</span> (!<span class="variable">className</span> || <span class="keyword">typeof</span> <span class="variable">className</span> !== <span class="string">'string'</span>) <span class="keyword">return</span>;
<span class="keyword">if</span> (<span class="variable">element</span>.<span class="variable">nodeType</span> !== <span class="variable">nodeTypes</span>.<span class="class">ELEMENT_NODE</span>) <span class="keyword">return</span>;
<span class="keyword">if</span> (<span class="variable">element</span>.<span class="variable">classList</span>) <span class="keyword">return</span> <span class="variable">element</span>.<span class="variable">classList</span>.<span class="variable">add</span>(<span class="variable">className</span>);
<span class="keyword">if</span> (<span class="variable">element</span>.<span class="variable">className</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">element</span>.<span class="variable">className</span>.<span class="variable">length</span>) {
<span class="keyword">if</span> (!<span class="variable">element</span>.<span class="variable">className</span>.<span class="variable">match</span>(<span class="string">'\\b'</span> + <span class="variable">className</span> + <span class="string">'\\b'</span>)) {
<span class="variable">element</span>.<span class="variable">className</span> += <span class="string">' '</span> + <span class="variable">className</span>;
}
} <span class="keyword">else</span> {
<span class="variable">element</span>.<span class="variable">className</span> = <span class="variable">className</span>;
}
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Remove CSS classes.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>String</em> className The class name</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">dom</span>.<span class="variable">removeClass</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">className</span>) {
<span class="keyword">if</span> (!<span class="variable">className</span> || <span class="keyword">typeof</span> <span class="variable">className</span> !== <span class="string">'string'</span>) <span class="keyword">return</span>;
<span class="keyword">if</span> (<span class="variable">element</span>.<span class="variable">nodeType</span> !== <span class="variable">nodeTypes</span>.<span class="class">ELEMENT_NODE</span>) <span class="keyword">return</span>;
<span class="keyword">if</span> (<span class="variable">element</span>.<span class="variable">classList</span>) <span class="keyword">return</span> <span class="variable">element</span>.<span class="variable">classList</span>.<span class="variable">remove</span>(<span class="variable">className</span>);
<span class="keyword">if</span> (<span class="variable">element</span>.<span class="variable">className</span>) {
<span class="variable">element</span>.<span class="variable">className</span> = <span class="variable">element</span>.<span class="variable">className</span>.
<span class="variable">replace</span>(<span class="keyword">new</span> <span class="class">RegExp</span>(<span class="string">'\\s?\\b'</span> + <span class="variable">className</span> + <span class="string">'\\b'</span>), <span class="string">''</span>).
<span class="variable">replace</span>(<span class="regexp">/^\s+/</span>, <span class="string">''</span>);
}
};
<span class="variable">turing</span>.<span class="variable">addDetectionTest</span>(<span class="string">'getAttribute'</span>, <span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">div</span> = <span class="variable">document</span>.<span class="variable">createElement</span>(<span class="string">'div'</span>);
<span class="variable">div</span>.<span class="variable">innerHTML</span> = <span class="string">'<a href="/example"></a>'</span>;
<span class="keyword">if</span> (<span class="variable">div</span>.<span class="variable">childNodes</span>[<span class="number integer">0</span>].<span class="variable">getAttribute</span>(<span class="string">'href'</span>) === <span class="string">'/example'</span>) {
<span class="keyword">return</span> <span class="variable">true</span>;
}
<span class="comment">// Helps IE release memory associated with the div</span>
<span class="variable">div</span> = <span class="keyword">null</span>;
<span class="keyword">return</span> <span class="variable">false</span>;
});
<span class="keyword">function</span> <span class="variable">getAttribute</span>(<span class="variable">element</span>, <span class="variable">name</span>) {
<span class="keyword">if</span> (<span class="variable">propertyFix</span>[<span class="variable">name</span>]) {
<span class="variable">name</span> = <span class="variable">propertyFix</span>[<span class="variable">name</span>];
}
<span class="keyword">if</span> (<span class="variable">getAttributeParamFix</span>[<span class="variable">name</span>]) {
<span class="keyword">return</span> <span class="variable">element</span>.<span class="variable">getAttribute</span>(<span class="variable">name</span>, <span class="number integer">2</span>);
}
<span class="keyword">if</span> (<span class="variable">name</span> === <span class="string">'value'</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">element</span>.<span class="variable">nodeName</span> === <span class="string">'BUTTON'</span>) {
<span class="keyword">return</span> <span class="variable">element</span>.<span class="variable">getAttributeNode</span>(<span class="variable">name</span>).<span class="variable">nodeValue</span>;
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="variable">booleanAttributes</span>[<span class="variable">name</span>]) {
<span class="keyword">return</span> <span class="variable">element</span>[<span class="variable">name</span>] ? <span class="variable">name</span> : <span class="variable">undefined</span>;
}
<span class="keyword">return</span> <span class="variable">element</span>.<span class="variable">getAttribute</span>(<span class="variable">name</span>);
}
<span class="keyword">function</span> <span class="variable">setAttribute</span>(<span class="variable">element</span>, <span class="variable">name</span>, <span class="variable">value</span>) {
<span class="keyword">if</span> (<span class="variable">propertyFix</span>[<span class="variable">name</span>]) {
<span class="variable">name</span> = <span class="variable">propertyFix</span>[<span class="variable">name</span>];
}
<span class="keyword">if</span> (<span class="variable">name</span> === <span class="string">'value'</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">element</span>.<span class="variable">nodeName</span> === <span class="string">'BUTTON'</span>) {
<span class="keyword">return</span> <span class="variable">element</span>.<span class="variable">getAttributeNode</span>(<span class="variable">name</span>).<span class="variable">nodeValue</span> = <span class="variable">value</span>;
}
<span class="keyword">return</span> <span class="variable">element</span>.<span class="variable">setAttribute</span>(<span class="variable">name</span>, <span class="variable">value</span>);
}
<span class="keyword">function</span> <span class="variable">removeAttribute</span>(<span class="variable">element</span>, <span class="variable">name</span>) {
<span class="keyword">if</span> (<span class="variable">element</span>.<span class="variable">nodeType</span> !== <span class="variable">nodeTypes</span>.<span class="class">ELEMENT_NODE</span>) <span class="keyword">return</span>;
<span class="keyword">if</span> (<span class="variable">propertyFix</span>[<span class="variable">name</span>]) <span class="variable">name</span> = <span class="variable">propertyFix</span>[<span class="variable">name</span>];
<span class="variable">setAttribute</span>(<span class="variable">element</span>, <span class="variable">name</span>, <span class="string">''</span>);
<span class="variable">element</span>.<span class="variable">removeAttributeNode</span>(<span class="variable">element</span>.<span class="variable">getAttributeNode</span>(<span class="variable">name</span>));
}</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Removes an attribute from a node.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>String</em> attribute The attribute name</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">dom</span>.<span class="variable">removeAttr</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">attribute</span>) {
<span class="variable">turing</span>.<span class="variable">detect</span>(<span class="string">'getAttribute'</span>) ?
<span class="variable">element</span>.<span class="variable">removeAttribute</span>(<span class="variable">attribute</span>) : <span class="variable">removeAttribute</span>(<span class="variable">element</span>, <span class="variable">attribute</span>);
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Get or set attributes.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>String</em> attribute The attribute name</p></li><li><p><strong>param</strong>: <em>String</em> value The attribute value</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">dom</span>.<span class="variable">attr</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">attribute</span>, <span class="variable">value</span>) {
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">value</span> === <span class="string">'undefined'</span>) {
<span class="keyword">return</span> <span class="variable">turing</span>.<span class="variable">detect</span>(<span class="string">'getAttribute'</span>) ?
<span class="variable">element</span>.<span class="variable">getAttribute</span>(<span class="variable">attribute</span>) : <span class="variable">getAttribute</span>(<span class="variable">element</span>, <span class="variable">attribute</span>);
} <span class="keyword">else</span> {
<span class="keyword">if</span> (<span class="variable">value</span> === <span class="keyword">null</span>) {
<span class="keyword">return</span> <span class="variable">dom</span>.<span class="variable">removeAttr</span>(<span class="variable">element</span>, <span class="variable">attribute</span>);
} <span class="keyword">else</span> {
<span class="keyword">return</span> <span class="variable">turing</span>.<span class="variable">detect</span>(<span class="string">'getAttribute'</span>) ?
<span class="variable">element</span>.<span class="variable">setAttribute</span>(<span class="variable">attribute</span>, <span class="variable">value</span>) : <span class="variable">setAttribute</span>(<span class="variable">element</span>, <span class="variable">attribute</span>, <span class="variable">value</span>);
}
}
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Get or set properties.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>String</em> attribute The property name</p></li><li><p><strong>param</strong>: <em>String | Number | Boolean</em> value The property value</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">dom</span>.<span class="variable">prop</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">property</span>, <span class="variable">value</span>) {
<span class="keyword">if</span> (<span class="variable">propertyFix</span>[<span class="variable">property</span>])
<span class="variable">property</span> = <span class="variable">propertyFix</span>[<span class="variable">property</span>];
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">value</span> === <span class="string">'undefined'</span>) {
<span class="keyword">return</span> <span class="variable">element</span>[<span class="variable">property</span>];
} <span class="keyword">else</span> {
<span class="keyword">if</span> (<span class="variable">value</span> === <span class="keyword">null</span>) {
<span class="keyword">return</span> <span class="variable">dom</span>.<span class="variable">removeProperty</span>(<span class="variable">element</span>, <span class="variable">property</span>);
} <span class="keyword">else</span> {
<span class="keyword">return</span> <span class="variable">element</span>[<span class="variable">property</span>] = <span class="variable">value</span>;
}
}
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Removes properties.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>String</em> attribute The property name</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">dom</span>.<span class="variable">removeProp</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">property</span>) {
<span class="keyword">if</span> (<span class="variable">propertyFix</span>[<span class="variable">property</span>])
<span class="variable">property</span> = <span class="variable">propertyFix</span>[<span class="variable">property</span>];
<span class="keyword">try</span> {
<span class="variable">element</span>[<span class="variable">property</span>] = <span class="variable">undefined</span>;
<span class="keyword">delete</span> <span class="variable">element</span>[<span class="variable">property</span>];
} <span class="keyword">catch</span> (<span class="variable">e</span>) {
}
};
<span class="comment">// Chained API</span>
<span class="variable">turing</span>.<span class="variable">init</span>(<span class="keyword">function</span>(<span class="variable">arg</span>) {
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">arg</span> === <span class="string">'string'</span> || <span class="keyword">typeof</span> <span class="variable">arg</span> === <span class="string">'undefined'</span>) {
<span class="comment">// CSS selector</span>
<span class="keyword">return</span> <span class="variable">turing</span>.<span class="variable">domChain</span>.<span class="variable">init</span>(<span class="variable">arg</span>);
}
});
<span class="variable">turing</span>.<span class="variable">domChain</span> = {
<span class="variable">init</span>: <span class="keyword">function</span>(<span class="variable">selector</span>) {
<span class="this">this</span>.<span class="variable">selector</span> = <span class="variable">selector</span>;
<span class="this">this</span>.<span class="variable">length</span> = <span class="number integer">0</span>;
<span class="this">this</span>.<span class="variable">prevObject</span> = <span class="keyword">null</span>;
<span class="this">this</span>.<span class="variable">elements</span> = [];
<span class="keyword">if</span> (!<span class="variable">selector</span>) {
<span class="keyword">return</span> <span class="this">this</span>;
} <span class="keyword">else</span> {
<span class="keyword">return</span> <span class="this">this</span>.<span class="variable">find</span>(<span class="variable">selector</span>);
}
},
<span class="variable">writeElements</span>: <span class="keyword">function</span>() {
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="this">this</span>.<span class="variable">elements</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="this">this</span>[<span class="variable">i</span>] = <span class="this">this</span>.<span class="variable">elements</span>[<span class="variable">i</span>];
}
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p><code>first</code> will return a domChain with a length of 1 or 0.
</p>
</td>
<td class="code">
<pre><code><span class="variable">first</span>: <span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">elements</span> = [],
<span class="variable">ret</span> = <span class="variable">turing</span>.<span class="variable">domChain</span>;
<span class="variable">ret</span>.<span class="variable">elements</span> = <span class="this">this</span>.<span class="variable">elements</span>.<span class="variable">length</span> === <span class="number integer">0</span> ? [] : [<span class="this">this</span>.<span class="variable">elements</span>[<span class="number integer">0</span>]];
<span class="variable">ret</span>.<span class="variable">selector</span> = <span class="this">this</span>.<span class="variable">selector</span>;
<span class="variable">ret</span>.<span class="variable">length</span> = <span class="variable">ret</span>.<span class="variable">elements</span>.<span class="variable">length</span>;
<span class="variable">ret</span>.<span class="variable">prevObject</span> = <span class="this">this</span>;
<span class="variable">ret</span>.<span class="variable">writeElements</span>();
<span class="keyword">return</span> <span class="variable">ret</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Get or set innerHTML. Applied to every element.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> html A string containing HTML</p></li><li><p><strong>returns</strong>: <em>Object</em> <code>this</code> or the innerHTML</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">html</span>: <span class="keyword">function</span>(<span class="variable">html</span>) {
<span class="keyword">if</span> (<span class="variable">arguments</span>.<span class="variable">length</span> === <span class="number integer">0</span>) {
<span class="keyword">return</span> <span class="this">this</span>.<span class="variable">elements</span>.<span class="variable">length</span> === <span class="number integer">0</span> ? <span class="keyword">null</span> : <span class="variable">dom</span>.<span class="variable">html</span>(<span class="this">this</span>[<span class="number integer">0</span>]);
} <span class="keyword">else</span> {
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="this">this</span>.<span class="variable">elements</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="variable">dom</span>.<span class="variable">html</span>(<span class="this">this</span>[<span class="variable">i</span>], <span class="variable">html</span>);
}
}
<span class="keyword">return</span> <span class="this">this</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Get or set text nodes. Applied to every element.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> text A string containing text to set</p></li><li><p><strong>returns</strong>: <em>Object</em> <code>this</code> or the text content</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">text</span>: <span class="keyword">function</span>(<span class="variable">text</span>) {
<span class="keyword">if</span> (<span class="variable">arguments</span>.<span class="variable">length</span> === <span class="number integer">0</span>) {
<span class="keyword">return</span> <span class="this">this</span>.<span class="variable">elements</span>.<span class="variable">length</span> === <span class="number integer">0</span> ? <span class="keyword">null</span> : <span class="variable">getText</span>(<span class="this">this</span>.<span class="variable">elements</span>);
} <span class="keyword">else</span> {
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="this">this</span>.<span class="variable">elements</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="variable">dom</span>.<span class="variable">text</span>(<span class="this">this</span>.<span class="variable">elements</span>[<span class="variable">i</span>], <span class="variable">text</span>);
}
}
<span class="keyword">return</span> <span class="this">this</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Get or set styles.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Objects</em> options Either options for a style to set or a property name</p></li><li><p><strong>returns</strong>: <em>Object</em> <code>this</code> or the style property</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">css</span>: <span class="keyword">function</span>(<span class="variable">options</span>) {
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">options</span> === <span class="string">'string'</span>) {
<span class="keyword">return</span> <span class="this">this</span>.<span class="variable">elements</span>.<span class="variable">length</span> &<span class="variable">gt</span>; <span class="number integer">0</span> ? <span class="variable">getStyle</span>(<span class="this">this</span>.<span class="variable">elements</span>[<span class="number integer">0</span>], <span class="variable">options</span>) : <span class="keyword">null</span>;
} <span class="keyword">else</span> {
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="this">this</span>.<span class="variable">elements</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="variable">dom</span>.<span class="variable">css</span>(<span class="this">this</span>[<span class="variable">i</span>], <span class="variable">options</span>);
}
}
<span class="keyword">return</span> <span class="this">this</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Add class names.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> className A class name</p></li><li><p><strong>returns</strong>: <em>Object</em> <code>this</code></p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">addClass</span>: <span class="keyword">function</span>(<span class="variable">className</span>) {
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="this">this</span>.<span class="variable">elements</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="variable">dom</span>.<span class="variable">addClass</span>(<span class="this">this</span>[<span class="variable">i</span>], <span class="variable">className</span>);
}
<span class="keyword">return</span> <span class="this">this</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Detects if a class is present.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> className A class name</p></li><li><p><strong>returns</strong>: <em>Boolean</em> </p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">hasClass</span>: <span class="keyword">function</span>(<span class="variable">className</span>) {
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="this">this</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="keyword">if</span> (<span class="variable">dom</span>.<span class="variable">hasClass</span>(<span class="this">this</span>[<span class="variable">i</span>], <span class="variable">className</span>)) {
<span class="keyword">return</span> <span class="variable">true</span>;
}
}
<span class="keyword">return</span> <span class="variable">false</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Remove class names.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> className A class name</p></li><li><p><strong>returns</strong>: <em>Object</em> <code>this</code></p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">removeClass</span>: <span class="keyword">function</span>(<span class="variable">className</span>) {
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="this">this</span>.<span class="variable">elements</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="variable">dom</span>.<span class="variable">removeClass</span>(<span class="this">this</span>[<span class="variable">i</span>], <span class="variable">className</span>);
}
<span class="keyword">return</span> <span class="this">this</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Get or set an attribute.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> attribute The attribute name</p></li><li><p><strong>param</strong>: <em>String</em> value The attribute value</p></li><li><p><strong>returns</strong>: <em>String</em> The attribute value</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">attr</span>: <span class="keyword">function</span>(<span class="variable">attribute</span>, <span class="variable">value</span>) {
<span class="keyword">if</span> (<span class="this">this</span>.<span class="variable">elements</span>.<span class="variable">length</span> &<span class="variable">gt</span>; <span class="number integer">0</span>) {
<span class="keyword">return</span> <span class="variable">dom</span>.<span class="variable">attr</span>(<span class="this">this</span>[<span class="number integer">0</span>], <span class="variable">attribute</span>, <span class="variable">value</span>);
}
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Remove an attribute.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> attribute The attribute name</p></li><li><p><strong>returns</strong>: <em>Object</em> <code>this</code></p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">removeAttr</span>: <span class="keyword">function</span>(<span class="variable">attribute</span>) {
<span class="keyword">if</span> (<span class="this">this</span>.<span class="variable">elements</span>.<span class="variable">length</span> &<span class="variable">gt</span>; <span class="number integer">0</span>) {
<span class="variable">dom</span>.<span class="variable">removeAttr</span>(<span class="this">this</span>[<span class="number integer">0</span>], <span class="variable">attribute</span>);
}
<span class="keyword">return</span> <span class="this">this</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Get or set a property.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> property The property name</p></li><li><p><strong>param</strong>: <em>String</em> value The property value</p></li><li><p><strong>returns</strong>: <em>String</em> The property value</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">prop</span>: <span class="keyword">function</span>(<span class="variable">property</span>, <span class="variable">value</span>) {
<span class="keyword">if</span> (<span class="this">this</span>.<span class="variable">elements</span>.<span class="variable">length</span> &<span class="variable">gt</span>; <span class="number integer">0</span>) {
<span class="keyword">return</span> <span class="variable">dom</span>.<span class="variable">prop</span>(<span class="this">this</span>[<span class="number integer">0</span>], <span class="variable">property</span>, <span class="variable">value</span>);
}
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Removes properties.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> attribute The property name</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">removeProp</span>: <span class="keyword">function</span>(<span class="variable">property</span>) {
<span class="keyword">if</span> (<span class="this">this</span>.<span class="variable">elements</span>.<span class="variable">length</span> &<span class="variable">gt</span>; <span class="number integer">0</span>) {
<span class="keyword">return</span> <span class="variable">dom</span>.<span class="variable">removeProp</span>(<span class="this">this</span>[<span class="number integer">0</span>], <span class="variable">property</span>, <span class="variable">value</span>);
}
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Append HTML to an element. Applied to every element.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> html A string containing HTML</p></li><li><p><strong>returns</strong>: <em>Object</em> <code>this</code></p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">append</span>: <span class="keyword">function</span>(<span class="variable">html</span>) {
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="this">this</span>.<span class="variable">elements</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="variable">dom</span>.<span class="variable">append</span>(<span class="this">this</span>[<span class="variable">i</span>], <span class="variable">html</span>);
}
<span class="keyword">return</span> <span class="this">this</span>;
},
<span class="variable">find</span>: <span class="keyword">function</span>(<span class="variable">selector</span>) {
<span class="keyword">var</span> <span class="variable">elements</span> = [],
<span class="variable">ret</span> = <span class="variable">turing</span>.<span class="variable">domChain</span>,
<span class="variable">root</span> = <span class="variable">document</span>;
<span class="keyword">if</span> (<span class="this">this</span>.<span class="variable">prevObject</span>) {
<span class="keyword">if</span> (<span class="this">this</span>.<span class="variable">prevObject</span>.<span class="variable">elements</span>.<span class="variable">length</span> &<span class="variable">gt</span>; <span class="number integer">0</span>) {
<span class="variable">root</span> = <span class="this">this</span>.<span class="variable">prevObject</span>.<span class="variable">elements</span>[<span class="number integer">0</span>];
} <span class="keyword">else</span> {
<span class="variable">root</span> = <span class="keyword">null</span>;
}
}
<span class="variable">elements</span> = <span class="variable">dom</span>.<span class="variable">get</span>(<span class="variable">selector</span>, <span class="variable">root</span>);
<span class="this">this</span>.<span class="variable">elements</span> = <span class="variable">elements</span>;
<span class="variable">ret</span>.<span class="variable">elements</span> = <span class="variable">elements</span>;
<span class="variable">ret</span>.<span class="variable">selector</span> = <span class="variable">selector</span>;
<span class="variable">ret</span>.<span class="variable">length</span> = <span class="variable">elements</span>.<span class="variable">length</span>;
<span class="variable">ret</span>.<span class="variable">prevObject</span> = <span class="this">this</span>;
<span class="variable">ret</span>.<span class="variable">writeElements</span>();
<span class="keyword">return</span> <span class="variable">ret</span>;
}
};
<span class="variable">turing</span>.<span class="variable">domChain</span>.<span class="variable">init</span>.<span class="variable">prototype</span> = <span class="variable">turing</span>.<span class="variable">domChain</span>;</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Enumerable methods can be chained with DOM calls:</p>
<pre><code> turing('p').each(function(element) {
console.log(element);
});
</code></pre>
</td>
<td class="code">
<pre><code><span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">turing</span>.<span class="variable">enumerable</span> !== <span class="string">'undefined'</span>) {
<span class="variable">turing</span>.<span class="variable">domChain</span>[<span class="string">'values'</span>] = <span class="keyword">function</span>() {
<span class="keyword">return</span> <span class="this">this</span>.<span class="variable">elements</span>;
};
<span class="variable">turing</span>.<span class="variable">enumerable</span>.<span class="variable">each</span>(<span class="variable">turing</span>.<span class="variable">chainableMethods</span>, <span class="keyword">function</span>(<span class="variable">methodName</span>) {
<span class="variable">turing</span>.<span class="variable">domChain</span>[<span class="variable">methodName</span>] = <span class="keyword">function</span>(<span class="variable">fn</span>) {
<span class="keyword">var</span> <span class="variable">elements</span> = <span class="variable">turing</span>.<span class="variable">enumerable</span>[<span class="variable">methodName</span>](<span class="this">this</span>, <span class="variable">fn</span>),
<span class="variable">ret</span> = <span class="variable">turing</span>.<span class="variable">domChain</span>;
<span class="this">this</span>.<span class="variable">elements</span> = <span class="variable">elements</span>;
<span class="variable">ret</span>.<span class="variable">elements</span> = <span class="variable">elements</span>;
<span class="variable">ret</span>.<span class="variable">selector</span> = <span class="this">this</span>.<span class="variable">selector</span>;
<span class="variable">ret</span>.<span class="variable">length</span> = <span class="variable">elements</span>.<span class="variable">length</span>;
<span class="variable">ret</span>.<span class="variable">prevObject</span> = <span class="this">this</span>;
<span class="variable">ret</span>.<span class="variable">writeElements</span>();
<span class="keyword">return</span> <span class="variable">ret</span>;
};
});
}
<span class="variable">dom</span>.<span class="variable">nodeTypes</span> = <span class="variable">nodeTypes</span>;
<span class="variable">turing</span>.<span class="variable">dom</span> = <span class="variable">dom</span>;
})();
</code></pre>
</td>
</tr><tr class="filename"><td><h2 id="turing.enumerable.js"><a href="#">turing.enumerable</a></h2></td><td>turing.enumerable.js</td></tr><tr class="code">
<td class="docs">
<p>The Turing Enumerable module.</p>
<p>This is bound to DOM objects:</p>
<pre><code>global('p').each(function() {
// `this` contains a DOM element
});</code></pre>
<p> </p>
</td>
<td class="code">
<pre><code>(<span class="keyword">function</span>() {
<span class="keyword">function</span> <span class="class">EnumerableModule</span>(<span class="variable">global</span>) {
<span class="variable">global</span>.<span class="variable">enumerable</span> = {</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Throw to break out of iterators.
</p>
</td>
<td class="code">
<pre><code><span class="class">Break</span>: {},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Iterates using a function over a set of items. Example:</p>
<pre><code> turing.enumerable.each([1, 2, 3], function(n) {
console.log(n);
});</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> enumerable A set of items that responds to <code>length</code></p></li><li><p><strong>param</strong>: <em>Function</em> callback The function to run</p></li><li><p><strong>param</strong>: <em>Object</em> [context] An optional parameter to determine <code>this</code> in the callback</p></li><li><p><strong>returns</strong>: <em>Object</em> The passed in enumerable object</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">each</span>: <span class="keyword">function</span>(<span class="variable">enumerable</span>, <span class="variable">callback</span>, <span class="variable">context</span>) {
<span class="keyword">try</span> {
<span class="keyword">if</span> (<span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">forEach</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">enumerable</span>.<span class="variable">forEach</span> === <span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">forEach</span>) {
<span class="variable">enumerable</span>.<span class="variable">forEach</span>(<span class="variable">callback</span>, <span class="variable">context</span>);
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="variable">global</span>.<span class="variable">isNumber</span>(<span class="variable">enumerable</span>.<span class="variable">length</span>)) {
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">i</span> = <span class="number integer">0</span>, <span class="variable">l</span> = <span class="variable">enumerable</span>.<span class="variable">length</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="variable">l</span>; <span class="variable">i</span>++) <span class="variable">callback</span>.<span class="variable">call</span>(<span class="variable">enumerable</span>, <span class="variable">enumerable</span>[<span class="variable">i</span>], <span class="variable">i</span>, <span class="variable">enumerable</span>);
} <span class="keyword">else</span> {
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">key</span> <span class="keyword">in</span> <span class="variable">enumerable</span>) {
<span class="keyword">if</span> (<span class="variable">hasOwnProperty</span>.<span class="variable">call</span>(<span class="variable">enumerable</span>, <span class="variable">key</span>)) <span class="variable">callback</span>.<span class="variable">call</span>(<span class="variable">context</span>, <span class="variable">enumerable</span>[<span class="variable">key</span>], <span class="variable">key</span>, <span class="variable">enumerable</span>);
}
}
} <span class="keyword">catch</span>(<span class="variable">e</span>) {
<span class="keyword">if</span> (<span class="variable">e</span> != <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="class">Break</span>) <span class="keyword">throw</span> <span class="variable">e</span>;
}
<span class="keyword">return</span> <span class="variable">enumerable</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Changes a set of item using a function. Example:</p>
<pre><code> turing.enumerable.map([1, 2, 3], function(n) {
return n + 1;
});</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> enumerable A set of items that responds to <code>length</code></p></li><li><p><strong>param</strong>: <em>Function</em> callback The function to run over each item</p></li><li><p><strong>param</strong>: <em>Object</em> [context] An optional parameter to determine <code>this</code> in the callback</p></li><li><p><strong>returns</strong>: <em>Array</em> The changed items</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">map</span>: <span class="keyword">function</span>(<span class="variable">enumerable</span>, <span class="variable">callback</span>, <span class="variable">context</span>) {
<span class="keyword">if</span> (<span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">map</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">enumerable</span>.<span class="variable">map</span> === <span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">map</span>) <span class="keyword">return</span> <span class="variable">enumerable</span>.<span class="variable">map</span>(<span class="variable">callback</span>, <span class="variable">context</span>);
<span class="keyword">var</span> <span class="variable">results</span> = [];
<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">each</span>(<span class="variable">enumerable</span>, <span class="keyword">function</span>(<span class="variable">value</span>, <span class="variable">index</span>, <span class="variable">list</span>) {
<span class="variable">results</span>.<span class="variable">push</span>(<span class="variable">callback</span>.<span class="variable">call</span>(<span class="variable">context</span>, <span class="variable">value</span>, <span class="variable">index</span>, <span class="variable">list</span>));
});
<span class="keyword">return</span> <span class="variable">results</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Removes items based on a callback. For example:</p>
<pre><code> var a = [1, 2, 3, 4, 5, 6, 7, 8];
turing.enumerable.filter(a, function(n) {
return n % 2 === 0;
});
=> [2, 4, 6, 8]</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> enumerable A set of items that responds to <code>length</code></p></li><li><p><strong>param</strong>: <em>Function</em> callback The function to run over each item</p></li><li><p><strong>param</strong>: <em>Object</em> [context] An optional parameter to determine <code>this</code> in the callback</p></li><li><p><strong>returns</strong>: <em>Array</em> The filtered items</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">filter</span>: <span class="keyword">function</span>(<span class="variable">enumerable</span>, <span class="variable">callback</span>, <span class="variable">context</span>) {
<span class="keyword">if</span> (<span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">filter</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">enumerable</span>.<span class="variable">filter</span> === <span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">filter</span>)
<span class="keyword">return</span> <span class="variable">enumerable</span>.<span class="variable">filter</span>(<span class="variable">callback</span>, <span class="variable">context</span>);
<span class="keyword">var</span> <span class="variable">results</span> = [],
<span class="variable">pushIndex</span> = !<span class="variable">global</span>.<span class="variable">isArray</span>(<span class="variable">enumerable</span>);
<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">each</span>(<span class="variable">enumerable</span>, <span class="keyword">function</span>(<span class="variable">value</span>, <span class="variable">index</span>, <span class="variable">list</span>) {
<span class="keyword">if</span> (<span class="variable">callback</span>.<span class="variable">call</span>(<span class="variable">context</span>, <span class="variable">value</span>, <span class="variable">index</span>, <span class="variable">list</span>)) {
<span class="keyword">if</span> (<span class="variable">pushIndex</span>) {
<span class="variable">results</span>.<span class="variable">push</span>([<span class="variable">index</span>, <span class="variable">value</span>]);
} <span class="keyword">else</span> {
<span class="variable">results</span>.<span class="variable">push</span>(<span class="variable">value</span>);
}
}
});
<span class="keyword">return</span> <span class="variable">results</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>The opposite of filter. For example:</p>
<pre><code> var a = [1, 2, 3, 4, 5, 6, 7, 8];
turing.enumerable.reject(a, function(n) {
return n % 2 === 0;
});
=> [1, 3, 5, 7]</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> enumerable A set of items that responds to <code>length</code></p></li><li><p><strong>param</strong>: <em>Function</em> callback The function to run over each item</p></li><li><p><strong>param</strong>: <em>Object</em> [context] An optional parameter to determine <code>this</code> in the callback</p></li><li><p><strong>returns</strong>: <em>Array</em> The rejected items</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">reject</span>: <span class="keyword">function</span>(<span class="variable">enumerable</span>, <span class="variable">callback</span>, <span class="variable">context</span>) {
<span class="keyword">return</span> <span class="this">this</span>.<span class="variable">filter</span>(<span class="variable">enumerable</span>, <span class="keyword">function</span>() {
<span class="keyword">return</span> !<span class="variable">callback</span>.<span class="variable">apply</span>(<span class="variable">context</span>, <span class="variable">arguments</span>);
}, <span class="variable">context</span>);
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Find a single item. For example:</p>
<pre><code> var a = [1, 2, 3, 4, 5, 6, 7, 8];
turing.enumerable.detect(a, function(n) {
return n === 3;
});
=> 3</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> enumerable A set of items that responds to <code>length</code></p></li><li><p><strong>param</strong>: <em>Function</em> callback The function to run over each item</p></li><li><p><strong>param</strong>: <em>Object</em> [context] An optional parameter to determine <code>this</code> in the callback</p></li><li><p><strong>returns</strong>: <em>Object</em> The item, if found</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">detect</span>: <span class="keyword">function</span>(<span class="variable">enumerable</span>, <span class="variable">callback</span>, <span class="variable">context</span>) {
<span class="keyword">var</span> <span class="variable">result</span>;
<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">each</span>(<span class="variable">enumerable</span>, <span class="keyword">function</span>(<span class="variable">value</span>, <span class="variable">index</span>, <span class="variable">list</span>) {
<span class="keyword">if</span> (<span class="variable">callback</span>.<span class="variable">call</span>(<span class="variable">context</span>, <span class="variable">value</span>, <span class="variable">index</span>, <span class="variable">list</span>)) {
<span class="variable">result</span> = <span class="variable">value</span>;
<span class="keyword">throw</span> <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="class">Break</span>;
}
});
<span class="keyword">return</span> <span class="variable">result</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Runs a function over each item, collecting the results:</p>
<pre><code> var a = [1, 2, 3, 4, 5, 6, 7, 8];
turing.enumerable.reduce(a, 0, function(memo, n) {
return memo + n;
});
=> 36</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> enumerable A set of items that responds to <code>length</code></p></li><li><p><strong>param</strong>: <em>Object</em> memo The initial accumulator value</p></li><li><p><strong>param</strong>: <em>Function</em> callback The function to run over each item</p></li><li><p><strong>param</strong>: <em>Object</em> [context] An optional parameter to determine <code>this</code> in the callback</p></li><li><p><strong>returns</strong>: <em>Object</em> The accumulated results</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">reduce</span>: <span class="keyword">function</span>(<span class="variable">enumerable</span>, <span class="variable">memo</span>, <span class="variable">callback</span>, <span class="variable">context</span>) {
<span class="keyword">if</span> (<span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">reduce</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">enumerable</span>.<span class="variable">reduce</span> === <span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">reduce</span>)
<span class="keyword">return</span> <span class="variable">enumerable</span>.<span class="variable">reduce</span>(<span class="variable">global</span>.<span class="variable">bind</span>(<span class="variable">callback</span>, <span class="variable">context</span>), <span class="variable">memo</span>);
<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">each</span>(<span class="variable">enumerable</span>, <span class="keyword">function</span>(<span class="variable">value</span>, <span class="variable">index</span>, <span class="variable">list</span>) {
<span class="variable">memo</span> = <span class="variable">callback</span>.<span class="variable">call</span>(<span class="variable">context</span>, <span class="variable">memo</span>, <span class="variable">value</span>, <span class="variable">index</span>, <span class="variable">list</span>);
});
<span class="keyword">return</span> <span class="variable">memo</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Flattens multidimensional arrays:</p>
<pre><code> turing.enumerable.flatten([[2, 4], [[6], 8]]);
=> [2, 4, 6, 8]</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> enumerable A set of items that responds to <code>length</code></p></li><li><p><strong>returns</strong>: <em>Object</em> The flat array</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">flatten</span>: <span class="keyword">function</span>(<span class="variable">array</span>) {
<span class="keyword">return</span> <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">reduce</span>(<span class="variable">array</span>, [], <span class="keyword">function</span>(<span class="variable">memo</span>, <span class="variable">value</span>) {
<span class="keyword">if</span> (<span class="variable">global</span>.<span class="variable">isArray</span>(<span class="variable">value</span>)) <span class="keyword">return</span> <span class="variable">memo</span>.<span class="variable">concat</span>(<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">flatten</span>(<span class="variable">value</span>));
<span class="variable">memo</span>.<span class="variable">push</span>(<span class="variable">value</span>);
<span class="keyword">return</span> <span class="variable">memo</span>;
});
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Return the last items from a list:</p>
<pre><code> turing.enumerable.tail([1, 2, 3, 4, 5], 3);
=> [4, 5]</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> enumerable A set of items that responds to <code>length</code></p></li><li><p><strong>param</strong>: <em>Number</em> start The index of the item to 'cut' the array</p></li><li><p><strong>returns</strong>: <em>Object</em> A list of items</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">tail</span>: <span class="keyword">function</span>(<span class="variable">enumerable</span>, <span class="variable">start</span>) {
<span class="variable">start</span> = <span class="keyword">typeof</span> <span class="variable">start</span> === <span class="string">'undefined'</span> ? <span class="number integer">1</span> : <span class="variable">start</span>;
<span class="keyword">return</span> <span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">slice</span>.<span class="variable">apply</span>(<span class="variable">enumerable</span>, [<span class="variable">start</span>]);
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Invokes <code>method</code> on a list of items:</p>
<pre><code> turing.enumerable.invoke(['hello', 'world'], 'substring', 0, 3);
=> ['hel', 'wor']</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> enumerable A set of items that responds to <code>length</code></p></li><li><p><strong>param</strong>: <em>Function</em> method The method to invoke on each item</p></li><li><p><strong>returns</strong>: <em>Object</em> The changed list</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">invoke</span>: <span class="keyword">function</span>(<span class="variable">enumerable</span>, <span class="variable">method</span>) {
<span class="keyword">var</span> <span class="variable">args</span> = <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">tail</span>(<span class="variable">arguments</span>, <span class="number integer">2</span>);
<span class="keyword">return</span> <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">map</span>(<span class="variable">enumerable</span>, <span class="keyword">function</span>(<span class="variable">value</span>) {
<span class="keyword">return</span> (<span class="variable">method</span> ? <span class="variable">value</span>[<span class="variable">method</span>] : <span class="variable">value</span>).<span class="variable">apply</span>(<span class="variable">value</span>, <span class="variable">args</span>);
});
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Pluck a property from each item of a list:</p>
<pre><code> turing.enumerable.pluck(['hello', 'world'], 'length');
=> [5, 5]</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> enumerable A set of items that responds to <code>length</code></p></li><li><p><strong>param</strong>: <em>String</em> key The property to pluck</p></li><li><p><strong>returns</strong>: <em>Object</em> The plucked properties</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">pluck</span>: <span class="keyword">function</span>(<span class="variable">enumerable</span>, <span class="variable">key</span>) {
<span class="keyword">return</span> <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">map</span>(<span class="variable">enumerable</span>, <span class="keyword">function</span>(<span class="variable">value</span>) {
<span class="keyword">return</span> <span class="variable">value</span>[<span class="variable">key</span>];
});
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Determines if a list matches some items based on a callback:</p>
<pre><code> turing.enumerable.some([1, 2, 3], function(value) {
return value === 3;
});
=> true</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> enumerable A set of items that responds to <code>length</code></p></li><li><p><strong>param</strong>: <em>Function</em> callback A function to run against each item</p></li><li><p><strong>param</strong>: <em>Object</em> [context] An optional parameter to determine <code>this</code> in the callback</p></li><li><p><strong>returns</strong>: <em>Boolean</em> True if an item was matched</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">some</span>: <span class="keyword">function</span>(<span class="variable">enumerable</span>, <span class="variable">callback</span>, <span class="variable">context</span>) {
<span class="variable">callback</span> = <span class="variable">callback</span> || <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">identity</span>;
<span class="keyword">if</span> (<span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">some</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">enumerable</span>.<span class="variable">some</span> === <span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">some</span>)
<span class="keyword">return</span> <span class="variable">enumerable</span>.<span class="variable">some</span>(<span class="variable">callback</span>, <span class="variable">context</span>);
<span class="keyword">var</span> <span class="variable">result</span> = <span class="variable">false</span>;
<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">each</span>(<span class="variable">enumerable</span>, <span class="keyword">function</span>(<span class="variable">value</span>, <span class="variable">index</span>, <span class="variable">list</span>) {
<span class="keyword">if</span> (<span class="variable">result</span> = <span class="variable">callback</span>.<span class="variable">call</span>(<span class="variable">context</span>, <span class="variable">value</span>, <span class="variable">index</span>, <span class="variable">list</span>)) {
<span class="keyword">throw</span> <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="class">Break</span>;
}
});
<span class="keyword">return</span> <span class="variable">result</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Checks if all items match the callback:</p>
<pre><code> turing.enumerable.all([1, 2, 3], function(value) {
return value < 4;
})
=> true</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> enumerable A set of items that responds to <code>length</code></p></li><li><p><strong>param</strong>: <em>Function</em> callback A function to run against each item</p></li><li><p><strong>param</strong>: <em>Object</em> [context] An optional parameter to determine <code>this</code> in the callback</p></li><li><p><strong>returns</strong>: <em>Boolean</em> True if all items match</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">all</span>: <span class="keyword">function</span>(<span class="variable">enumerable</span>, <span class="variable">callback</span>, <span class="variable">context</span>) {
<span class="variable">callback</span> = <span class="variable">callback</span> || <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">identity</span>;
<span class="keyword">if</span> (<span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">every</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">enumerable</span>.<span class="variable">every</span> === <span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">every</span>)
<span class="keyword">return</span> <span class="variable">enumerable</span>.<span class="variable">every</span>(<span class="variable">callback</span>, <span class="variable">context</span>);
<span class="keyword">var</span> <span class="variable">result</span> = <span class="variable">true</span>;
<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">each</span>(<span class="variable">enumerable</span>, <span class="keyword">function</span>(<span class="variable">value</span>, <span class="variable">index</span>, <span class="variable">list</span>) {
<span class="keyword">if</span> (!(<span class="variable">result</span> = <span class="variable">result</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">callback</span>.<span class="variable">call</span>(<span class="variable">context</span>, <span class="variable">value</span>, <span class="variable">index</span>, <span class="variable">list</span>))) {
<span class="keyword">throw</span> <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="class">Break</span>;
}
});
<span class="keyword">return</span> <span class="variable">result</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Checks if one item matches a value:</p>
<pre><code> turing.enumerable.include([1, 2, 3], 3);
=> true</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> enumerable A set of items that responds to <code>length</code></p></li><li><p><strong>param</strong>: <em>Object</em> target A value to find</p></li><li><p><strong>returns</strong>: <em>Boolean</em> True if an item was found</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">include</span>: <span class="keyword">function</span>(<span class="variable">enumerable</span>, <span class="variable">target</span>) {
<span class="keyword">if</span> (<span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">indexOf</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">enumerable</span>.<span class="variable">indexOf</span> === <span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">indexOf</span>)
<span class="keyword">return</span> <span class="variable">enumerable</span>.<span class="variable">indexOf</span>(<span class="variable">target</span>) != -<span class="number integer">1</span>;
<span class="keyword">var</span> <span class="variable">found</span> = <span class="variable">false</span>;
<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">each</span>(<span class="variable">enumerable</span>, <span class="keyword">function</span>(<span class="variable">value</span>, <span class="variable">key</span>) {
<span class="keyword">if</span> (<span class="variable">found</span> = <span class="variable">value</span> === <span class="variable">target</span>) {
<span class="keyword">throw</span> <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="class">Break</span>;
}
});
<span class="keyword">return</span> <span class="variable">found</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Chain enumerable calls:</p>
<pre><code> turing.enumerable.chain([1, 2, 3, 4])
.filter(function(n) { return n % 2 == 0; })
.map(function(n) { return n * 10; })
.values();
=> [20, 40]</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> enumerable A set of items that responds to <code>length</code></p></li><li><p><strong>returns</strong>: <em>Object</em> The chained enumerable API</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">chain</span>: <span class="keyword">function</span>(<span class="variable">enumerable</span>) {
<span class="keyword">return</span> <span class="keyword">new</span> <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="class">Chainer</span>(<span class="variable">enumerable</span>);
},
<span class="variable">identity</span>: <span class="keyword">function</span>(<span class="variable">value</span>) {
<span class="keyword">return</span> <span class="variable">value</span>;
}
};
<span class="comment">// Aliases</span>
<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">select</span> = <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">filter</span>;
<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">collect</span> = <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">map</span>;
<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">inject</span> = <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">reduce</span>;
<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">rest</span> = <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">tail</span>;
<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">any</span> = <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">some</span>;
<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">every</span> = <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">all</span>;
<span class="variable">global</span>.<span class="variable">chainableMethods</span> = [<span class="string">'map'</span>, <span class="string">'collect'</span>, <span class="string">'detect'</span>, <span class="string">'filter'</span>, <span class="string">'reduce'</span>, <span class="string">'each'</span>,
<span class="string">'tail'</span>, <span class="string">'rest'</span>, <span class="string">'reject'</span>, <span class="string">'pluck'</span>, <span class="string">'any'</span>, <span class="string">'some'</span>, <span class="string">'all'</span>];
<span class="comment">// Chainer class</span>
<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="class">Chainer</span> = <span class="keyword">function</span>(<span class="variable">values</span>) {
<span class="this">this</span>.<span class="variable">results</span> = <span class="variable">values</span>;
};
<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="class">Chainer</span>.<span class="variable">prototype</span>.<span class="variable">values</span> = <span class="keyword">function</span>() {
<span class="keyword">return</span> <span class="this">this</span>.<span class="variable">results</span>;
};
<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">each</span>(<span class="variable">global</span>.<span class="variable">chainableMethods</span>, <span class="keyword">function</span>(<span class="variable">methodName</span>) {
<span class="keyword">var</span> <span class="variable">method</span> = <span class="variable">global</span>.<span class="variable">enumerable</span>[<span class="variable">methodName</span>];
<span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="class">Chainer</span>.<span class="variable">prototype</span>[<span class="variable">methodName</span>] = <span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">args</span> = <span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">slice</span>.<span class="variable">call</span>(<span class="variable">arguments</span>);
<span class="variable">args</span>.<span class="variable">unshift</span>(<span class="this">this</span>.<span class="variable">results</span>);
<span class="this">this</span>.<span class="variable">results</span> = <span class="variable">method</span>.<span class="variable">apply</span>(<span class="this">this</span>, <span class="variable">args</span>);
<span class="keyword">return</span> <span class="this">this</span>;
}
});
<span class="variable">global</span>.<span class="variable">init</span>(<span class="keyword">function</span>(<span class="variable">arg</span>) {
<span class="keyword">if</span> (<span class="variable">arg</span>.<span class="variable">hasOwnProperty</span>.<span class="variable">length</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="keyword">typeof</span> <span class="variable">arg</span> !== <span class="string">'string'</span>) {
<span class="keyword">return</span> <span class="variable">global</span>.<span class="variable">enumerable</span>.<span class="variable">chain</span>(<span class="variable">arg</span>);
}
});
}
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">module</span> !== <span class="string">'undefined'</span>) {
<span class="variable">module</span>.<span class="variable">exports</span> = <span class="keyword">function</span>(<span class="variable">t</span>) {
<span class="keyword">return</span> <span class="class">EnumerableModule</span>(<span class="variable">t</span>);
}
} <span class="keyword">else</span> {
<span class="class">EnumerableModule</span>(<span class="variable">turing</span>);
}
})();
</code></pre>
</td>
</tr><tr class="filename"><td><h2 id="turing.events.js"><a href="#">turing.events</a></h2></td><td>turing.events.js</td></tr><tr class="code">
<td class="docs">
<p>The Turing Events module.</p>
<p> </p>
</td>
<td class="code">
<pre><code>(<span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">events</span> = {},
<span class="variable">cache</span> = [],
<span class="variable">onReadyBound</span> = <span class="variable">false</span>,
<span class="variable">isReady</span> = <span class="variable">false</span>,
<span class="class">DOMContentLoaded</span>,
<span class="variable">readyCallbacks</span> = [],
<span class="class">Emitter</span>;
<span class="keyword">function</span> <span class="variable">isValidElement</span>(<span class="variable">element</span>) {
<span class="keyword">return</span> <span class="variable">element</span>.<span class="variable">nodeType</span> !== <span class="number integer">3</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">element</span>.<span class="variable">nodeType</span> !== <span class="number integer">8</span>;
}
<span class="keyword">function</span> <span class="variable">stop</span>(<span class="variable">event</span>) {
<span class="variable">event</span>.<span class="variable">preventDefault</span>(<span class="variable">event</span>);
<span class="variable">event</span>.<span class="variable">stopPropagation</span>(<span class="variable">event</span>);
}
<span class="keyword">function</span> <span class="variable">fix</span>(<span class="variable">event</span>, <span class="variable">element</span>) {
<span class="keyword">if</span> (!<span class="variable">event</span>) <span class="keyword">var</span> <span class="variable">event</span> = <span class="variable">window</span>.<span class="variable">event</span>;
<span class="variable">event</span>.<span class="variable">stop</span> = <span class="keyword">function</span>() { <span class="variable">stop</span>(<span class="variable">event</span>); };
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">event</span>.<span class="variable">target</span> === <span class="string">'undefined'</span>)
<span class="variable">event</span>.<span class="variable">target</span> = <span class="variable">event</span>.<span class="variable">srcElement</span> || <span class="variable">element</span>;
<span class="keyword">if</span> (!<span class="variable">event</span>.<span class="variable">preventDefault</span>)
<span class="variable">event</span>.<span class="variable">preventDefault</span> = <span class="keyword">function</span>() { <span class="variable">event</span>.<span class="variable">returnValue</span> = <span class="variable">false</span>; };
<span class="keyword">if</span> (!<span class="variable">event</span>.<span class="variable">stopPropagation</span>)
<span class="variable">event</span>.<span class="variable">stopPropagation</span> = <span class="keyword">function</span>() { <span class="variable">event</span>.<span class="variable">cancelBubble</span> = <span class="variable">true</span>; };
<span class="keyword">if</span> (<span class="variable">event</span>.<span class="variable">target</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">event</span>.<span class="variable">target</span>.<span class="variable">nodeType</span> === <span class="number integer">3</span>)
<span class="variable">event</span>.<span class="variable">target</span> = <span class="variable">event</span>.<span class="variable">target</span>.<span class="variable">parentNode</span>;
<span class="keyword">if</span> (<span class="variable">event</span>.<span class="variable">pageX</span> == <span class="keyword">null</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">event</span>.<span class="variable">clientX</span> != <span class="keyword">null</span>) {
<span class="keyword">var</span> <span class="variable">doc</span> = <span class="variable">document</span>.<span class="variable">documentElement</span>, <span class="variable">body</span> = <span class="variable">document</span>.<span class="variable">body</span>;
<span class="variable">event</span>.<span class="variable">pageX</span> = <span class="variable">event</span>.<span class="variable">clientX</span> + (<span class="variable">doc</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">doc</span>.<span class="variable">scrollLeft</span> || <span class="variable">body</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">body</span>.<span class="variable">scrollLeft</span> || <span class="number integer">0</span>) - (<span class="variable">doc</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">doc</span>.<span class="variable">clientLeft</span> || <span class="variable">body</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">body</span>.<span class="variable">clientLeft</span> || <span class="number integer">0</span>);
<span class="variable">event</span>.<span class="variable">pageY</span> = <span class="variable">event</span>.<span class="variable">clientY</span> + (<span class="variable">doc</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">doc</span>.<span class="variable">scrollTop</span> || <span class="variable">body</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">body</span>.<span class="variable">scrollTop</span> || <span class="number integer">0</span>) - (<span class="variable">doc</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">doc</span>.<span class="variable">clientTop</span> || <span class="variable">body</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">body</span>.<span class="variable">clientTop</span> || <span class="number integer">0</span>);
}
<span class="keyword">return</span> <span class="variable">event</span>;
}
<span class="keyword">function</span> <span class="variable">createResponder</span>(<span class="variable">element</span>, <span class="variable">handler</span>) {
<span class="keyword">return</span> <span class="keyword">function</span>(<span class="variable">event</span>) {
<span class="variable">fix</span>(<span class="variable">event</span>, <span class="variable">element</span>);
<span class="keyword">return</span> <span class="variable">handler</span>(<span class="variable">event</span>);
};
}
<span class="keyword">function</span> <span class="variable">removeCachedResponder</span>(<span class="variable">element</span>, <span class="variable">type</span>, <span class="variable">handler</span>) {
<span class="keyword">var</span> <span class="variable">i</span> = <span class="number integer">0</span>, <span class="variable">responder</span>, <span class="variable">j</span> = <span class="number integer">0</span>;
<span class="keyword">for</span> (<span class="variable">j</span> = <span class="number integer">0</span>; <span class="variable">j</span> &<span class="variable">lt</span>; <span class="variable">cache</span>.<span class="variable">length</span>; <span class="variable">j</span>++) {
<span class="keyword">if</span> (<span class="variable">cache</span>[<span class="variable">j</span>].<span class="variable">element</span> !== <span class="variable">element</span>
&<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">cache</span>[<span class="variable">j</span>].<span class="variable">type</span> !== <span class="variable">type</span>
&<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">cache</span>[<span class="variable">j</span>].<span class="variable">handler</span> !== <span class="variable">handler</span>) {
<span class="variable">cache</span>[<span class="variable">i</span>++] = <span class="variable">cache</span>[<span class="variable">j</span>];
} <span class="keyword">else</span> {
<span class="variable">responder</span> = <span class="variable">cache</span>[<span class="variable">j</span>].<span class="variable">responder</span>;
}
}
<span class="variable">cache</span>.<span class="variable">length</span> = <span class="variable">i</span>;
<span class="keyword">return</span> <span class="variable">responder</span>;
}
<span class="keyword">function</span> <span class="variable">ready</span>() {
<span class="keyword">if</span> (!<span class="variable">isReady</span>) {
<span class="comment">// Make sure body exists</span>
<span class="keyword">if</span> (!<span class="variable">document</span>.<span class="variable">body</span>) {
<span class="keyword">return</span> <span class="variable">setTimeout</span>(<span class="variable">ready</span>, <span class="number integer">13</span>);
}
<span class="variable">isReady</span> = <span class="variable">true</span>;
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">i</span> <span class="keyword">in</span> <span class="variable">readyCallbacks</span>) {
<span class="variable">readyCallbacks</span>[<span class="variable">i</span>]();
}
<span class="variable">readyCallbacks</span> = <span class="keyword">null</span>;
<span class="comment">// TODO:</span>
<span class="comment">// When custom events work properly in IE:</span>
<span class="comment">// events.fire(document, 'dom:ready');</span>
}
}
<span class="comment">// This checks if the DOM is ready recursively</span>
<span class="keyword">function</span> <span class="class">DOMReadyScrollCheck</span>() {
<span class="keyword">if</span> (<span class="variable">isReady</span>) {
<span class="keyword">return</span>;
}
<span class="keyword">try</span> {
<span class="variable">document</span>.<span class="variable">documentElement</span>.<span class="variable">doScroll</span>(<span class="string">'left'</span>);
} <span class="keyword">catch</span>(<span class="variable">e</span>) {
<span class="variable">setTimeout</span>(<span class="class">DOMReadyScrollCheck</span>, <span class="number integer">1</span>);
<span class="keyword">return</span>;
}
<span class="variable">ready</span>();
}
<span class="comment">// DOMContentLoaded cleans up listeners</span>
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">document</span> !== <span class="string">'undefined'</span>) {
<span class="keyword">if</span> (<span class="variable">document</span>.<span class="variable">addEventListener</span>) {
<span class="class">DOMContentLoaded</span> = <span class="keyword">function</span>() {
<span class="variable">document</span>.<span class="variable">removeEventListener</span>(<span class="string">'DOMContentLoaded'</span>, <span class="class">DOMContentLoaded</span>, <span class="variable">false</span>);
<span class="variable">ready</span>();
};
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="variable">document</span>.<span class="variable">attachEvent</span>) {
<span class="class">DOMContentLoaded</span> = <span class="keyword">function</span>() {
<span class="keyword">if</span> (<span class="variable">document</span>.<span class="variable">readyState</span> === <span class="string">'complete'</span>) {
<span class="variable">document</span>.<span class="variable">detachEvent</span>(<span class="string">'onreadystatechange'</span>, <span class="class">DOMContentLoaded</span>);
<span class="variable">ready</span>();
}
};
}
}
<span class="keyword">function</span> <span class="variable">bindOnReady</span>() {
<span class="keyword">if</span> (<span class="variable">onReadyBound</span>) <span class="keyword">return</span>;
<span class="variable">onReadyBound</span> = <span class="variable">true</span>;
<span class="keyword">if</span> (<span class="variable">document</span>.<span class="variable">readyState</span> === <span class="string">'complete'</span>) {
<span class="variable">ready</span>();
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="variable">document</span>.<span class="variable">addEventListener</span>) {
<span class="variable">document</span>.<span class="variable">addEventListener</span>(<span class="string">'DOMContentLoaded'</span>, <span class="class">DOMContentLoaded</span>, <span class="variable">false</span> );
<span class="variable">window</span>.<span class="variable">addEventListener</span>(<span class="string">'load'</span>, <span class="variable">ready</span>, <span class="variable">false</span>);
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="variable">document</span>.<span class="variable">attachEvent</span>) {
<span class="variable">document</span>.<span class="variable">attachEvent</span>(<span class="string">'onreadystatechange'</span>, <span class="class">DOMContentLoaded</span>);
<span class="variable">window</span>.<span class="variable">attachEvent</span>(<span class="string">'onload'</span>, <span class="variable">ready</span>);
<span class="comment">// Check to see if the document is ready</span>
<span class="keyword">var</span> <span class="variable">toplevel</span> = <span class="variable">false</span>;
<span class="keyword">try</span> {
<span class="variable">toplevel</span> = <span class="variable">window</span>.<span class="variable">frameElement</span> == <span class="keyword">null</span>;
} <span class="keyword">catch</span>(<span class="variable">e</span>) {}
<span class="keyword">if</span> (<span class="variable">document</span>.<span class="variable">documentElement</span>.<span class="variable">doScroll</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">toplevel</span>) {
<span class="class">DOMReadyScrollCheck</span>();
}
}
}
<span class="keyword">function</span> <span class="class">IEType</span>(<span class="variable">type</span>) {
<span class="keyword">if</span> (<span class="variable">type</span>.<span class="variable">match</span>(<span class="regexp">/:/</span>)) {
<span class="keyword">return</span> <span class="variable">type</span>;
}
<span class="keyword">return</span> <span class="string">'on'</span> + <span class="variable">type</span>;
}</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Bind an event to an element.</p>
<pre><code> turing.events.add(element, 'click', function() {
console.log('Clicked');
});</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>String</em> type The event name</p></li><li><p><strong>param</strong>: <em>Function</em> handler The event handler</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">events</span>.<span class="variable">add</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">type</span>, <span class="variable">handler</span>) {
<span class="keyword">if</span> (!<span class="variable">isValidElement</span>(<span class="variable">element</span>)) <span class="keyword">return</span>;
<span class="keyword">var</span> <span class="variable">responder</span> = <span class="variable">createResponder</span>(<span class="variable">element</span>, <span class="variable">handler</span>);
<span class="variable">cache</span>.<span class="variable">push</span>({ <span class="variable">element</span>: <span class="variable">element</span>, <span class="variable">type</span>: <span class="variable">type</span>, <span class="variable">handler</span>: <span class="variable">handler</span>, <span class="variable">responder</span>: <span class="variable">responder</span> });
<span class="keyword">if</span> (<span class="variable">type</span>.<span class="variable">match</span>(<span class="regexp">/:/</span>) &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">element</span>.<span class="variable">attachEvent</span>) {
<span class="variable">element</span>.<span class="variable">attachEvent</span>(<span class="string">'ondataavailable'</span>, <span class="variable">responder</span>);
} <span class="keyword">else</span> {
<span class="keyword">if</span> (<span class="variable">element</span>.<span class="variable">addEventListener</span>) {
<span class="variable">element</span>.<span class="variable">addEventListener</span>(<span class="variable">type</span>, <span class="variable">responder</span>, <span class="variable">false</span>);
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="variable">element</span>.<span class="variable">attachEvent</span>) {
<span class="variable">element</span>.<span class="variable">attachEvent</span>(<span class="class">IEType</span>(<span class="variable">type</span>), <span class="variable">responder</span>);
}
}
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Remove an event from an element.</p>
<pre><code> turing.events.add(element, 'click', callback);</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>String</em> type The event name</p></li><li><p><strong>param</strong>: <em>Function</em> handler The event handler</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">events</span>.<span class="variable">remove</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">type</span>, <span class="variable">handler</span>) {
<span class="keyword">if</span> (!<span class="variable">isValidElement</span>(<span class="variable">element</span>)) <span class="keyword">return</span>;
<span class="keyword">var</span> <span class="variable">responder</span> = <span class="variable">removeCachedResponder</span>(<span class="variable">element</span>, <span class="variable">type</span>, <span class="variable">handler</span>);
<span class="keyword">if</span> (<span class="variable">document</span>.<span class="variable">removeEventListener</span>) {
<span class="variable">element</span>.<span class="variable">removeEventListener</span>(<span class="variable">type</span>, <span class="variable">responder</span>, <span class="variable">false</span>);
} <span class="keyword">else</span> {
<span class="variable">element</span>.<span class="variable">detachEvent</span>(<span class="class">IEType</span>(<span class="variable">type</span>), <span class="variable">responder</span>);
}
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Fires an event.</p>
<pre><code> turing.events.fire(element, 'click');</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> element A DOM element</p></li><li><p><strong>param</strong>: <em>String</em> type The event name</p></li><li><p><strong>returns</strong>: <em>Object</em> The browser's <code>fireEvent</code> or <code>dispatchEvent</code> result</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">events</span>.<span class="variable">fire</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">type</span>) {
<span class="keyword">var</span> <span class="variable">event</span>;
<span class="keyword">if</span> (<span class="variable">document</span>.<span class="variable">createEventObject</span>) {
<span class="variable">event</span> = <span class="variable">document</span>.<span class="variable">createEventObject</span>();
<span class="variable">fix</span>(<span class="variable">event</span>, <span class="variable">element</span>);
<span class="comment">// This isn't quite ready</span>
<span class="keyword">if</span> (<span class="variable">type</span>.<span class="variable">match</span>(<span class="regexp">/:/</span>)) {
<span class="variable">event</span>.<span class="variable">eventName</span> = <span class="variable">type</span>;
<span class="variable">event</span>.<span class="variable">eventType</span> = <span class="string">'ondataavailable'</span>;
<span class="keyword">return</span> <span class="variable">element</span>.<span class="variable">fireEvent</span>(<span class="variable">event</span>.<span class="variable">eventType</span>, <span class="variable">event</span>)
} <span class="keyword">else</span> {
<span class="keyword">return</span> <span class="variable">element</span>.<span class="variable">fireEvent</span>(<span class="class">IEType</span>(<span class="variable">type</span>), <span class="variable">event</span>)
}
} <span class="keyword">else</span> {
<span class="variable">event</span> = <span class="variable">document</span>.<span class="variable">createEvent</span>(<span class="string">'HTMLEvents'</span>);
<span class="variable">fix</span>(<span class="variable">event</span>, <span class="variable">element</span>);
<span class="variable">event</span>.<span class="variable">eventName</span> = <span class="variable">type</span>;
<span class="variable">event</span>.<span class="variable">initEvent</span>(<span class="variable">type</span>, <span class="variable">true</span>, <span class="variable">true</span>);
<span class="keyword">return</span> !<span class="variable">element</span>.<span class="variable">dispatchEvent</span>(<span class="variable">event</span>);
}
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Add a 'DOM ready' callback.</p>
<pre><code> turing.events.ready(function() {
// The DOM is ready
});</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Function</em> callback A callback to run</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">events</span>.<span class="variable">ready</span> = <span class="keyword">function</span>(<span class="variable">callback</span>) {
<span class="variable">bindOnReady</span>();
<span class="variable">readyCallbacks</span>.<span class="variable">push</span>(<span class="variable">callback</span>);
};
<span class="keyword">if</span> (<span class="variable">turing</span>.<span class="variable">dom</span> !== <span class="string">'undefined'</span>) {
<span class="variable">events</span>.<span class="variable">delegate</span> = <span class="keyword">function</span>(<span class="variable">element</span>, <span class="variable">selector</span>, <span class="variable">type</span>, <span class="variable">handler</span>) {
<span class="keyword">return</span> <span class="variable">events</span>.<span class="variable">add</span>(<span class="variable">element</span>, <span class="variable">type</span>, <span class="keyword">function</span>(<span class="variable">event</span>) {
<span class="keyword">var</span> <span class="variable">matches</span> = <span class="variable">turing</span>.<span class="variable">dom</span>.<span class="variable">findElement</span>(<span class="variable">event</span>.<span class="variable">target</span>, <span class="variable">selector</span>, <span class="variable">event</span>.<span class="variable">currentTarget</span>);
<span class="keyword">if</span> (<span class="variable">matches</span>) {
<span class="variable">handler</span>(<span class="variable">event</span>);
}
});
};
}</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Events can be chained with DOM calls:</p>
<pre><code> turing('p').bind('click', function(e) {
alert('ouch');
});</code></pre>
<p>The event will be bound to each matching element.</p>
<pre><code></code></pre>
</td>
<td class="code">
<pre><code><span class="variable">events</span>.<span class="variable">addDOMethods</span> = <span class="keyword">function</span>() {
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">turing</span>.<span class="variable">domChain</span> === <span class="string">'undefined'</span>) <span class="keyword">return</span>;
<span class="variable">turing</span>.<span class="variable">domChain</span>.<span class="variable">bind</span> = <span class="keyword">function</span>(<span class="variable">type</span>, <span class="variable">handler</span>) {
<span class="keyword">var</span> <span class="variable">element</span>;
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="this">this</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="variable">element</span> = <span class="this">this</span>[<span class="variable">i</span>];
<span class="keyword">if</span> (<span class="variable">handler</span>) {
<span class="variable">turing</span>.<span class="variable">events</span>.<span class="variable">add</span>(<span class="variable">element</span>, <span class="variable">type</span>, <span class="variable">handler</span>);
} <span class="keyword">else</span> {
<span class="variable">turing</span>.<span class="variable">events</span>.<span class="variable">fire</span>(<span class="variable">element</span>, <span class="variable">type</span>);
}
}
<span class="keyword">return</span> <span class="this">this</span>;
};
<span class="keyword">var</span> <span class="variable">chainedAliases</span> = (<span class="string">'click dblclick mouseover mouseout mousemove '</span> +
<span class="string">'mousedowe mouseup blur focus change keydown '</span> +
<span class="string">'keypress keyup resize scroll'</span>).<span class="variable">split</span>(<span class="string">' '</span>);
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="variable">chainedAliases</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
(<span class="keyword">function</span>(<span class="variable">name</span>) {
<span class="variable">turing</span>.<span class="variable">domChain</span>[<span class="variable">name</span>] = <span class="keyword">function</span>(<span class="variable">handler</span>) {
<span class="keyword">return</span> <span class="this">this</span>.<span class="variable">bind</span>(<span class="variable">name</span>, <span class="variable">handler</span>);
};
})(<span class="variable">chainedAliases</span>[<span class="variable">i</span>]);
}
};
<span class="variable">events</span>.<span class="variable">addDOMethods</span>();</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>A generic event manager, based on Node's EventEmitter:</p>
<pre><code> var EventEmitter = turing.events.Emitter,
emitter = new EventEmitter();
emitter.on('testFired', function() {
assert.ok(true);
});
emitter.emit('testFired');
</code></pre>
</td>
<td class="code">
<pre><code><span class="class">Emitter</span> = <span class="keyword">function</span>() {
<span class="this">this</span>.<span class="variable">events</span> = {};
};
<span class="class">Emitter</span>.<span class="variable">prototype</span> = {</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Adds a listener. Multiple can be added per eventName. Aliased as <code>on</code>.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> eventName The name of the event</p></li><li><p><strong>param</strong>: <em>Function</em> handler A callback</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">addListener</span>: <span class="keyword">function</span>(<span class="variable">eventName</span>, <span class="variable">handler</span>) {
<span class="keyword">if</span> (<span class="variable">eventName</span> <span class="keyword">in</span> <span class="this">this</span>.<span class="variable">events</span> === <span class="variable">false</span>)
<span class="this">this</span>.<span class="variable">events</span>[<span class="variable">eventName</span>] = [];
<span class="this">this</span>.<span class="variable">events</span>[<span class="variable">eventName</span>].<span class="variable">push</span>(<span class="variable">handler</span>);
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Triggers all matching listeners.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> eventName The name of the event</p></li><li><p><strong>returns</strong>: <em>Boolean</em> <code>true</code> if an event fired</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">emit</span>: <span class="keyword">function</span>(<span class="variable">eventName</span>) {
<span class="keyword">var</span> <span class="variable">fired</span> = <span class="variable">false</span>;
<span class="keyword">if</span> (<span class="variable">eventName</span> <span class="keyword">in</span> <span class="this">this</span>.<span class="variable">events</span> === <span class="variable">false</span>) <span class="keyword">return</span> <span class="variable">fired</span>;
<span class="keyword">var</span> <span class="variable">list</span> = <span class="this">this</span>.<span class="variable">events</span>[<span class="variable">eventName</span>].<span class="variable">slice</span>();
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="variable">list</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="variable">list</span>[<span class="variable">i</span>].<span class="variable">apply</span>(<span class="this">this</span>, <span class="class">Array</span>.<span class="variable">prototype</span>.<span class="variable">slice</span>.<span class="variable">call</span>(<span class="variable">arguments</span>, <span class="number integer">1</span>));
<span class="variable">fired</span> = <span class="variable">true</span>;
}
<span class="keyword">return</span> <span class="variable">fired</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Removes all matching listeners.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> eventName The name of the event</p></li><li><p><strong>returns</strong>: <em>Boolean</em> <code>true</code> if an event was removed</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">removeAllListeners</span>: <span class="keyword">function</span>(<span class="variable">eventName</span>) {
<span class="keyword">if</span> (<span class="variable">eventName</span> <span class="keyword">in</span> <span class="this">this</span>.<span class="variable">events</span> === <span class="variable">false</span>) <span class="keyword">return</span> <span class="variable">false</span>;
<span class="keyword">delete</span> <span class="this">this</span>.<span class="variable">events</span>[<span class="variable">eventName</span>];
<span class="keyword">return</span> <span class="variable">true</span>;
},
<span class="variable">removeListenerAt</span>: <span class="keyword">function</span>(<span class="variable">eventName</span>, <span class="variable">i</span>) {
<span class="this">this</span>.<span class="variable">events</span>[<span class="variable">eventName</span>].<span class="variable">splice</span>(<span class="variable">i</span>, <span class="number integer">1</span>);
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Removes a listener based on the handler function.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> eventName The name of the event</p></li><li><p><strong>param</strong>: <em>Function</em> handler The handler function to remove</p></li><li><p><strong>returns</strong>: <em>Boolean</em> <code>true</code> if an event was removed</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">removeListener</span>: <span class="keyword">function</span>(<span class="variable">eventName</span>, <span class="variable">handler</span>) {
<span class="keyword">if</span> (<span class="variable">eventName</span> <span class="keyword">in</span> <span class="this">this</span>.<span class="variable">events</span> === <span class="variable">false</span>) <span class="keyword">return</span> <span class="variable">false</span>;
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="this">this</span>.<span class="variable">events</span>[<span class="variable">eventName</span>].<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="keyword">if</span> (<span class="this">this</span>.<span class="variable">events</span>[<span class="variable">eventName</span>][<span class="variable">i</span>] == <span class="variable">handler</span>) {
<span class="this">this</span>.<span class="variable">removeListenerAt</span>(<span class="variable">eventName</span>, <span class="variable">i</span>);
<span class="keyword">return</span> <span class="variable">true</span>;
}
}
<span class="keyword">return</span> <span class="variable">false</span>;
}
};
<span class="class">Emitter</span>.<span class="variable">prototype</span>.<span class="variable">on</span> = <span class="class">Emitter</span>.<span class="variable">prototype</span>.<span class="variable">addListener</span>;
<span class="variable">events</span>.<span class="class">Emitter</span> = <span class="class">Emitter</span>;</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>DOM ready event handlers can also be set with:</p>
<pre><code> turing.ready(function() { });</code></pre>
<p>Or just by passing a function to <code>turing()</code>:</p>
<pre><code> turing(function() {} );
</code></pre>
</td>
<td class="code">
<pre><code><span class="variable">turing</span>.<span class="variable">ready</span> = <span class="variable">events</span>.<span class="variable">ready</span>;
<span class="variable">turing</span>.<span class="variable">events</span> = <span class="variable">events</span>;
<span class="variable">turing</span>.<span class="variable">init</span>(<span class="keyword">function</span>(<span class="variable">arg</span>) {
<span class="keyword">if</span> (<span class="variable">arguments</span>.<span class="variable">length</span> === <span class="number integer">1</span>
&<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="keyword">typeof</span> <span class="variable">arguments</span>[<span class="number integer">0</span>] === <span class="string">'function'</span>) {
<span class="variable">turing</span>.<span class="variable">events</span>.<span class="variable">ready</span>(<span class="variable">arguments</span>[<span class="number integer">0</span>]);
}
});
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">window</span> !== <span class="string">'undefined'</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">window</span>.<span class="variable">attachEvent</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; !<span class="variable">window</span>.<span class="variable">addEventListener</span>) {
<span class="variable">window</span>.<span class="variable">attachEvent</span>(<span class="string">'onunload'</span>, <span class="keyword">function</span>() {
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="variable">cache</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="keyword">try</span> {
<span class="variable">events</span>.<span class="variable">remove</span>(<span class="variable">cache</span>[<span class="variable">i</span>].<span class="variable">element</span>, <span class="variable">cache</span>[<span class="variable">i</span>].<span class="variable">type</span>);
<span class="variable">cache</span>[<span class="variable">i</span>] = <span class="keyword">null</span>;
} <span class="keyword">catch</span>(<span class="variable">e</span>) {}
}
});
}
})();
</code></pre>
</td>
</tr><tr class="filename"><td><h2 id="turing.functional.js"><a href="#">turing.functional</a></h2></td><td>turing.functional.js</td></tr><tr class="code">
<td class="docs">
<p>Turing Functional helpers.
</p>
</td>
<td class="code">
<pre><code><span class="variable">turing</span>.<span class="variable">functional</span> = {
<span class="variable">curry</span>: <span class="variable">turing</span>.<span class="variable">bind</span>,
<span class="variable">memoize</span>: <span class="keyword">function</span>(<span class="variable">memo</span>, <span class="variable">fn</span>) {
<span class="keyword">var</span> <span class="variable">wrapper</span> = <span class="keyword">function</span>(<span class="variable">n</span>) {
<span class="keyword">var</span> <span class="variable">result</span> = <span class="variable">memo</span>[<span class="variable">n</span>];
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">result</span> !== <span class="string">'number'</span>) {
<span class="variable">result</span> = <span class="variable">fn</span>(<span class="variable">wrapper</span>, <span class="variable">n</span>);
<span class="variable">memo</span>[<span class="variable">n</span>] = <span class="variable">result</span>;
}
<span class="keyword">return</span> <span class="variable">result</span>;
};
<span class="keyword">return</span> <span class="variable">wrapper</span>;
}
};
</code></pre>
</td>
</tr><tr class="filename"><td><h2 id="turing.net.js"><a href="#">turing.net</a></h2></td><td>turing.net.js</td></tr><tr class="code">
<td class="docs">
<p>The Turing Net module (Ajax).
</p>
</td>
<td class="code">
<pre><code>(<span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">net</span> = {};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Ajax request options:</p>
<ul><li><code>method</code>: {String} HTTP method - GET, POST, etc.</li><li><code>success</code>: {Function} A callback to run when a request is successful</li><li><code>error</code>: {Function} A callback to run when the request fails</li><li><code>asynchronous</code>: {Boolean} Defaults to asynchronous</li><li><code>postBody</code>: {String} The HTTP POST body</li><li><p><code>contentType</code>: {String} The content type of the request, default is <code>application/x-www-form-urlencoded</code></p><p></p></li></ul>
</td>
<td class="code">
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Removes leading and trailing whitespace.
## </p>
<ul><li><p><strong>param</strong>: <em>String</em> </p></li><li><p><strong>return</strong>: <em>String</em> </p><p></p></li></ul>
</td>
<td class="code">
<pre><code><span class="keyword">var</span> <span class="variable">trim</span> = <span class="string">''</span>.<span class="variable">trim</span>
? <span class="keyword">function</span>(<span class="variable">s</span>) { <span class="keyword">return</span> <span class="variable">s</span>.<span class="variable">trim</span>(); }
: <span class="keyword">function</span>(<span class="variable">s</span>) { <span class="keyword">return</span> <span class="variable">s</span>.<span class="variable">replace</span>(<span class="regexp">/^\s\s*/</span>, <span class="string">''</span>).<span class="variable">replace</span>(<span class="regexp">/\s\s*$/</span>, <span class="string">''</span>); };
<span class="keyword">function</span> <span class="variable">xhr</span>() {
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="class">XMLHttpRequest</span> !== <span class="string">'undefined'</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; (<span class="variable">window</span>.<span class="variable">location</span>.<span class="variable">protocol</span> !== <span class="string">'file:'</span> || !<span class="variable">window</span>.<span class="class">ActiveXObject</span>)) {
<span class="keyword">return</span> <span class="keyword">new</span> <span class="class">XMLHttpRequest</span>();
} <span class="keyword">else</span> {
<span class="keyword">try</span> {
<span class="keyword">return</span> <span class="keyword">new</span> <span class="class">ActiveXObject</span>(<span class="string">'Msxml2.XMLHTTP.6.0'</span>);
} <span class="keyword">catch</span>(<span class="variable">e</span>) { }
<span class="keyword">try</span> {
<span class="keyword">return</span> <span class="keyword">new</span> <span class="class">ActiveXObject</span>(<span class="string">'Msxml2.XMLHTTP.3.0'</span>);
} <span class="keyword">catch</span>(<span class="variable">e</span>) { }
<span class="keyword">try</span> {
<span class="keyword">return</span> <span class="keyword">new</span> <span class="class">ActiveXObject</span>(<span class="string">'Msxml2.XMLHTTP'</span>);
} <span class="keyword">catch</span>(<span class="variable">e</span>) { }
}
<span class="keyword">return</span> <span class="variable">false</span>;
}
<span class="keyword">function</span> <span class="variable">successfulRequest</span>(<span class="variable">request</span>) {
<span class="keyword">return</span> (<span class="variable">request</span>.<span class="variable">status</span> &<span class="variable">gt</span>;= <span class="number integer">200</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">request</span>.<span class="variable">status</span> &<span class="variable">lt</span>; <span class="number integer">300</span>) ||
<span class="variable">request</span>.<span class="variable">status</span> == <span class="number integer">304</span> ||
(<span class="variable">request</span>.<span class="variable">status</span> == <span class="number integer">0</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">request</span>.<span class="variable">responseText</span>);
}</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Serialize JavaScript for HTTP requests.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> object An Array or Object</p></li><li><p><strong>returns</strong>: <em>String</em> A string suitable for a GET or POST request</p><p></p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">net</span>.<span class="variable">serialize</span> = <span class="keyword">function</span>(<span class="variable">object</span>) {
<span class="keyword">if</span> (!<span class="variable">object</span>) <span class="keyword">return</span>;
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">object</span> === <span class="string">'string'</span>) {
<span class="keyword">return</span> <span class="variable">object</span>;
}
<span class="keyword">var</span> <span class="variable">results</span> = [];
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">key</span> <span class="keyword">in</span> <span class="variable">object</span>) {
<span class="variable">results</span>.<span class="variable">push</span>(<span class="variable">encodeURIComponent</span>(<span class="variable">key</span>) + <span class="string">'='</span> + <span class="variable">encodeURIComponent</span>(<span class="variable">object</span>[<span class="variable">key</span>]));
}
<span class="keyword">return</span> <span class="variable">results</span>.<span class="variable">join</span>(<span class="string">'&'</span>);
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>JSON.parse support can be inferred using <code>turing.detect('JSON.parse')</code>.
</p>
</td>
<td class="code">
<pre><code><span class="variable">turing</span>.<span class="variable">addDetectionTest</span>(<span class="string">'JSON.parse'</span>, <span class="keyword">function</span>() {
<span class="keyword">return</span> <span class="variable">window</span>.<span class="class">JSON</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">window</span>.<span class="class">JSON</span>.<span class="variable">parse</span>;
});</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Parses JSON represented as a string.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> string The original string</p></li><li><p><strong>returns</strong>: <em>Object</em> A JavaScript object</p><p></p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">net</span>.<span class="variable">parseJSON</span> = <span class="keyword">function</span>(<span class="variable">string</span>) {
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">string</span> !== <span class="string">'string'</span> || !<span class="variable">string</span>) <span class="keyword">return</span> <span class="keyword">null</span>;
<span class="variable">string</span> = <span class="variable">trim</span>(<span class="variable">string</span>);
<span class="keyword">return</span> <span class="variable">turing</span>.<span class="variable">detect</span>(<span class="string">'JSON.parse'</span>) ?
<span class="variable">window</span>.<span class="class">JSON</span>.<span class="variable">parse</span>(<span class="variable">string</span>) :
(<span class="keyword">new</span> <span class="class">Function</span>(<span class="string">'return '</span> + <span class="variable">string</span>))();
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Parses XML represented as a string.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> string The original string</p></li><li><p><strong>returns</strong>: <em>Object</em> A JavaScript object</p><p></p></li></ul>
</td>
<td class="code">
<pre><code><span class="keyword">if</span> (<span class="variable">window</span>.<span class="class">DOMParser</span>) {
<span class="variable">net</span>.<span class="variable">parseXML</span> = <span class="keyword">function</span>(<span class="variable">text</span>) {
<span class="keyword">return</span> <span class="keyword">new</span> <span class="class">DOMParser</span>().<span class="variable">parseFromString</span>(<span class="variable">text</span>, <span class="string">'text/xml'</span>);
};
} <span class="keyword">else</span> {
<span class="variable">net</span>.<span class="variable">parseXML</span> = <span class="keyword">function</span>(<span class="variable">text</span>) {
<span class="keyword">var</span> <span class="variable">xml</span> = <span class="keyword">new</span> <span class="class">ActiveXObject</span>(<span class="string">'Microsoft.XMLDOM'</span>);
<span class="variable">xml</span>.<span class="variable">async</span> = <span class="string">'false'</span>;
<span class="variable">xml</span>.<span class="variable">loadXML</span>(<span class="variable">text</span>);
<span class="keyword">return</span> <span class="variable">xml</span>;
};
}</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Creates an Ajax request. Returns an object that can be used
to chain calls. For example:</p>
<pre><code> $t.post('/post-test')
.data({ key: 'value' })
.end(function(res) {
assert.equal('value', res.responseText);
});
$t.get('/get-test')
.set('Accept', 'text/html')
.end(function(res) {
assert.equal('Sample text', res.responseText);
});</code></pre>
<p>The available chained methods are:</p>
<p><code>set</code> -- set a HTTP header
<code>data</code> -- the postBody
<code>end</code> -- send the request over the network, and calls your callback with a <code>res</code> object
<code>send</code> -- sends the request and calls <code>data</code>: <code>.send({ data: value }, function(res) { });</code></p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> The URL to call</p></li><li><p><strong>param</strong>: <em>Object</em> Optional settings</p></li><li><p><strong>returns</strong>: <em>Object</em> A chainable object for further configuration</p><p></p></li></ul>
</td>
<td class="code">
<pre><code><span class="keyword">function</span> <span class="variable">ajax</span>(<span class="variable">url</span>, <span class="variable">options</span>) {
<span class="keyword">var</span> <span class="variable">request</span> = <span class="variable">xhr</span>(),
<span class="variable">promise</span>,
<span class="variable">then</span>,
<span class="variable">response</span> = {},
<span class="variable">chain</span>;
<span class="keyword">if</span> (<span class="variable">turing</span>.<span class="class">Promise</span>) {
<span class="variable">promise</span> = <span class="keyword">new</span> <span class="variable">turing</span>.<span class="class">Promise</span>();
}
<span class="keyword">function</span> <span class="variable">respondToReadyState</span>(<span class="variable">readyState</span>) {
<span class="keyword">if</span> (<span class="variable">request</span>.<span class="variable">readyState</span> == <span class="number integer">4</span>) {
<span class="keyword">var</span> <span class="variable">contentType</span> = <span class="variable">request</span>.<span class="variable">mimeType</span> || <span class="variable">request</span>.<span class="variable">getResponseHeader</span>(<span class="string">'content-type'</span>) || <span class="string">''</span>;
<span class="variable">response</span>.<span class="variable">status</span> = <span class="variable">request</span>.<span class="variable">status</span>;
<span class="variable">response</span>.<span class="variable">responseText</span> = <span class="variable">request</span>.<span class="variable">responseText</span>;
<span class="keyword">if</span> (<span class="regexp">/json/</span>.<span class="variable">test</span>(<span class="variable">contentType</span>)) {
<span class="variable">response</span>.<span class="variable">responseJSON</span> = <span class="variable">net</span>.<span class="variable">parseJSON</span>(<span class="variable">request</span>.<span class="variable">responseText</span>);
} <span class="keyword">else</span> <span class="keyword">if</span> (<span class="regexp">/xml/</span>.<span class="variable">test</span>(<span class="variable">contentType</span>)) {
<span class="variable">response</span>.<span class="variable">responseXML</span> = <span class="variable">net</span>.<span class="variable">parseXML</span>(<span class="variable">request</span>.<span class="variable">responseText</span>);
}
<span class="variable">response</span>.<span class="variable">success</span> = <span class="variable">successfulRequest</span>(<span class="variable">request</span>);
<span class="keyword">if</span> (<span class="variable">options</span>.<span class="variable">callback</span>) {
<span class="keyword">return</span> <span class="variable">options</span>.<span class="variable">callback</span>(<span class="variable">response</span>, <span class="variable">request</span>);
}
<span class="keyword">if</span> (<span class="variable">response</span>.<span class="variable">success</span>) {
<span class="keyword">if</span> (<span class="variable">options</span>.<span class="variable">success</span>) <span class="variable">options</span>.<span class="variable">success</span>(<span class="variable">response</span>, <span class="variable">request</span>);
<span class="keyword">if</span> (<span class="variable">promise</span>) <span class="variable">promise</span>.<span class="variable">resolve</span>(<span class="variable">response</span>, <span class="variable">request</span>);
} <span class="keyword">else</span> {
<span class="keyword">if</span> (<span class="variable">options</span>.<span class="variable">error</span>) <span class="variable">options</span>.<span class="variable">error</span>(<span class="variable">response</span>, <span class="variable">request</span>);
<span class="keyword">if</span> (<span class="variable">promise</span>) <span class="variable">promise</span>.<span class="variable">reject</span>(<span class="variable">response</span>, <span class="variable">request</span>);
}
}
}
<span class="comment">// Set the HTTP headers</span>
<span class="keyword">function</span> <span class="variable">setHeaders</span>() {
<span class="keyword">var</span> <span class="variable">defaults</span> = {
<span class="string">'Accept'</span>: '<span class="regexp">/javascript, application/json</span>, <span class="regexp">/html, application/xml</span>, <span class="variable">text</span>/<span class="variable">xml</span>, *</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>',
'Content-Type': 'application/x-www-form-urlencoded'
};</p>
<pre><code> /**</code></pre>
<p>Merge headers with defaults.
</p>
</td>
<td class="code">
<pre><code><span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">name</span> <span class="keyword">in</span> <span class="variable">defaults</span>) {
<span class="keyword">if</span> (!<span class="variable">options</span>.<span class="variable">headers</span>.<span class="variable">hasOwnProperty</span>(<span class="variable">name</span>))
<span class="variable">options</span>.<span class="variable">headers</span>[<span class="variable">name</span>] = <span class="variable">defaults</span>[<span class="variable">name</span>];
}
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">name</span> <span class="keyword">in</span> <span class="variable">options</span>.<span class="variable">headers</span>) {
<span class="variable">request</span>.<span class="variable">setRequestHeader</span>(<span class="variable">name</span>, <span class="variable">options</span>.<span class="variable">headers</span>[<span class="variable">name</span>]);
}
}
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">options</span> === <span class="string">'undefined'</span>) <span class="variable">options</span> = {};
<span class="variable">options</span>.<span class="variable">method</span> = <span class="variable">options</span>.<span class="variable">method</span> ? <span class="variable">options</span>.<span class="variable">method</span>.<span class="variable">toLowerCase</span>() : <span class="string">'get'</span>;
<span class="variable">options</span>.<span class="variable">asynchronous</span> = <span class="variable">options</span>.<span class="variable">asynchronous</span> || <span class="variable">true</span>;
<span class="variable">options</span>.<span class="variable">postBody</span> = <span class="variable">options</span>.<span class="variable">postBody</span> || <span class="string">''</span>;
<span class="variable">request</span>.<span class="variable">onreadystatechange</span> = <span class="variable">respondToReadyState</span>;
<span class="variable">request</span>.<span class="variable">open</span>(<span class="variable">options</span>.<span class="variable">method</span>, <span class="variable">url</span>, <span class="variable">options</span>.<span class="variable">asynchronous</span>);
<span class="variable">options</span>.<span class="variable">headers</span> = <span class="variable">options</span>.<span class="variable">headers</span> || {};
<span class="keyword">if</span> (<span class="variable">options</span>.<span class="variable">contentType</span>) {
<span class="variable">options</span>.<span class="variable">headers</span>[<span class="string">'Content-Type'</span>] = <span class="variable">options</span>.<span class="variable">contentType</span>;
}
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">options</span>.<span class="variable">postBody</span> !== <span class="string">'string'</span>) {
<span class="comment">// Serialize JavaScript</span>
<span class="variable">options</span>.<span class="variable">postBody</span> = <span class="variable">net</span>.<span class="variable">serialize</span>(<span class="variable">options</span>.<span class="variable">postBody</span>);
}
<span class="variable">setHeaders</span>();
<span class="keyword">function</span> <span class="variable">send</span>() {
<span class="keyword">try</span> {
<span class="variable">request</span>.<span class="variable">send</span>(<span class="variable">options</span>.<span class="variable">postBody</span>);
} <span class="keyword">catch</span> (<span class="variable">e</span>) {
<span class="keyword">if</span> (<span class="variable">options</span>.<span class="variable">error</span>) {
<span class="variable">options</span>.<span class="variable">error</span>();
}
}
}
<span class="variable">chain</span> = {
<span class="variable">set</span>: <span class="keyword">function</span>(<span class="variable">key</span>, <span class="variable">value</span>) {
<span class="variable">options</span>.<span class="variable">headers</span>[<span class="variable">key</span>] = <span class="variable">value</span>;
<span class="keyword">return</span> <span class="variable">chain</span>;
},
<span class="variable">send</span>: <span class="keyword">function</span>(<span class="variable">data</span>, <span class="variable">callback</span>) {
<span class="variable">options</span>.<span class="variable">postBody</span> = <span class="variable">net</span>.<span class="variable">serialize</span>(<span class="variable">data</span>);
<span class="variable">options</span>.<span class="variable">callback</span> = <span class="variable">callback</span>;
<span class="variable">send</span>();
<span class="keyword">return</span> <span class="variable">chain</span>;
},
<span class="variable">end</span>: <span class="keyword">function</span>(<span class="variable">callback</span>) {
<span class="variable">options</span>.<span class="variable">callback</span> = <span class="variable">callback</span>;
<span class="variable">send</span>();
<span class="keyword">return</span> <span class="variable">chain</span>;
},
<span class="variable">data</span>: <span class="keyword">function</span>(<span class="variable">data</span>) {
<span class="variable">options</span>.<span class="variable">postBody</span> = <span class="variable">net</span>.<span class="variable">serialize</span>(<span class="variable">data</span>);
<span class="keyword">return</span> <span class="variable">chain</span>;
},
<span class="variable">then</span>: <span class="keyword">function</span>() {
<span class="variable">chain</span>.<span class="variable">end</span>();
<span class="keyword">if</span> (<span class="variable">promise</span>) <span class="variable">promise</span>.<span class="variable">then</span>.<span class="variable">apply</span>(<span class="variable">promise</span>, <span class="variable">arguments</span>);
<span class="keyword">return</span> <span class="variable">chain</span>;
}
};
<span class="keyword">return</span> <span class="variable">chain</span>;
}
<span class="keyword">function</span> <span class="class">JSONPCallback</span>(<span class="variable">url</span>, <span class="variable">success</span>, <span class="variable">failure</span>) {
<span class="keyword">var</span> <span class="variable">self</span> = <span class="this">this</span>;
<span class="this">this</span>.<span class="variable">url</span> = <span class="variable">url</span>;
<span class="this">this</span>.<span class="variable">methodName</span> = <span class="string">'__turing_jsonp_'</span> + <span class="variable">parseInt</span>(<span class="keyword">new</span> <span class="class">Date</span>().<span class="variable">getTime</span>());
<span class="this">this</span>.<span class="variable">success</span> = <span class="variable">success</span>;
<span class="this">this</span>.<span class="variable">failure</span> = <span class="variable">failure</span>;
<span class="keyword">function</span> <span class="variable">runCallback</span>(<span class="variable">json</span>) {
<span class="variable">self</span>.<span class="variable">success</span>(<span class="variable">json</span>);
<span class="variable">self</span>.<span class="variable">teardown</span>();
}
<span class="variable">window</span>[<span class="this">this</span>.<span class="variable">methodName</span>] = <span class="variable">runCallback</span>;
}
<span class="class">JSONPCallback</span>.<span class="variable">prototype</span>.<span class="variable">run</span> = <span class="keyword">function</span>() {
<span class="this">this</span>.<span class="variable">scriptTag</span> = <span class="variable">document</span>.<span class="variable">createElement</span>(<span class="string">'script'</span>);
<span class="this">this</span>.<span class="variable">scriptTag</span>.<span class="variable">id</span> = <span class="this">this</span>.<span class="variable">methodName</span>;
<span class="this">this</span>.<span class="variable">scriptTag</span>.<span class="variable">src</span> = <span class="this">this</span>.<span class="variable">url</span>.<span class="variable">replace</span>(<span class="string">'{callback}'</span>, <span class="this">this</span>.<span class="variable">methodName</span>);
<span class="variable">document</span>.<span class="variable">body</span>.<span class="variable">appendChild</span>(<span class="this">this</span>.<span class="variable">scriptTag</span>);
}
<span class="class">JSONPCallback</span>.<span class="variable">prototype</span>.<span class="variable">teardown</span> = <span class="keyword">function</span>() {
<span class="variable">window</span>[<span class="this">this</span>.<span class="variable">methodName</span>] = <span class="keyword">null</span>;
<span class="keyword">delete</span> <span class="variable">window</span>[<span class="this">this</span>.<span class="variable">methodName</span>];
<span class="keyword">if</span> (<span class="this">this</span>.<span class="variable">scriptTag</span>) {
<span class="variable">document</span>.<span class="variable">body</span>.<span class="variable">removeChild</span>(<span class="this">this</span>.<span class="variable">scriptTag</span>);
}
}</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>An Ajax GET request.</p>
<pre><code> $t.get('/get-test')
.set('Accept', 'text/html')
.end(function(res) {
assert.equal('Sample text', res.responseText);
});</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> url The URL to request</p></li><li><p><strong>param</strong>: <em>Object</em> options The Ajax request options</p></li><li><p><strong>returns</strong>: <em>Object</em> A chainable object for further configuration</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">net</span>.<span class="variable">get</span> = <span class="keyword">function</span>(<span class="variable">url</span>, <span class="variable">options</span>) {
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">options</span> === <span class="string">'undefined'</span>) <span class="variable">options</span> = {};
<span class="variable">options</span>.<span class="variable">method</span> = <span class="string">'get'</span>;
<span class="keyword">return</span> <span class="variable">ajax</span>(<span class="variable">url</span>, <span class="variable">options</span>);
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>An Ajax POST request.</p>
<pre><code> $t.post('/post-test')
.data({ key: 'value' })
.end(function(res) {
assert.equal('value', res.responseText);
});</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> url The URL to request</p></li><li><p><strong>param</strong>: <em>Object</em> options The Ajax request options (<code>postBody</code> may come in handy here)</p></li><li><p><strong>returns</strong>: <em>Object</em> An object for further chaining with promises</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">net</span>.<span class="variable">post</span> = <span class="keyword">function</span>(<span class="variable">url</span>, <span class="variable">options</span>) {
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">options</span> === <span class="string">'undefined'</span>) <span class="variable">options</span> = {};
<span class="variable">options</span>.<span class="variable">method</span> = <span class="string">'post'</span>;
<span class="keyword">return</span> <span class="variable">ajax</span>(<span class="variable">url</span>, <span class="variable">options</span>);
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>A jsonp request. Example:</p>
<pre><code>var url = 'http://feeds.delicious.com/v1/json/';
url += 'alex_young/javascript?callback={callback}';
turing.net.jsonp(url, {
success: function(json) {
console.log(json);
}
});</code></pre>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> url The URL to request</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">net</span>.<span class="variable">jsonp</span> = <span class="keyword">function</span>(<span class="variable">url</span>, <span class="variable">options</span>) {
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">options</span> === <span class="string">'undefined'</span>) <span class="variable">options</span> = {};
<span class="keyword">var</span> <span class="variable">callback</span> = <span class="keyword">new</span> <span class="class">JSONPCallback</span>(<span class="variable">url</span>, <span class="variable">options</span>.<span class="variable">success</span>, <span class="variable">options</span>.<span class="variable">failure</span>);
<span class="variable">callback</span>.<span class="variable">run</span>();
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>The Ajax methods are mapped to the <code>turing</code> object:</p>
<pre><code> turing.get();
turing.post();
turing.json();
</code></pre>
</td>
<td class="code">
<pre><code><span class="variable">turing</span>.<span class="variable">get</span> = <span class="variable">net</span>.<span class="variable">get</span>;
<span class="variable">turing</span>.<span class="variable">post</span> = <span class="variable">net</span>.<span class="variable">post</span>;
<span class="variable">turing</span>.<span class="variable">jsonp</span> = <span class="variable">net</span>.<span class="variable">jsonp</span>;
<span class="variable">net</span>.<span class="variable">ajax</span> = <span class="variable">ajax</span>;
<span class="variable">turing</span>.<span class="variable">net</span> = <span class="variable">net</span>;
})();
</code></pre>
</td>
</tr><tr class="filename"><td><h2 id="turing.oo.js"><a href="#">turing.oo</a></h2></td><td>turing.oo.js</td></tr><tr class="code">
<td class="docs">
<h2>The Turing Class</h2>
<pre><code>User = turing.Class({
initialize: function(name, age) {
this.name = name;
this.age = age;
}
});
new User('Alice', '26');</code></pre>
<h2>Inheritance</h2>
<p>Pass an object to <code>turing.Class</code> to inherit from it.</p>
<pre><code>SuperUser = turing.Class(User, {
initialize: function() {
this.$super('initialize', arguments);
},
toString: function() {
return "SuperUser: " + this.$super('toString');
}
});</code></pre>
<h2>Mixins</h2>
<p>Objects can be embedded within each other:</p>
<pre><code>MixinUser = turing.Class({
include: User,
initialize: function(log) {
this.log = log;
}
});</code></pre>
</td>
<td class="code">
<pre><code><span class="variable">turing</span>.<span class="class">Class</span> = <span class="keyword">function</span>() {
<span class="keyword">return</span> <span class="variable">turing</span>.<span class="variable">oo</span>.<span class="variable">create</span>.<span class="variable">apply</span>(<span class="this">this</span>, <span class="variable">arguments</span>);
}
<span class="variable">turing</span>.<span class="variable">oo</span> = {
<span class="variable">create</span>: <span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">methods</span> = <span class="keyword">null</span>,
<span class="variable">parent</span> = <span class="variable">undefined</span>,
<span class="variable">klass</span> = <span class="keyword">function</span>() {
<span class="this">this</span>.$<span class="keyword">super</span> = <span class="keyword">function</span>(<span class="variable">method</span>, <span class="variable">args</span>) { <span class="keyword">return</span> <span class="variable">turing</span>.<span class="variable">oo</span>.$<span class="keyword">super</span>(<span class="this">this</span>.$<span class="variable">parent</span>, <span class="this">this</span>, <span class="variable">method</span>, <span class="variable">args</span>); };
<span class="this">this</span>.<span class="variable">initialize</span>.<span class="variable">apply</span>(<span class="this">this</span>, <span class="variable">arguments</span>);
};
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">arguments</span>[<span class="number integer">0</span>] === <span class="string">'function'</span>) {
<span class="variable">parent</span> = <span class="variable">arguments</span>[<span class="number integer">0</span>];
<span class="variable">methods</span> = <span class="variable">arguments</span>[<span class="number integer">1</span>];
} <span class="keyword">else</span> {
<span class="variable">methods</span> = <span class="variable">arguments</span>[<span class="number integer">0</span>];
}
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">parent</span> !== <span class="string">'undefined'</span>) {
<span class="variable">turing</span>.<span class="variable">oo</span>.<span class="variable">extend</span>(<span class="variable">klass</span>.<span class="variable">prototype</span>, <span class="variable">parent</span>.<span class="variable">prototype</span>);
<span class="variable">klass</span>.<span class="variable">prototype</span>.$<span class="variable">parent</span> = <span class="variable">parent</span>.<span class="variable">prototype</span>;
}
<span class="variable">turing</span>.<span class="variable">oo</span>.<span class="variable">mixin</span>(<span class="variable">klass</span>, <span class="variable">methods</span>);
<span class="variable">turing</span>.<span class="variable">oo</span>.<span class="variable">extend</span>(<span class="variable">klass</span>.<span class="variable">prototype</span>, <span class="variable">methods</span>);
<span class="variable">klass</span>.<span class="variable">prototype</span>.<span class="variable">constructor</span> = <span class="variable">klass</span>;
<span class="keyword">if</span> (!<span class="variable">klass</span>.<span class="variable">prototype</span>.<span class="variable">initialize</span>)
<span class="variable">klass</span>.<span class="variable">prototype</span>.<span class="variable">initialize</span> = <span class="keyword">function</span>(){};
<span class="keyword">return</span> <span class="variable">klass</span>;
},
<span class="variable">mixin</span>: <span class="keyword">function</span>(<span class="variable">klass</span>, <span class="variable">methods</span>) {
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">methods</span>.<span class="variable">include</span> !== <span class="string">'undefined'</span>) {
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">methods</span>.<span class="variable">include</span> === <span class="string">'function'</span>) {
<span class="variable">turing</span>.<span class="variable">oo</span>.<span class="variable">extend</span>(<span class="variable">klass</span>.<span class="variable">prototype</span>, <span class="variable">methods</span>.<span class="variable">include</span>.<span class="variable">prototype</span>);
} <span class="keyword">else</span> {
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">i</span> = <span class="number integer">0</span>; <span class="variable">i</span> &<span class="variable">lt</span>; <span class="variable">methods</span>.<span class="variable">include</span>.<span class="variable">length</span>; <span class="variable">i</span>++) {
<span class="variable">turing</span>.<span class="variable">oo</span>.<span class="variable">extend</span>(<span class="variable">klass</span>.<span class="variable">prototype</span>, <span class="variable">methods</span>.<span class="variable">include</span>[<span class="variable">i</span>].<span class="variable">prototype</span>);
}
}
}
},
<span class="variable">extend</span>: <span class="keyword">function</span>(<span class="variable">destination</span>, <span class="variable">source</span>) {
<span class="keyword">for</span> (<span class="keyword">var</span> <span class="variable">property</span> <span class="keyword">in</span> <span class="variable">source</span>)
<span class="variable">destination</span>[<span class="variable">property</span>] = <span class="variable">source</span>[<span class="variable">property</span>];
<span class="keyword">return</span> <span class="variable">destination</span>;
},
$<span class="keyword">super</span>: <span class="keyword">function</span>(<span class="variable">parentClass</span>, <span class="variable">instance</span>, <span class="variable">method</span>, <span class="variable">args</span>) {
<span class="keyword">return</span> <span class="variable">parentClass</span>[<span class="variable">method</span>].<span class="variable">apply</span>(<span class="variable">instance</span>, <span class="variable">args</span>);
}
};
</code></pre>
</td>
</tr><tr class="filename"><td><h2 id="turing.plugins.js"><a href="#">turing.plugins</a></h2></td><td>turing.plugins.js</td></tr><tr class="code">
<td class="docs">
<p>The Turing plugin module.</p>
<p>This is an example plugin:</p>
<pre><code>turing.plugins.register('turnRed', {
name: 'Turn Things Red',
version: '1.0.0',
description: 'Turns the background red',
author: 'Alex Young <[email protected]>',
licenses: [ { type: 'MIT' } ],
turnRed: function() {
this[0].style.backgroundColor = '#ff0000';
return this;
}
});</code></pre>
<p> </p>
</td>
<td class="code">
<pre><code>(<span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">plugins</span> = {};
<span class="variable">plugins</span>.<span class="variable">registered</span> = {};
<span class="variable">plugins</span>.<span class="class">AlreadyRegistered</span> = <span class="class">Error</span>;
<span class="variable">plugins</span>.<span class="class">NotFound</span> = <span class="class">Error</span>;</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Registers a plugin, making it available for
chained DOM calls.</p>
<p>Throws turing.plugins.AlreadyRegistered if a
plugin with the same name has been registered.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> methodName The name of your plugin method </p></li><li><p><strong>param</strong>: <em>Object</em> metadata Your plugin</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">plugins</span>.<span class="variable">register</span> = <span class="keyword">function</span>(<span class="variable">methodName</span>, <span class="variable">metadata</span>) {
<span class="keyword">if</span> (<span class="variable">plugins</span>.<span class="variable">registered</span>[<span class="variable">methodName</span>]) {
<span class="keyword">throw</span> <span class="keyword">new</span> <span class="variable">plugins</span>.<span class="class">AlreadyRegistered</span>(<span class="string">'Already registered a plugin called: '</span> + <span class="variable">methodName</span>);
}
<span class="variable">plugins</span>.<span class="variable">registered</span>[<span class="variable">methodName</span>] = <span class="variable">metadata</span>;
<span class="variable">turing</span>.<span class="variable">domChain</span>[<span class="variable">methodName</span>] = <span class="variable">metadata</span>[<span class="variable">methodName</span>];
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Removes a plugin. Throws turing.plugins.NotFound if
the plugin could not be found.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> methodName The name of the plugin</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">plugins</span>.<span class="variable">remove</span> = <span class="keyword">function</span>(<span class="variable">methodName</span>) {
<span class="keyword">if</span> (!<span class="variable">plugins</span>.<span class="variable">registered</span>.<span class="variable">hasOwnProperty</span>(<span class="variable">methodName</span>)) {
<span class="keyword">throw</span> <span class="keyword">new</span> <span class="variable">plugins</span>.<span class="class">NotFound</span>(<span class="string">'Plugin not found: '</span> + <span class="variable">methodName</span>);
} <span class="keyword">else</span> {
<span class="keyword">delete</span> <span class="variable">plugins</span>.<span class="variable">registered</span>[<span class="variable">methodName</span>]
<span class="keyword">delete</span> <span class="variable">turing</span>.<span class="variable">domChain</span>[<span class="variable">methodName</span>];
}
};
<span class="variable">turing</span>.<span class="variable">plugins</span> = <span class="variable">plugins</span>;
})();
</code></pre>
</td>
</tr><tr class="filename"><td><h2 id="turing.promise.js"><a href="#">turing.promise</a></h2></td><td>turing.promise.js</td></tr><tr class="code">
<td class="docs">
<p>The Turing Promise module.
</p>
</td>
<td class="code">
<pre><code>(<span class="keyword">function</span>() {
<span class="keyword">function</span> <span class="class">PromiseModule</span>(<span class="variable">global</span>) {</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>The Promise class.
</p>
</td>
<td class="code">
<pre><code><span class="keyword">function</span> <span class="class">Promise</span>() {
<span class="keyword">var</span> <span class="variable">self</span> = <span class="this">this</span>;
<span class="this">this</span>.<span class="variable">pending</span> = [];</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Resolves a promise.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> A value</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="this">this</span>.<span class="variable">resolve</span> = <span class="keyword">function</span>(<span class="variable">result</span>) {
<span class="variable">self</span>.<span class="variable">complete</span>(<span class="string">'resolve'</span>, <span class="variable">result</span>);
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Rejects a promise.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> A value</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="this">this</span>.<span class="variable">reject</span> = <span class="keyword">function</span>(<span class="variable">result</span>) {
<span class="variable">self</span>.<span class="variable">complete</span>(<span class="string">'reject'</span>, <span class="variable">result</span>);
}
}
<span class="class">Promise</span>.<span class="variable">prototype</span> = {</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Adds a success and failure handler for completion of this Promise object.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Function</em> success The success handler </p></li><li><p><strong>param</strong>: <em>Function</em> success The failure handler</p></li><li><p><strong>returns</strong>: <em>Promise</em> <code>this</code></p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">then</span>: <span class="keyword">function</span>(<span class="variable">success</span>, <span class="variable">failure</span>) {
<span class="this">this</span>.<span class="variable">pending</span>.<span class="variable">push</span>({ <span class="variable">resolve</span>: <span class="variable">success</span>, <span class="variable">reject</span>: <span class="variable">failure</span> });
<span class="keyword">return</span> <span class="this">this</span>;
},</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Runs through each pending 'thenable' based on type (resolve, reject).</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> type The thenable type</p></li><li><p><strong>param</strong>: <em>Object</em> result A value</p><p> </p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">complete</span>: <span class="keyword">function</span>(<span class="variable">type</span>, <span class="variable">result</span>) {
<span class="keyword">while</span> (<span class="this">this</span>.<span class="variable">pending</span>[<span class="number integer">0</span>]) {
<span class="this">this</span>.<span class="variable">pending</span>.<span class="variable">shift</span>()[<span class="variable">type</span>](<span class="variable">result</span>);
}
}
};</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<h2>Chained Promises</h2>
<pre><code>global().delay(1000).then(function() {
assert.ok((new Date()).valueOf() - start >= 1000);
});
</code></pre>
</td>
<td class="code">
<pre><code><span class="keyword">var</span> <span class="variable">chain</span> = {};
<span class="variable">global</span>.<span class="variable">init</span>(<span class="keyword">function</span>() {
<span class="keyword">if</span> (<span class="variable">arguments</span>.<span class="variable">length</span> === <span class="number integer">0</span>)
<span class="keyword">return</span> <span class="variable">chain</span>;
});
<span class="variable">chain</span>.<span class="variable">delay</span> = <span class="keyword">function</span>(<span class="variable">ms</span>) {
<span class="keyword">var</span> <span class="variable">p</span> = <span class="keyword">new</span> <span class="variable">global</span>.<span class="class">Promise</span>();
<span class="variable">setTimeout</span>(<span class="variable">p</span>.<span class="variable">resolve</span>, <span class="variable">ms</span>);
<span class="keyword">return</span> <span class="variable">p</span>;
};
<span class="variable">global</span>.<span class="class">Promise</span> = <span class="class">Promise</span>;
}
<span class="keyword">if</span> (<span class="keyword">typeof</span> <span class="variable">module</span> !== <span class="string">'undefined'</span>) {
<span class="variable">module</span>.<span class="variable">exports</span> = <span class="keyword">function</span>(<span class="variable">t</span>) {
<span class="keyword">return</span> <span class="class">PromiseModule</span>(<span class="variable">t</span>);
}
} <span class="keyword">else</span> {
<span class="class">PromiseModule</span>(<span class="variable">turing</span>);
}
})();
</code></pre>
</td>
</tr><tr class="filename"><td><h2 id="turing.require.js"><a href="#">turing.require</a></h2></td><td>turing.require.js</td></tr><tr class="code">
<td class="docs">
<p>Contains everything relating to the <code>require</code> module..
</p>
</td>
<td class="code">
<pre><code>(<span class="keyword">function</span>(<span class="variable">global</span>) {
<span class="keyword">var</span> <span class="variable">appendTo</span> = <span class="variable">document</span>.<span class="variable">head</span> || <span class="variable">document</span>.<span class="variable">getElementsByTagName</span>(<span class="string">'head'</span>),
<span class="variable">scriptOptions</span> = [<span class="string">'async'</span>, <span class="string">'defer'</span>, <span class="string">'src'</span>, <span class="string">'text'</span>];</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Used to determine if a script is from the same origin.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> Path to a script</p></li><li><p><strong>return</strong>: <em>Boolean</em> True when <code>src</code> is from the same origin</p></li></ul>
</td>
<td class="code">
<pre><code><span class="keyword">function</span> <span class="variable">isSameOrigin</span>(<span class="variable">src</span>) {
<span class="keyword">return</span> <span class="variable">src</span>.<span class="variable">charAt</span>(<span class="number integer">0</span>) === <span class="string">'/'</span>
|| <span class="variable">src</span>.<span class="variable">indexOf</span>(<span class="variable">location</span>.<span class="variable">protocol</span> + <span class="string">'//'</span> + <span class="variable">location</span>.<span class="variable">host</span>) !== -<span class="number integer">1</span>
|| <span class="variable">false</span>;
}</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Creates a script tag from a set of options.</p>
<p>Options may include: <code>async</code>, <code>defer</code>, <code>src</code>, and <code>text</code>.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>Object</em> The options</p></li><li><p><strong>return</strong>: <em>Object</em> The script tag's DOM object</p></li></ul>
</td>
<td class="code">
<pre><code><span class="keyword">function</span> <span class="variable">createScript</span>(<span class="variable">options</span>) {
<span class="keyword">var</span> <span class="variable">script</span> = <span class="variable">document</span>.<span class="variable">createElement</span>(<span class="string">'script'</span>),
<span class="variable">key</span>;
<span class="keyword">for</span> (<span class="variable">key</span> <span class="keyword">in</span> <span class="variable">scriptOptions</span>) {
<span class="variable">key</span> = <span class="variable">scriptOptions</span>[<span class="variable">key</span>];
<span class="keyword">if</span> (<span class="variable">options</span>[<span class="variable">key</span>]) {
<span class="variable">script</span>[<span class="variable">key</span>] = <span class="variable">options</span>[<span class="variable">key</span>];
}
}
<span class="keyword">return</span> <span class="variable">script</span>;
}</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Inserts a script tag into the document.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> The script tag</p></li></ul>
</td>
<td class="code">
<pre><code><span class="keyword">function</span> <span class="variable">insertScript</span>(<span class="variable">script</span>) {
<span class="variable">appendTo</span>.<span class="variable">insertBefore</span>(<span class="variable">script</span>, <span class="variable">appendTo</span>.<span class="variable">firstChild</span>);
}</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Loads scripts using script tag insertion.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> The script path</p></li><li><p><strong>param</strong>: <em>Object</em> A configuration object</p></li><li><p><strong>param</strong>: <em>Function</em> A callback</p></li></ul>
</td>
<td class="code">
<pre><code><span class="keyword">function</span> <span class="variable">requireWithScriptInsertion</span>(<span class="variable">scriptSrc</span>, <span class="variable">options</span>, <span class="variable">fn</span>) {
<span class="variable">options</span>.<span class="variable">src</span> = <span class="variable">scriptSrc</span>;
<span class="keyword">var</span> <span class="variable">script</span> = <span class="variable">createScript</span>(<span class="variable">options</span>);
<span class="variable">script</span>.<span class="variable">onload</span> = <span class="variable">script</span>.<span class="variable">onreadystatechange</span> = <span class="keyword">function</span>() {
<span class="keyword">if</span> (!<span class="variable">script</span>.<span class="variable">readyState</span> || (<span class="variable">script</span>.<span class="variable">readyState</span> === <span class="string">'complete'</span> || <span class="variable">script</span>.<span class="variable">readyState</span> === <span class="string">'loaded'</span>)) {
<span class="variable">script</span>.<span class="variable">onload</span> = <span class="variable">script</span>.<span class="variable">onreadystatechange</span> = <span class="keyword">null</span>;
<span class="variable">fn</span>();
<span class="variable">appendTo</span>.<span class="variable">removeChild</span>(<span class="variable">script</span>);
}
};
<span class="variable">insertScript</span>(<span class="variable">script</span>, <span class="variable">options</span>, <span class="variable">fn</span>);
}</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Loads scripts using XMLHttpRequest.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> The script path</p></li><li><p><strong>param</strong>: <em>Object</em> A configuration object</p></li><li><p><strong>param</strong>: <em>Function</em> A callback</p></li></ul>
</td>
<td class="code">
<pre><code><span class="keyword">function</span> <span class="variable">requireWithXMLHttpRequest</span>(<span class="variable">scriptSrc</span>, <span class="variable">options</span>, <span class="variable">fn</span>) {
<span class="keyword">if</span> (!<span class="variable">isSameOrigin</span>(<span class="variable">scriptSrc</span>)) {
<span class="keyword">throw</span>(<span class="string">'Scripts loaded with XMLHttpRequest must be from the same origin'</span>);
}
<span class="keyword">if</span> (!<span class="variable">turing</span>.<span class="variable">get</span>) {
<span class="keyword">throw</span>(<span class="string">'Loading scripts with XMLHttpRequest requires turing.net to be loaded'</span>);
}
<span class="variable">turing</span>
.<span class="variable">get</span>(<span class="variable">scriptSrc</span>)
.<span class="variable">end</span>(<span class="keyword">function</span>(<span class="variable">res</span>) {
<span class="variable">options</span>.<span class="variable">text</span> = <span class="variable">res</span>.<span class="variable">responseText</span>;
<span class="keyword">var</span> <span class="variable">script</span> = <span class="variable">createScript</span>(<span class="variable">options</span>);
<span class="variable">insertScript</span>(<span class="variable">script</span>);
<span class="variable">appendTo</span>.<span class="variable">removeChild</span>(<span class="variable">script</span>);
<span class="variable">fn</span>();
});
}</code></pre>
</td>
</tr>
<tr class="code">
<td class="docs">
<p>Non-blocking script loading.</p>
<h2></h2>
<ul><li><p><strong>param</strong>: <em>String</em> The script path</p></li><li><p><strong>param</strong>: <em>Object</em> A configuration object. Options: {Boolean} <code>defer</code>, {Boolean} <code>async</code></p></li><li><p><strong>param</strong>: <em>Function</em> A callback</p></li></ul>
</td>
<td class="code">
<pre><code><span class="variable">turing</span>.<span class="variable">require</span> = <span class="keyword">function</span>(<span class="variable">scriptSrc</span>, <span class="variable">options</span>, <span class="variable">fn</span>) {
<span class="variable">options</span> = <span class="variable">options</span> || {};
<span class="variable">fn</span> = <span class="variable">fn</span> || <span class="keyword">function</span>() {};
<span class="variable">setTimeout</span>(<span class="keyword">function</span>() {
<span class="keyword">if</span> (<span class="string">'item'</span> <span class="keyword">in</span> <span class="variable">appendTo</span>) {
<span class="keyword">if</span> (!<span class="variable">appendTo</span>[<span class="number integer">0</span>]) {
<span class="keyword">return</span> <span class="variable">setTimeout</span>(<span class="variable">arguments</span>.<span class="variable">callee</span>, <span class="number integer">25</span>);
}
<span class="variable">appendTo</span> = <span class="variable">appendTo</span>[<span class="number integer">0</span>];
}
<span class="keyword">switch</span> (<span class="variable">options</span>.<span class="variable">transport</span>) {
<span class="keyword">case</span> <span class="string">'XMLHttpRequest'</span>:
<span class="keyword">return</span> <span class="variable">requireWithXMLHttpRequest</span>(<span class="variable">scriptSrc</span>, <span class="variable">options</span>, <span class="variable">fn</span>);
<span class="keyword">case</span> <span class="string">'scriptInsertion'</span>:
<span class="keyword">return</span> <span class="variable">requireWithScriptInsertion</span>(<span class="variable">scriptSrc</span>, <span class="variable">options</span>, <span class="variable">fn</span>);
<span class="keyword">default</span>:
<span class="keyword">return</span> <span class="variable">requireWithScriptInsertion</span>(<span class="variable">scriptSrc</span>, <span class="variable">options</span>, <span class="variable">fn</span>);
}
});
};
<span class="variable">turing</span>.<span class="variable">require</span>.<span class="variable">isSameOrigin</span> = <span class="variable">isSameOrigin</span>;
}(<span class="variable">window</span>));
</code></pre>
</td>
</tr><tr class="filename"><td><h2 id="turing.touch.js"><a href="#">turing.touch</a></h2></td><td>turing.touch.js</td></tr><tr class="code">
<td class="docs">
<p>Support for touchscreen devices. Run <code>turing.touch.register()</code> to get touch event support.</p>
<h2>Tap</h2>
<pre><code>turing.events.add(element, 'tap', function(e) {
alert('tap');
});</code></pre>
<h2>Swipe</h2>
<pre><code>turing.events.add(element, 'swipe', function(e) {
alert('swipe');
});</code></pre>
<h2>Orientation Changes</h2>
<p>Device orientation is available in <code>turing.touch.orientation()</code>.</p>
<pre><code>turing.events.add(element, 'orientationchange', function(e) {
alert('Orientation is now: ' + turing.touch.orientation());
});</code></pre>
<p> </p>
</td>
<td class="code">
<pre><code>(<span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">touch</span> = {}, <span class="variable">state</span> = {};
<span class="variable">touch</span>.<span class="variable">swipeThreshold</span> = <span class="number integer">50</span>;
<span class="comment">// Returns [orientation angle, orientation string]</span>
<span class="variable">touch</span>.<span class="variable">orientation</span> = <span class="keyword">function</span>() {
<span class="keyword">var</span> <span class="variable">orientation</span> = <span class="variable">window</span>.<span class="variable">orientation</span>,
<span class="variable">orientationString</span> = <span class="string">''</span>;
<span class="keyword">switch</span> (<span class="variable">orientation</span>) {
<span class="keyword">case</span> <span class="number integer">0</span>:
<span class="variable">orientationString</span> += <span class="string">'portrait'</span>;
<span class="keyword">break</span>;
<span class="keyword">case</span> -<span class="number integer">90</span>:
<span class="variable">orientationString</span> += <span class="string">'landscape right'</span>;
<span class="keyword">break</span>;
<span class="keyword">case</span> <span class="number integer">90</span>:
<span class="variable">orientationString</span> += <span class="string">'landscape left'</span>;
<span class="keyword">break</span>;
<span class="keyword">case</span> <span class="number integer">180</span>:
<span class="variable">orientationString</span> += <span class="string">'portrait upside-down'</span>;
<span class="keyword">break</span>;
}
<span class="keyword">return</span> [<span class="variable">orientation</span>, <span class="variable">orientationString</span>];
};
<span class="keyword">function</span> <span class="variable">touchStart</span>(<span class="variable">e</span>) {
<span class="variable">state</span>.<span class="variable">touches</span> = <span class="variable">e</span>.<span class="variable">touches</span>;
<span class="variable">state</span>.<span class="variable">startTime</span> = (<span class="keyword">new</span> <span class="class">Date</span>).<span class="variable">getTime</span>();
<span class="variable">state</span>.<span class="variable">x</span> = <span class="variable">e</span>.<span class="variable">changedTouches</span>[<span class="number integer">0</span>].<span class="variable">clientX</span>;
<span class="variable">state</span>.<span class="variable">y</span> = <span class="variable">e</span>.<span class="variable">changedTouches</span>[<span class="number integer">0</span>].<span class="variable">clientY</span>;
<span class="variable">state</span>.<span class="variable">startX</span> = <span class="variable">state</span>.<span class="variable">x</span>;
<span class="variable">state</span>.<span class="variable">startY</span> = <span class="variable">state</span>.<span class="variable">y</span>;
<span class="variable">state</span>.<span class="variable">target</span> = <span class="variable">e</span>.<span class="variable">target</span>;
<span class="variable">state</span>.<span class="variable">duration</span> = <span class="number integer">0</span>;
}
<span class="keyword">function</span> <span class="variable">touchEnd</span>(<span class="variable">e</span>) {
<span class="keyword">var</span> <span class="variable">x</span> = <span class="variable">e</span>.<span class="variable">changedTouches</span>[<span class="number integer">0</span>].<span class="variable">clientX</span>,
<span class="variable">y</span> = <span class="variable">e</span>.<span class="variable">changedTouches</span>[<span class="number integer">0</span>].<span class="variable">clientY</span>;
<span class="keyword">if</span> (<span class="variable">state</span>.<span class="variable">x</span> === <span class="variable">x</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">state</span>.<span class="variable">y</span> === <span class="variable">y</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">state</span>.<span class="variable">touches</span>.<span class="variable">length</span> == <span class="number integer">1</span>) {
<span class="variable">turing</span>.<span class="variable">events</span>.<span class="variable">fire</span>(<span class="variable">e</span>.<span class="variable">target</span>, <span class="string">'tap'</span>);
}
}
<span class="keyword">function</span> <span class="variable">touchMove</span>(<span class="variable">e</span>) {
<span class="keyword">var</span> <span class="variable">moved</span> = <span class="number integer">0</span>, <span class="variable">touch</span> = <span class="variable">e</span>.<span class="variable">changedTouches</span>[<span class="number integer">0</span>];
<span class="variable">state</span>.<span class="variable">duration</span> = (<span class="keyword">new</span> <span class="class">Date</span>).<span class="variable">getTime</span>() - <span class="variable">state</span>.<span class="variable">startTime</span>;
<span class="variable">state</span>.<span class="variable">x</span> = <span class="variable">state</span>.<span class="variable">startX</span> - <span class="variable">touch</span>.<span class="variable">pageX</span>;
<span class="variable">state</span>.<span class="variable">y</span> = <span class="variable">state</span>.<span class="variable">startY</span> - <span class="variable">touch</span>.<span class="variable">pageY</span>;
<span class="variable">moved</span> = <span class="class">Math</span>.<span class="variable">sqrt</span>(<span class="class">Math</span>.<span class="variable">pow</span>(<span class="class">Math</span>.<span class="variable">abs</span>(<span class="variable">state</span>.<span class="variable">x</span>), <span class="number integer">2</span>) + <span class="class">Math</span>.<span class="variable">pow</span>(<span class="class">Math</span>.<span class="variable">abs</span>(<span class="variable">state</span>.<span class="variable">y</span>), <span class="number integer">2</span>));
<span class="keyword">if</span> (<span class="variable">state</span>.<span class="variable">duration</span> &<span class="variable">lt</span>; <span class="number integer">1000</span> &<span class="variable">amp</span>;&<span class="variable">amp</span>; <span class="variable">moved</span> &<span class="variable">gt</span>; <span class="variable">turing</span>.<span class="variable">touch</span>.<span class="variable">swipeThreshold</span>) {
<span class="variable">turing</span>.<span class="variable">events</span>.<span class="variable">fire</span>(<span class="variable">e</span>.<span class="variable">target</span>, <span class="string">'swipe'</span>);
}
}
<span class="comment">// register must be called to register for touch event helpers</span>
<span class="variable">touch</span>.<span class="variable">register</span> = <span class="keyword">function</span>() {
<span class="variable">turing</span>.<span class="variable">events</span>.<span class="variable">add</span>(<span class="variable">document</span>, <span class="string">'touchstart'</span>, <span class="variable">touchStart</span>);
<span class="variable">turing</span>.<span class="variable">events</span>.<span class="variable">add</span>(<span class="variable">document</span>, <span class="string">'touchmove'</span>, <span class="variable">touchMove</span>);
<span class="variable">turing</span>.<span class="variable">events</span>.<span class="variable">add</span>(<span class="variable">document</span>, <span class="string">'touchend'</span>, <span class="variable">touchEnd</span>);
<span class="variable">turing</span>.<span class="variable">touch</span>.<span class="variable">swipeThreshold</span> = <span class="variable">screen</span>.<span class="variable">width</span> / <span class="number integer">5</span>;
};
<span class="variable">turing</span>.<span class="variable">touch</span> = <span class="variable">touch</span>;
})();
</code></pre>
</td>
</tr> </body>
</html></tbody></table> | alexyoung/turing.js | docs/index.html | HTML | mit | 305,704 |
<html>
<head>
<title>Rob Stewart's panel show appearances</title>
<script type="text/javascript" src="../common.js"></script>
<link rel="stylesheet" media="all" href="../style.css" type="text/css"/>
<script type="text/javascript" src="../people.js"></script>
<!--#include virtual="head.txt" -->
</head>
<body>
<!--#include virtual="nav.txt" -->
<div class="page">
<h1>Rob Stewart's panel show appearances</h1>
<p>Rob Stewart has appeared in <span class="total">1</span> episodes between 2008-2008. Note that these appearances may be for more than one person if multiple people have the same name.</p>
<div class="performerholder">
<table class="performer">
<tr style="vertical-align:bottom;">
<td><div style="height:100px;" class="performances male" title="1"></div><span class="year">2008</span></td>
</tr>
</table>
</div>
<ol class="episodes">
<li><strong>2008-05-23</strong> / <a href="../shows/loosewomen.html">Loose Women</a></li>
</ol>
</div>
</body>
</html>
| slowe/panelshows | people/151dj4bf.html | HTML | mit | 990 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
/* Body style, for the entire document */
body {
background: #F3F3F4;
color: #1E1E1F;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
padding: 0;
margin: 0;
}
/* Header1 style, used for the main title */
h1 {
padding: 10px 0px 10px 10px;
font-size: 21pt;
background-color: #E2E2E2;
border-bottom: 1px #C1C1C2 solid;
color: #201F20;
margin: 0;
font-weight: normal;
}
/* Header2 style, used for "Overview" and other sections */
h2 {
font-size: 18pt;
font-weight: normal;
padding: 15px 0 5px 0;
margin: 0;
}
/* Header3 style, used for sub-sections, such as project name */
h3 {
font-weight: normal;
font-size: 15pt;
margin: 0;
padding: 15px 0 5px 0;
background-color: transparent;
}
h4 {
font-weight: normal;
font-size: 12pt;
margin: 0;
padding: 0 0 0 0;
background-color: transparent;
}
/* Color all hyperlinks one color */
a {
color: #1382CE;
}
/* Paragraph text (for longer informational messages) */
p {
font-size: 10pt;
}
/* Table styles */
table {
border-spacing: 0 0;
border-collapse: collapse;
font-size: 10pt;
}
table th {
background: #E7E7E8;
text-align: left;
text-decoration: none;
font-weight: normal;
padding: 3px 6px 3px 6px;
}
table td {
vertical-align: top;
padding: 3px 6px 5px 5px;
margin: 0px;
border: 1px solid #E7E7E8;
background: #F7F7F8;
}
.NoBreakingChanges {
color: darkgreen;
font-weight:bold;
}
.FewBreakingChanges {
color: orange;
font-weight:bold;
}
.ManyBreakingChanges {
color: red;
font-weight:bold;
}
.BreakDetails {
margin-left: 30px;
}
.CompatMessage {
font-style: italic;
font-size: 10pt;
}
.GoodMessage {
color: darkgreen;
}
/* Local link is a style for hyperlinks that link to file:/// content, there are lots so color them as 'normal' text until the user mouse overs */
.localLink {
color: #1E1E1F;
background: #EEEEED;
text-decoration: none;
}
.localLink:hover {
color: #1382CE;
background: #FFFF99;
text-decoration: none;
}
/* Center text, used in the over views cells that contain message level counts */
.textCentered {
text-align: center;
}
/* The message cells in message tables should take up all avaliable space */
.messageCell {
width: 100%;
}
/* Padding around the content after the h1 */
#content {
padding: 0px 12px 12px 12px;
}
/* The overview table expands to width, with a max width of 97% */
#overview table {
width: auto;
max-width: 75%;
}
/* The messages tables are always 97% width */
#messages table {
width: 97%;
}
/* All Icons */
.IconSuccessEncoded, .IconInfoEncoded, .IconWarningEncoded, .IconErrorEncoded {
min-width: 18px;
min-height: 18px;
background-repeat: no-repeat;
background-position: center;
}
/* Success icon encoded */
.IconSuccessEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconSuccess#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABPElEQVR4Xp1Tv0vDUBi8FqeA4NpBcBLcWnQSApncOnTo4FSnjP0DsnXpH5CxiwbHDg4Zuj4oOEXiJgiC4FDcCkLWmIMc1Pfw+eMgQ77v3Xf3Pe51YKGqqisAEwCR1TIAsiAIblSo6xrdHeJR85Xle3mdmCQKb0PsfqyxxzM8K15HZADl/H5+sHpZwYfxyRjTs+kWwKBx8yoHd2mRiuzF8mkJniWH/13u3Fjrs/EdhsdDFHGB/DLXEJBDLh1MWPAhPo1BLB4WX5yQywHR+m3tVe/t97D52CB/ziG0nIgD/qDuYg8WuCcVZ2YGwlJ3YDugkpR/VNcAEx6GEKhERSr71FuO4YCM4XBdwKvecjIlkSnsO0Hyp/GxSeJAdzBKzpOtnPwyyiPdAZhpZptT04tU+zk7s8czeges//s5C5+CwqrR4/gw+AAAAABJRU5ErkJggg==);
}
/* Information icon encoded */
.IconInfoEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconInformation#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABHElEQVR4Xs2TsUoDQRRF7wwoziokjZUKadInhdhukR9YP8DMX1hYW+QvdsXa/QHBbcXC7W0CamWTQnclFutceIQJwwaWNLlwm5k5d94M76mmaeCrrmsLYOocY12FcxZFUeozCqKqqgYA8uevv1H6VuPxcwlfk5N92KHBxfFeCSAxxswlYAW/Xr989x/mv9gkhtyMDhcAxgzRsp7flj8B/HF1RsMXq+NZMkopaHe7lbKxQUEIGbKsYNoGn969060hZBkQex/W8oRQwsQaW2o3Ago2SVcJUzAgY3N0lTCZZm+zPS8HB51gMmS1DEYyOz9acKO1D8JWTlafKIMxdhvlfdyT94Vv5h7P8Ky7nQzACmhvKq3zk3PjW9asz9D/1oigecsioooAAAAASUVORK5CYII=);
}
/* Warning icon encoded */
.IconWarningEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconWarning#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAx0lEQVR4XpWSMQ7CMAxFf4xAyBMLCxMrO8dhaBcuwdCJS3RJBw7SA/QGTCxdWJgiQYWKXJWKIXHIlyw5lqr34tQgEOdcBsCOx5yZK3hCCKdYXneQkh4pEfqzLfu+wVDSyyzFoJjfz9NB+pAF+eizx2Vruts0k15mPgvS6GYvpVtQhB61IB/dk6AF6fS4Ben0uIX5odtFe8Q/eW1KvFeH4e8khT6+gm5B+t3juyDt7n0jpe+CANTd+oTUjN/U3yVaABnSUjFz/gFq44JaVSCXeQAAAABJRU5ErkJggg==);
}
/* Error icon encoded */
.IconErrorEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconError#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABQElEQVR4XqWTvUoEQRCE6wYPZUA80AfwAQz23uCMjA7MDRQEIzPBVEyNTQUFIw00vcQTTMzuAh/AxEQQT8HF/3G/oGGnEUGuoNnd6qoZuqltyKEsyzVJq5I6rnUp6SjGeGhESikzzlc1eL7opfuVbrqbU1Zw9NCgtQMaZpY0eNnaaL2fHusvTK5vKu7sjSS1Y4y3QUA6K3e3Mau5UFDyMP7tYF9o8cAHZv68vipoIJg971PZIZ5HiwdvYGGvFVFHmGmZ2MxwmQYPXubPl9Up0tfoMQGetXd6mRbvhBw+boZ6WF7Mbv1+GsHRk0fQmPAH1GfmZirbCfDJ61tw3Px8/8pZsPAG4jlVhcPgZ7adwNWBB68lkRQWFiTgFlbnLY3DGGM7izIJIyT/jjIvEJw6fdJTc6krDzh6aMwMP9bvDH4ADSsa9uSWVJkAAAAASUVORK5CYII=);
}
</style>
</head>
<body>
<h1 _locid="PortabilityReport">.NET Portability Report</h1>
<div id="content">
<div id="submissionId" style="font-size:8pt;">
<p>
<i>
Submission Id
f2838346-713c-4eaf-a407-b0da742e9c96
</i>
</p>
</div>
<h2 _locid="SummaryTitle">
<a name="Portability Summary"></a>Portability Summary
</h2>
<div id="summary">
<table>
<tbody>
<tr>
<th>Assembly</th>
<th>ASP.NET 5,Version=v1.0</th>
<th>Windows,Version=v8.1</th>
<th>.NET Framework,Version=v4.6</th>
<th>Windows Phone,Version=v8.1</th>
</tr>
<tr>
<td><strong><a href="#Pathoschild.WebApi.Nhibernate-odata">Pathoschild.WebApi.Nhibernate-odata</a></strong></td>
<td class="text-center">90.67 %</td>
<td class="text-center">87.33 %</td>
<td class="text-center">90.67 %</td>
<td class="text-center">87.33 %</td>
</tr>
</tbody>
</table>
</div>
<div id="details">
<a name="Pathoschild.WebApi.Nhibernate-odata"><h3>Pathoschild.WebApi.Nhibernate-odata</h3></a>
<table>
<tbody>
<tr>
<th>Target type</th>
<th>ASP.NET 5,Version=v1.0</th>
<th>Windows,Version=v8.1</th>
<th>.NET Framework,Version=v4.6</th>
<th>Windows Phone,Version=v8.1</th>
<th>Recommended changes</th>
</tr>
<tr>
<td>System.Net.Http.HttpResponseMessageExtensions</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">TryGetContentValue``1(System.Net.Http.HttpResponseMessage,``0@)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Net.Http.ObjectContent</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_ObjectType</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Value</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">set_Value(System.Object)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.BindingFlags</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Type</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">GetGenericArguments</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">GetMethod(System.String,System.Reflection.BindingFlags)</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Equivalent available: Add using for System.Reflection, and reference System.Reflection.TypeExtensions </td>
</tr>
<tr>
<td style="padding-left:2em">GetMethods(System.Reflection.BindingFlags)</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">IsAssignableFrom(System.Type)</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Web.Http.ApiController</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Web.Http.Controllers.HttpControllerContext</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Controller</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Web.Http.Controllers.IHttpController</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Web.Http.Filters.ActionFilterAttribute</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Web.Http.Filters.HttpActionExecutedContext</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Response</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
<p>
<a href="#Portability Summary">Back to Summary</a>
</p>
</div>
</div>
</body>
</html> | kuhlenh/port-to-core | Reports/pa/pathoschild.webapi.nhibernate-odata.0.2.0/Pathoschild.WebApi.Nhibernate-odata-net45.html | HTML | mit | 22,628 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Calculator Programmer View</title>
<link rel="stylesheet" href="Styles.css" />
</head>
<body>
<section>
<div id="menu">
<span class="menu-choice"><span class="first-letter">V</span>iew</span>
<span class="menu-choice"><span class="first-letter">E</span>dit</span>
<span class="menu-choice"><span class="first-letter">H</span>elp</span>
</div>
<div id="main-content">
<table>
<tr>
<td colspan="2">
<form>
<input type="text" class="doubleBorder" value="8854455" />
</form>
</td>
</tr>
<tr>
<td colspan="2">
<table id="binaryRep" class="doubleBorder" >
<tr>
<td>0000</td>
<td>0000</td>
<td>0000</td>
<td>0000</td>
<td>0000</td>
<td>0000</td>
<td>0000</td>
<td>0000</td>
</tr>
<tr>
<td class="binPositionColor" colspan="4">63</td>
<td class="binPositionColor" colspan="3">47</td>
<td class="rightBinPosition binPositionColor">32</td>
</tr>
<tr>
<td>0000</td>
<td>0000</td>
<td>1000</td>
<td>0111</td>
<td>0001</td>
<td>1011</td>
<td>1011</td>
<td>0111</td>
</tr>
<tr>
<td class="binPositionColor" colspan="4">31</td>
<td class="binPositionColor" colspan="3">15</td>
<td class="rightBinPosition binPositionColor">0</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<form class="numSystem">
<input type="radio" name="numSystem" id="hex" />
<label for="hex">Hex</label><br />
<input type="radio" name="numSystem" id="dec" checked />
<label for="dec">Dec</label><br />
<input type="radio" name="numSystem" id="oct" />
<label for="oct">Oct</label><br />
<input type="radio" name="numSystem" id="bin" />
<label for="bin">Bin</label>
</form>
</td>
<td rowspan="2">
<table>
<tr>
<td><button type="button" disabled></button></td>
<td><button type="button" class="gradient1 doubleBorder">Mod</button></td>
<td><button type="button" class="letter" disabled>A</button></td>
<td><button class="mCell doubleBorder" type="button">MC</button></td>
<td><button class="mCell doubleBorder" type="button">MR</button></td>
<td><button class="mCell doubleBorder" type="button">MS</button></td>
<td><button class="mCell doubleBorder" type="button">M+</button></td>
<td><button class="mCell doubleBorder" type="button">M-</button></td>
</tr>
<tr>
<td><button type="button" class="gradient1 doubleBorder">(</button></td>
<td><button type="button" class="gradient1 doubleBorder">)</button></td>
<td><button type="button" class="letter" disabled>B</button></td>
<td><button type="button" class="gradient1 doubleBorder"><span id="backspace">←</span></button></td>
<td><button type="button" class="gradient1 doubleBorder">CE</button></td>
<td><button type="button" class="gradient1 doubleBorder">C</button></td>
<td><button type="button" class="gradient1 doubleBorder">±</button></td>
<td><button type="button" disabled>√</button></td>
</tr>
<tr>
<td><button type="button" class="gradient1 doubleBorder">RoL</button></td>
<td><button type="button" class="gradient1 doubleBorder">RoR</button></td>
<td><button type="button" class="letter" disabled>C</button></td>
<td><button type="button" class="digit doubleBorder">7</button></td>
<td><button type="button" class="digit doubleBorder">8</button></td>
<td><button type="button" class="digit doubleBorder">9</button></td>
<td><button type="button" class="gradient1 doubleBorder">/</button></td>
<td><button type="button" disabled>%</button></td>
</tr>
<tr>
<td><button type="button" class="gradient1 doubleBorder">Or</button></td>
<td><button type="button" class="gradient1 doubleBorder">Xor</button></td>
<td><button type="button" class="letter" disabled>D</button></td>
<td><button type="button" class="digit doubleBorder">4</button></td>
<td><button type="button" class="digit doubleBorder">5</button></td>
<td><button type="button" class="digit doubleBorder">6</button></td>
<td><button type="button" class="operator gradient1 doubleBorder">*</button></td>
<td><button type="button" disabled>1/x</button></td>
</tr>
<tr>
<td><button type="button" class="gradient1 doubleBorder">Lsh</button></td>
<td><button type="button" class="gradient1 doubleBorder">Rsh</button></td>
<td><button type="button" class="letter" disabled>E</button></td>
<td><button type="button" class="digit doubleBorder">1</button></td>
<td><button type="button" class="digit doubleBorder">2</button></td>
<td><button type="button" class="digit doubleBorder">3</button></td>
<td><button type="button" class="operator gradient1 doubleBorder">-</button></td>
<td rowspan="2"><button type="button" id="equals" class="gradient1 doubleBorder">=</button></td>
</tr>
<tr>
<td><button type="button" class="gradient1 doubleBorder">Not</button></td>
<td><button type="button" class="gradient1 doubleBorder">And</button></td>
<td><button type="button" class="letter" disabled>F</button></td>
<td colspan="2"><button type="button" id="zero" class="digit doubleBorder">0</button></td>
<td><button type="button" disabled>.</button></td>
<td><button type="button" class="operator gradient1 doubleBorder">+</button></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<form class="word">
<input type="radio" name="binLength" id="qword" checked />
<label for="qword">Qword</label><br />
<input type="radio" name="binLength" id="dword" />
<label for="dword">Dword</label><br />
<input type="radio" name="binLength" id="word" />
<label for="word">Word</label><br />
<input type="radio" name="binLength" id="byte" />
<label for="byte">Byte</label>
</form>
</td>
</tr>
</table>
</div>
</section>
</body>
</html> | vladislav-karamfilov/TelerikAcademy | CSS Projects/Homework-CSS-Presentation/Exercise-4/Calculator.html | HTML | mit | 9,332 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>INSPINIA | Sparkline Charts</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="font-awesome/css/font-awesome.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div id="wrapper">
<nav class="navbar-default navbar-static-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav metismenu" id="side-menu">
<li class="nav-header">
<div class="dropdown profile-element"> <span>
<img alt="image" class="img-circle" src="img/profile_small.jpg" />
</span>
<a data-toggle="dropdown" class="dropdown-toggle" href="graph_sparkline.html#">
<span class="clear"> <span class="block m-t-xs"> <strong class="font-bold">David Williams</strong>
</span> <span class="text-muted text-xs block">Art Director <b class="caret"></b></span> </span> </a>
<ul class="dropdown-menu animated fadeInRight m-t-xs">
<li><a href="profile.html">Profile</a></li>
<li><a href="contacts.html">Contacts</a></li>
<li><a href="mailbox.html">Mailbox</a></li>
<li class="divider"></li>
<li><a href="login.html">Logout</a></li>
</ul>
</div>
<div class="logo-element">
IN+
</div>
</li>
<li>
<a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">Dashboards</span> <span class="fa arrow"></span></a>
<ul class="nav nav-second-level collapse">
<li><a href="index.html">Dashboard v.1</a></li>
<li><a href="dashboard_2.html">Dashboard v.2</a></li>
<li><a href="dashboard_3.html">Dashboard v.3</a></li>
<li><a href="dashboard_4_1.html">Dashboard v.4</a></li>
<li><a href="dashboard_5.html">Dashboard v.5 <span class="label label-primary pull-right">NEW</span></a></li>
</ul>
</li>
<li>
<a href="layouts.html"><i class="fa fa-diamond"></i> <span class="nav-label">Layouts</span></a>
</li>
<li class="active">
<a href="graph_sparkline.html#"><i class="fa fa-bar-chart-o"></i> <span class="nav-label">Graphs</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li><a href="graph_flot.html">Flot Charts</a></li>
<li><a href="graph_morris.html">Morris.js Charts</a></li>
<li><a href="graph_rickshaw.html">Rickshaw Charts</a></li>
<li><a href="graph_chartjs.html">Chart.js</a></li>
<li><a href="graph_chartist.html">Chartist</a></li>
<li><a href="c3.html">c3 charts</a></li>
<li><a href="graph_peity.html">Peity Charts</a></li>
<li class="active"><a href="graph_sparkline.html">Sparkline Charts</a></li>
</ul>
</li>
<li>
<a href="mailbox.html"><i class="fa fa-envelope"></i> <span class="nav-label">Mailbox </span><span class="label label-warning pull-right">16/24</span></a>
<ul class="nav nav-second-level collapse">
<li><a href="mailbox.html">Inbox</a></li>
<li><a href="mail_detail.html">Email view</a></li>
<li><a href="mail_compose.html">Compose email</a></li>
<li><a href="email_template.html">Email templates</a></li>
</ul>
</li>
<li>
<a href="metrics.html"><i class="fa fa-pie-chart"></i> <span class="nav-label">Metrics</span> </a>
</li>
<li>
<a href="widgets.html"><i class="fa fa-flask"></i> <span class="nav-label">Widgets</span></a>
</li>
<li>
<a href="graph_sparkline.html#"><i class="fa fa-edit"></i> <span class="nav-label">Forms</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level collapse">
<li><a href="form_basic.html">Basic form</a></li>
<li><a href="form_advanced.html">Advanced Plugins</a></li>
<li><a href="form_wizard.html">Wizard</a></li>
<li><a href="form_file_upload.html">File Upload</a></li>
<li><a href="form_editors.html">Text Editor</a></li>
<li><a href="form_markdown.html">Markdown</a></li>
</ul>
</li>
<li>
<a href="graph_sparkline.html#"><i class="fa fa-desktop"></i> <span class="nav-label">App Views</span> <span class="pull-right label label-primary">SPECIAL</span></a>
<ul class="nav nav-second-level collapse">
<li><a href="contacts.html">Contacts</a></li>
<li><a href="profile.html">Profile</a></li>
<li><a href="profile_2.html">Profile v.2</a></li>
<li><a href="contacts_2.html">Contacts v.2</a></li>
<li><a href="projects.html">Projects</a></li>
<li><a href="project_detail.html">Project detail</a></li>
<li><a href="teams_board.html">Teams board</a></li>
<li><a href="social_feed.html">Social feed</a></li>
<li><a href="clients.html">Clients</a></li>
<li><a href="full_height.html">Outlook view</a></li>
<li><a href="vote_list.html">Vote list</a></li>
<li><a href="file_manager.html">File manager</a></li>
<li><a href="calendar.html">Calendar</a></li>
<li><a href="issue_tracker.html">Issue tracker</a></li>
<li><a href="blog.html">Blog</a></li>
<li><a href="article.html">Article</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="timeline.html">Timeline</a></li>
<li><a href="pin_board.html">Pin board</a></li>
</ul>
</li>
<li>
<a href="graph_sparkline.html#"><i class="fa fa-files-o"></i> <span class="nav-label">Other Pages</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level collapse">
<li><a href="search_results.html">Search results</a></li>
<li><a href="lockscreen.html">Lockscreen</a></li>
<li><a href="invoice.html">Invoice</a></li>
<li><a href="login.html">Login</a></li>
<li><a href="login_two_columns.html">Login v.2</a></li>
<li><a href="forgot_password.html">Forget password</a></li>
<li><a href="register.html">Register</a></li>
<li><a href="404.html">404 Page</a></li>
<li><a href="500.html">500 Page</a></li>
<li><a href="empty_page.html">Empty page</a></li>
</ul>
</li>
<li>
<a href="graph_sparkline.html#"><i class="fa fa-globe"></i> <span class="nav-label">Miscellaneous</span><span class="label label-info pull-right">NEW</span></a>
<ul class="nav nav-second-level collapse">
<li><a href="toastr_notifications.html">Notification</a></li>
<li><a href="nestable_list.html">Nestable list</a></li>
<li><a href="agile_board.html">Agile board</a></li>
<li><a href="timeline_2.html">Timeline v.2</a></li>
<li><a href="diff.html">Diff</a></li>
<li><a href="i18support.html">i18 support</a></li>
<li><a href="sweetalert.html">Sweet alert</a></li>
<li><a href="idle_timer.html">Idle timer</a></li>
<li><a href="truncate.html">Truncate</a></li>
<li><a href="spinners.html">Spinners</a></li>
<li><a href="tinycon.html">Live favicon</a></li>
<li><a href="google_maps.html">Google maps</a></li>
<li><a href="code_editor.html">Code editor</a></li>
<li><a href="modal_window.html">Modal window</a></li>
<li><a href="clipboard.html">Clipboard</a></li>
<li><a href="forum_main.html">Forum view</a></li>
<li><a href="validation.html">Validation</a></li>
<li><a href="tree_view.html">Tree view</a></li>
<li><a href="loading_buttons.html">Loading buttons</a></li>
<li><a href="chat_view.html">Chat view</a></li>
<li><a href="masonry.html">Masonry</a></li>
<li><a href="tour.html">Tour</a></li>
</ul>
</li>
<li>
<a href="graph_sparkline.html#"><i class="fa fa-flask"></i> <span class="nav-label">UI Elements</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level collapse">
<li><a href="typography.html">Typography</a></li>
<li><a href="icons.html">Icons</a></li>
<li><a href="draggable_panels.html">Draggable Panels</a></li> <li><a href="resizeable_panels.html">Resizeable Panels</a></li>
<li><a href="buttons.html">Buttons</a></li>
<li><a href="video.html">Video</a></li>
<li><a href="tabs_panels.html">Panels</a></li>
<li><a href="tabs.html">Tabs</a></li>
<li><a href="notifications.html">Notifications & Tooltips</a></li>
<li><a href="badges_labels.html">Badges, Labels, Progress</a></li>
</ul>
</li>
<li>
<a href="grid_options.html"><i class="fa fa-laptop"></i> <span class="nav-label">Grid options</span></a>
</li>
<li>
<a href="graph_sparkline.html#"><i class="fa fa-table"></i> <span class="nav-label">Tables</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level collapse">
<li><a href="table_basic.html">Static Tables</a></li>
<li><a href="table_data_tables.html">Data Tables</a></li>
<li><a href="table_foo_table.html">Foo Tables</a></li>
<li><a href="jq_grid.html">jqGrid</a></li>
</ul>
</li>
<li>
<a href="graph_sparkline.html#"><i class="fa fa-shopping-cart"></i> <span class="nav-label">E-commerce</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level collapse">
<li><a href="ecommerce_products_grid.html">Products grid</a></li>
<li><a href="ecommerce_product_list.html">Products list</a></li>
<li><a href="ecommerce_product.html">Product edit</a></li>
<li><a href="ecommerce_product_detail.html">Product detail</a></li>
<li><a href="ecommerce-cart.html">Cart</a></li>
<li><a href="ecommerce-orders.html">Orders</a></li>
<li><a href="ecommerce_payments.html">Credit Card form</a></li>
</ul>
</li>
<li>
<a href="graph_sparkline.html#"><i class="fa fa-picture-o"></i> <span class="nav-label">Gallery</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level collapse">
<li><a href="basic_gallery.html">Lightbox Gallery</a></li>
<li><a href="slick_carousel.html">Slick Carousel</a></li>
<li><a href="carousel.html">Bootstrap Carousel</a></li>
</ul>
</li>
<li>
<a href="graph_sparkline.html#"><i class="fa fa-sitemap"></i> <span class="nav-label">Menu Levels </span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level collapse">
<li>
<a href="graph_sparkline.html#">Third Level <span class="fa arrow"></span></a>
<ul class="nav nav-third-level">
<li>
<a href="graph_sparkline.html#">Third Level Item</a>
</li>
<li>
<a href="graph_sparkline.html#">Third Level Item</a>
</li>
<li>
<a href="graph_sparkline.html#">Third Level Item</a>
</li>
</ul>
</li>
<li><a href="graph_sparkline.html#">Second Level Item</a></li>
<li>
<a href="graph_sparkline.html#">Second Level Item</a></li>
<li>
<a href="graph_sparkline.html#">Second Level Item</a></li>
</ul>
</li>
<li>
<a href="css_animation.html"><i class="fa fa-magic"></i> <span class="nav-label">CSS Animations </span><span class="label label-info pull-right">62</span></a>
</li>
<li class="landing_link">
<a target="_blank" href="landing.html"><i class="fa fa-star"></i> <span class="nav-label">Landing Page</span> <span class="label label-warning pull-right">NEW</span></a>
</li>
<li class="special_link">
<a href="package.html"><i class="fa fa-database"></i> <span class="nav-label">Package</span></a>
</li>
</ul>
</div>
</nav>
<div id="page-wrapper" class="gray-bg">
<div class="row border-bottom">
<nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="graph_sparkline.html#"><i class="fa fa-bars"></i> </a>
<form role="search" class="navbar-form-custom" action="search_results.html">
<div class="form-group">
<input type="text" placeholder="Search for something..." class="form-control" name="top-search" id="top-search">
</div>
</form>
</div>
<ul class="nav navbar-top-links navbar-right">
<li>
<span class="m-r-sm text-muted welcome-message">Welcome to INSPINIA+ Admin Theme.</span>
</li>
<li class="dropdown">
<a class="dropdown-toggle count-info" data-toggle="dropdown" href="graph_sparkline.html#">
<i class="fa fa-envelope"></i> <span class="label label-warning">16</span>
</a>
<ul class="dropdown-menu dropdown-messages">
<li>
<div class="dropdown-messages-box">
<a href="profile.html" class="pull-left">
<img alt="image" class="img-circle" src="img/a7.jpg">
</a>
<div class="media-body">
<small class="pull-right">46h ago</small>
<strong>Mike Loreipsum</strong> started following <strong>Monica Smith</strong>. <br>
<small class="text-muted">3 days ago at 7:58 pm - 10.06.2014</small>
</div>
</div>
</li>
<li class="divider"></li>
<li>
<div class="dropdown-messages-box">
<a href="profile.html" class="pull-left">
<img alt="image" class="img-circle" src="img/a4.jpg">
</a>
<div class="media-body ">
<small class="pull-right text-navy">5h ago</small>
<strong>Chris Johnatan Overtunk</strong> started following <strong>Monica Smith</strong>. <br>
<small class="text-muted">Yesterday 1:21 pm - 11.06.2014</small>
</div>
</div>
</li>
<li class="divider"></li>
<li>
<div class="dropdown-messages-box">
<a href="profile.html" class="pull-left">
<img alt="image" class="img-circle" src="img/profile.jpg">
</a>
<div class="media-body ">
<small class="pull-right">23h ago</small>
<strong>Monica Smith</strong> love <strong>Kim Smith</strong>. <br>
<small class="text-muted">2 days ago at 2:30 am - 11.06.2014</small>
</div>
</div>
</li>
<li class="divider"></li>
<li>
<div class="text-center link-block">
<a href="mailbox.html">
<i class="fa fa-envelope"></i> <strong>Read All Messages</strong>
</a>
</div>
</li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle count-info" data-toggle="dropdown" href="graph_sparkline.html#">
<i class="fa fa-bell"></i> <span class="label label-primary">8</span>
</a>
<ul class="dropdown-menu dropdown-alerts">
<li>
<a href="mailbox.html">
<div>
<i class="fa fa-envelope fa-fw"></i> You have 16 messages
<span class="pull-right text-muted small">4 minutes ago</span>
</div>
</a>
</li>
<li class="divider"></li>
<li>
<a href="profile.html">
<div>
<i class="fa fa-twitter fa-fw"></i> 3 New Followers
<span class="pull-right text-muted small">12 minutes ago</span>
</div>
</a>
</li>
<li class="divider"></li>
<li>
<a href="grid_options.html">
<div>
<i class="fa fa-upload fa-fw"></i> Server Rebooted
<span class="pull-right text-muted small">4 minutes ago</span>
</div>
</a>
</li>
<li class="divider"></li>
<li>
<div class="text-center link-block">
<a href="notifications.html">
<strong>See All Alerts</strong>
<i class="fa fa-angle-right"></i>
</a>
</div>
</li>
</ul>
</li>
<li>
<a href="login.html">
<i class="fa fa-sign-out"></i> Log out
</a>
</li>
</ul>
</nav>
</div>
<div class="row wrapper border-bottom white-bg page-heading">
<div class="col-lg-10">
<h2>Sparkline Charts</h2>
<ol class="breadcrumb">
<li>
<a href="index.html">Home</a>
</li>
<li>
<a>Graphs</a>
</li>
<li class="active">
<strong>Sparkline Charts</strong>
</li>
</ol>
</div>
<div class="col-lg-2">
</div>
</div>
<div class="wrapper wrapper-content animated fadeInDown">
<div class="row">
<div class="col-lg-5">
<div class="jumbotron">
<h1>Sparkline</h1>
<p>It's another graet library for inline graphics visualization.</p>
<p><a href="http://omnipotent.net/jquery.sparkline" target="_blank" class="btn btn-primary btn-lg" role="button">Learn more about Sparkline</a>
</p>
</div>
</div>
<div class="col-lg-7">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>Sparkline Charts <small>With custom colors.</small></h5>
<div class="ibox-tools">
<a class="close-link">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div >
<table class="table table-bordered white-bg">
<thead>
<tr>
<th>Graph</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span id="sparkline1"></span>
</td>
<td>
Inline line chart
</td>
</tr>
<tr>
<td>
<span id="sparkline2"></span>
</td>
<td>
Bar chart
</td>
</tr>
<tr>
<td>
<span id="sparkline3"></span>
</td>
<td>
Pie chart
</td>
</tr>
<tr>
<td>
<span id="sparkline4"></span>
</td>
<td>
Long inline chart
</td>
</tr>
<tr>
<td>
<span id="sparkline5"></span>
</td>
<td>
Tristate chart
</td>
</tr>
<tr>
<td>
<span id="sparkline6"></span>
</td>
<td>
Discrete chart
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>Custom pie size example</h5>
<div class="ibox-tools">
<a class="collapse-link">
<i class="fa fa-chevron-up"></i>
</a>
<a class="dropdown-toggle" data-toggle="dropdown" href="graph_sparkline.html#">
<i class="fa fa-wrench"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="graph_sparkline.html#">Config option 1</a>
</li>
<li><a href="graph_sparkline.html#">Config option 2</a>
</li>
</ul>
<a class="close-link">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div class="ibox-content text-center h-200">
<span id="sparkline7"></span>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>Custom bar size example</h5>
<div class="ibox-tools">
<a class="collapse-link">
<i class="fa fa-chevron-up"></i>
</a>
<a class="dropdown-toggle" data-toggle="dropdown" href="graph_sparkline.html#">
<i class="fa fa-wrench"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="graph_sparkline.html#">Config option 1</a>
</li>
<li><a href="graph_sparkline.html#">Config option 2</a>
</li>
</ul>
<a class="close-link">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div class="ibox-content text-center h-200">
<span id="sparkline8"></span>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>Custom line size example</h5>
<div class="ibox-tools">
<a class="collapse-link">
<i class="fa fa-chevron-up"></i>
</a>
<a class="dropdown-toggle" data-toggle="dropdown" href="graph_sparkline.html#">
<i class="fa fa-wrench"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="graph_sparkline.html#">Config option 1</a>
</li>
<li><a href="graph_sparkline.html#">Config option 2</a>
</li>
</ul>
<a class="close-link">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div class="ibox-content text-center h-200">
<span id="sparkline9"></span>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="pull-right">
10GB of <strong>250GB</strong> Free.
</div>
<div>
<strong>Copyright</strong> Example Company © 2014-2015
</div>
</div>
</div>
</div>
<!-- Mainly scripts -->
<script src="js/jquery-2.1.1.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<!-- Sparkline -->
<script src="js/plugins/sparkline/jquery.sparkline.min.js"></script>
<!-- Custom and plugin javascript -->
<script src="js/inspinia.js"></script>
<script src="js/plugins/pace/pace.min.js"></script>
<!-- Sparkline demo data -->
<script src="js/demo/sparkline-demo.js"></script>
</body>
</html>
| rtx3/deyun.io | smwds/templates/graph_sparkline.html | HTML | mit | 31,806 |
<!doctype html>
<html lang="en" ng-app="kidClock">
<head>
<meta charset="utf-8">
<title>Kid Wall Clock</title>
<link rel="stylesheet" href="css/app.css"/>
<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.1/css/bootstrap.min.css" rel="stylesheet">
<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.1/css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="//mgcrea.github.com/angular-strap/css/prettify.css" rel="stylesheet">
<link href="//mgcrea.github.com/angular-strap/vendor/bootstrap-datepicker.css" rel="stylesheet">
<link href="//mgcrea.github.com/angular-strap/vendor/bootstrap-timepicker.css" rel="stylesheet">
<!-- required libraries -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
<script src="/lib/angular-strap-0.7.8/dist/angular-strap.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.4.0/moment.min.js"></script>
</head>
<body>
<div ng-view id="main-content"></div>
<footer>
<a href="#/config">Settings</a>
</footer>
<!-- my libraries -->
<script src="js/app.js"></script>
<script src="js/services.js"></script>
<script src="js/controllers.js"></script>
<script src="js/filters.js"></script>
<script src="js/directives.js"></script>
</body>
</html>
| leopd/kidclock | app/index.html | HTML | mit | 1,639 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Tyler Schmidt</title>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="css/stylish-portfolio.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Navigation -->
<a id="menu-toggle" href="#" class="btn btn-dark btn-lg toggle"><i class="fa fa-bars"></i></a>
<nav id="sidebar-wrapper">
<ul class="sidebar-nav">
<a id="menu-close" href="#" class="btn btn-light btn-lg pull-right toggle"><i class="fa fa-times"></i></a>
<li class="sidebar-brand">
<a href="#top" onclick=$("#menu-close").click();>Tyler Schmidt</a>
</li>
<li>
<a href="index.html" onclick=$("#menu-close").click();>Home</a>
</li>
<li>
<a href="resume.html" onclick=$("#menu-close").click();>Resume</a>
</li>
<li>
<a href="#footer" onclick=$("#menu-close").click();>Contact</a>
</li>
</ul>
</nav>
<!-- Header -->
<header id="top" class="beerheader">
<div class="text-vertical-center">
<h1>Beer Labels and Marketing</h1>
</div>
</header>
<!-- About -->
<section id="about" class="about">
<div class="container">
<div class="row">
<div class="col-lg-12 text-left">
<!-- <h3 class="text-center">Pacifico Cerveza</h3>
<img class="portfolio-img" src="http://www.fillmurray.com/g/900/400">
<p class="lead">
Filler text - pacifico winter event and burton us open of snowboarding pieces
</p> -->
<h1 class="text-center">Revolution Brewing</h1>
<img class="portfolio-img" src="img/dethstar.png">
<p class="lead">While working for Mighty Few, I had the opportunity to collaborate on the design on labels and cans for Revolution Brewing, as well as several marketing materials.
</p>
<img class="portfolio-img" src="img/localhero.png">
<p class="lead">The biggest challenge of working on Revolution projects is balancing their refined brand. Revolution takes imagery from punk and diy aesthetic as well propaganda materials but keeping them refined and modern looking without ever getting too rough or unrefined.
</p>
<h1 class="text-center">Goose Island</h1>
<img class="portfolio-img" src="img/2moreweeks.jpg">
<p class="lead">During my time with Mighty Few, I also was able to assist with the design for Labels, several marketing materials for Goose Island Brewing Co, including Posters for their barrel Aged Beers and T-shirts for their events.
</p>
<img class="portfolio-img" src="img/leisuresuit.jpg">
<p class="lead">The largest issue to tackle with these projects was bridging the brand and identity that Goose Island had long established and was known for with the look and feel they wanted to move towards. Goose Island in it’s initial days took large inspiration from British beer design in many of it’s labels and iconography. However, with new beers like 312 pushing their image in different, more modern directions as well as staying relevant to a younger audience, Goose wanted to see a newer take on their established look.
</p>
<img class="portfolio-img" src="img/kisetsu.jpg">
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container -->
</section>
<!-- projects -->
<!-- <aside class="callout1">
<div class="text-vertical-center1">
<h1>Tappist</h1>
</div>
</aside>
<aside class="callout2">
<div class="text-vertical-center1">
<h1>Beer Labels and Marketing</h1>
</div>
</aside>
<aside class="callout3">
<div class="text-vertical-center1">
<h1>It's 5 o clock somewhere</h1>
</div>
</aside>
<aside class="callout4">
<div class="text-vertical-center1">
<h1>Sleep Cycle</h1>
</div>
</aside>
<aside class="callout5">
<div class="text-vertical-center1">
<h1>Branding</h1>
</div>
</aside> -->
<!-- Footer -->
<footer id="footer" class="footer">
<div class="container">
<div class="row">
<div class="col-lg-10 col-lg-offset-1 text-center">
<h4><strong>Wanna get in touch?</strong>
</h4>
<ul class="list-unstyled">
<li><i class="fa fa-envelope-o fa-fw"></i> <a href="mailto:[email protected]">[email protected]</a>
</li>
</ul>
<br>
<ul class="list-inline">
<li>
<a href="https://github.com/thedoorkeep/"><i class="fa fa-github fa-fw fa-3x"></i></a>
</li>
<li>
<a href="https://www.behance.net/thedoorkee8638"><i class="fa fa-behance fa-fw fa-3x"></i></a>
</li>
</ul>
</div>
</div>
</div>
<a id="to-top" href="#top" class="btn btn-dark btn-lg"><i class="fa fa-chevron-up fa-fw fa-1x"></i></a>
</footer>
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<!-- Custom Theme JavaScript -->
<script>
// Closes the sidebar menu
$("#menu-close").click(function(e) {
e.preventDefault();
$("#sidebar-wrapper").toggleClass("active");
});
// Opens the sidebar menu
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#sidebar-wrapper").toggleClass("active");
});
// Scrolls to the selected menu item on the page
$(function() {
$('a[href*=#]:not([href=#],[data-toggle],[data-target],[data-slide])').click(function() {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') || location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
});
//#to-top button appears after scrolling
var fixed = false;
$(document).scroll(function() {
if ($(this).scrollTop() > 250) {
if (!fixed) {
fixed = true;
// $('#to-top').css({position:'fixed', display:'block'});
$('#to-top').show("slow", function() {
$('#to-top').css({
position: 'fixed',
display: 'block'
});
});
}
} else {
if (fixed) {
fixed = false;
$('#to-top').hide("slow", function() {
$('#to-top').css({
display: 'none'
});
});
}
}
});
// Disable Google Maps scrolling
// See http://stackoverflow.com/a/25904582/1607849
// Disable scroll zooming and bind back the click event
var onMapMouseleaveHandler = function(event) {
var that = $(this);
that.on('click', onMapClickHandler);
that.off('mouseleave', onMapMouseleaveHandler);
that.find('iframe').css("pointer-events", "none");
}
var onMapClickHandler = function(event) {
var that = $(this);
// Disable the click handler until the user leaves the map area
that.off('click', onMapClickHandler);
// Enable scrolling zoom
that.find('iframe').css("pointer-events", "auto");
// Handle the mouse leave event
that.on('mouseleave', onMapMouseleaveHandler);
}
// Enable map zooming with mouse scroll when the user clicks the map
$('.map').on('click', onMapClickHandler);
</script>
</body>
</html>
| thedoorkeep/thedoorkeep.github.io | beer.html | HTML | mit | 9,577 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Open Knowledge">
<meta name="description" content="The state of government open data in Guinea for Election Results in 2014
">
<meta name="keywords" content="Guinea, Election Results, 2014, Open Government, Open Data, Government Transparency, Open Knowledge
">
<meta property="og:type" content="website"/>
<meta property="og:title" content="Open Data Index - Open Knowledge"/>
<meta property="og:site_name" content="Open Data Index"/>
<meta property="og:description"
content="The state of government open data in Guinea for Election Results in 2014"/>
<meta property="og:image" content="/static/images/favicon.ico"/>
<title>Guinea / Election Results (2014) | Global Open Data Index by Open Knowledge</title>
<base href="/">
<!--[if lt IE 9]>
<script src="/static/vendor/html5shiv.min.js"></script>
<![endif]-->
<link rel="stylesheet" href="/static/css/site.css">
<link rel="icon" href="/static/images/favicon.ico">
<script>
var siteUrl = '';
</script>
</head>
<body class="place_dataset">
<div class="fixed-ok-panel">
<div id="ok-panel" class="closed">
<iframe src="http://assets.okfn.org/themes/okfn/okf-panel.html" scrolling="no"></iframe>
</div>
<a class="ok-ribbon"><img src="http://okfnlabs.org/ok-panel/assets/images/ok-ribbon.png" alt="Open Knowledge"></a>
</div>
<header id="header">
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<div>
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="logo">
<a href="/">
<img src="/static/images/logo2.png">
<span>Global<br/>Open Data Index</span>
</a>
</div>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="nav navbar-nav" style="margin-right: 132px;">
<li>
<a href="/place/" title="About the Open Data Index project">
Places
</a>
</li>
<li>
<a href="/dataset/" title="About the Open Data Index project">
Datasets
</a>
</li>
<li>
<a href="/download/" title="Download Open Data Index data">
Download
</a>
</li>
<li>
<a href="/insights/" title="Insights">
Insights
</a>
</li>
<li>
<a href="/methodology/"
title="The methodology behind the Open Data Index">
Methodology
</a>
</li>
<li>
<a href="/about/" title="About the Open Data Index project">
About
</a>
</li>
<li>
<a href="/press/"
title="Press information for the Open Data Index">
Press
</a>
</li>
</ul>
</div>
</div>
</div>
</nav>
</header>
<div class="container">
<div class="content">
<div class="row">
<div class="col-md-12">
<ol class="breadcrumb">
<li>
<a href="/">Home</a>
</li>
<li><a href="/place">Places</a></li>
<li><a href="/place/guinea/">Guinea</a></li>
<li class="active">Election Results</li>
</ol>
<section id="data-header">
<div class="row">
<div class="col-md-6">
<h1>
<a href="/dataset/elections/" title="See more data on Election Results in the Open Data Index">Election Results</a> / <a href="/place/2014/" title="See more Index data in 2014">2014</a> <span class="place-openness" data-score="45">45% open</span>
</h1>
<h3>
<a href="/place/guinea/" title="See more data on Guinea in the Open Data Index">Guinea</a>
</h3>
<!--div class="col-md-12 place-rank statistics">
<span class="">Guinea is ranked #51 for this dataset</span>
</div>
<div class="row relative">
</div-->
<div class="row navigate">
<div class="col-md-12">
<h4 class="inline">See other years</h4>
<div class=" inline">
<a class="" href="/place/guinea/elections/" title="Current">Current</a>
<a class="" href="/place/guinea/elections/2013/" title="2013">2013</a>
</div>
</div>
<div class="col-md-12">
<h4>Share or embed this page</h4>
<div class="btn-group">
<a href="" class="btn btn-default embed" data-toggle="modal" data-target="#embed-instructions">
<i class="fa fa-code"></i> Embed
</a>
<a href="http://twitter.com/share?url=/place/guinea/elections/2014/&text=Check out this data from the Global Open Data Index" class="btn btn-default twitter" target="_blank">
<i class="fa fa-twitter"></i> Twitter </a>
<a href="http://www.facebook.com/sharer/sharer.php?u=/place/guinea/elections/2014/" class="btn btn-default facebook" target="_blank">
<i class="fa fa-facebook"></i> Facebook </a>
<a href="https://plus.google.com/share?url=/place/guinea/elections/2014/" class="btn btn-default google-plus" target="_blank">
<i class="fa fa-google-plus"></i> Google+ </a>
</div>
<div class="modal fade" id="embed-instructions" tabindex="-1" role="dialog" aria-labelledby="embedLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="embedLabel">Map embed code</h4>
</div>
<div class="modal-body">
<p>
Use the following code to embed the map visualisation into your own website.
</p>
<xmp contenteditable="true"><iframe width="100%" height="360px" src="/vis/map/embed/?embed_width=100%&embed_height=360px&filter_year=2014&filter_dataset=elections&panel_tools=false&panel_share=false&embed_title=Guinea ; Election Results ; 2014&map_place=gn" frameBorder="0"></iframe></xmp>
<p>
If you are a developer, you can read more about the embed options here: <a href="https://github.com/okfn/opendataindex/#choropleth-map" title="Embed options">Embed options</a>
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div id="map-container">
<iframe width="100%" height="360px" src="/vis/map/embed/?embed_width=100%&embed_height=360px&filter_year=2014&filter_dataset=elections&panel_tools=false&panel_share=false&embed_title=Guinea ; Election Results ; 2014&map_place=gn" frameBorder="0"></iframe> </div>
</div>
</div>
</section>
<hr />
<section class="dataset-about">
<div class="row">
<div class="col-md-12">
<h3>What data is expected?</h3>
<p>This data category requires results by constituency / district for all major national electoral contests. To satisfy this category, the following minimum criteria must be met:</p>
<ul>
<li>Result for all major electoral contests</li>
<li>Number of registered votes</li>
<li>Number of invalid votes</li>
<li>Number of spoiled ballots</li>
<li>All data should be reported at the level of the polling station</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h3>What data is available</h3>
</div>
<div class="col-md-6">
<ul class="availability-single">
<li class="no" data-toggle="popover" title="<h4><p>Openly licensed? </p></h4>" data-content="<p>The licence must comply with the Open Definition which allows data to be freely used, reused and redistributed. The Open Definition provides a list of conformant licences. If the data uses one of these licences, it is openly licensed.</p>
<p>Licences are commonly found in:</p>
<ul>
<li>the web page footer</li>
<li>a link to Terms &amp; Conditions</li>
<li>the About section</li>
</ul>
<p>Some licences may allow re-use and redistribution but have not been assessed as conformant with the Open Definition. In this case, seek feedback on the Open Data Index discussion forum</p>" data-placement="right">
<i class="fa fa-unlock-alt pointer" title="Click for more information"></i>
Openly licensed? No (No URL given) </li>
<li class="yes" data-toggle="popover" title="<h4><p>Is the data available for free? </p></h4>" data-content="<p>The data is free if you don’t have to pay for it.</p>" data-placement="right">
<i class="fa fa-dollar pointer" title="Click for more information"></i>
Is the data available for free? Yes </li>
<li class="no" data-toggle="popover" title="<h4><p>Is the data machine readable? </p></h4>" data-content="<p>All files are digital, but not all can be processed or parsed easily by a computer. In order to answer this question, you would need to look at the file type of the dataset. As a rule of thumb the following file types are machine readable:</p>
<ul>
<li>XLS</li>
<li>CSV</li>
<li>JSON</li>
<li>XML</li>
</ul>
<p>The following formats are NOT machine readable:</p>
<ul>
<li>HTML</li>
<li>PDF</li>
<li>DOC</li>
<li>JIF</li>
<li>JPEG</li>
<li>PPT</li>
</ul>
<p>If you have a different file type and you don’t know if it’s machine readable or not, ask in the Open Data Census forum</p>" data-placement="right">
<i class="fa fa-keyboard-o pointer" title="Click for more information"></i>
Is the data machine readable? No (n/a)
</li>
<li class="no" data-toggle="popover" title="<h4><p>Available in bulk? </p></h4>" data-content="<p>Data is available in bulk if the whole dataset can be downloaded easily. It is considered non-bulk if the citizens are limited to getting parts of the dataset through an online interface.</p>
<p>For example, if restricted to querying a web form and retrieving a few results at a time from a very large database.</p>" data-placement="right">
<i class="fa fa-copy pointer" title="Click for more information"></i>
Available in bulk? No </li>
<li class="yes" data-toggle="popover" title="<h4><p>Is the data provided on a timely and up to date basis? </p></h4>" data-content="<p>Is the data current for the census year? You can determine or estimate when the data was last updated and its update frequency by reviewing:</p>
<ul>
<li>the metadata displayed for the data in an open data portal or web page</li>
<li>the dataset title or filename e.g. Budget 2013-14 or Election_4July2015.csv</li>
<li>metadata tags embedded in the web page that contains the data</li>
<li>date values within the data to find the most recent date value</li>
<li>the timestamp on the data file (although this may not be accurate)</li>
<li>Some data is not updated on a regular basis. e.g. Pollutant emissions may be updated daily - while postal codes may not change for many years. </li>
</ul>
<p>You may need to use your judgement to determine if the data is timely and up to date. Document your rationale in the comments section.</p>
<p>If you cannot determine a date, answer, &quot;NO&quot; i.e. the data is not timely or up-to-date.</p>" data-placement="right">
<i class="fa fa-clock-o pointer" title="Click for more information"></i>
Is the data provided on a timely and up to date basis? Yes </li>
<li class="yes" data-toggle="popover" title="<h4><p>Publicly available? </p></h4>" data-content="<p>Can the data be accessed by the public without restrictions? Data is considered publicly available when:</p>
<ul>
<li>It can be accessed online without the need for a password or permissions.</li>
<li>If the data is in paper form, can be accessed by the public, and there is no restrictions on the number of photocopies that can be made.</li>
</ul>
<p>Data is <strong>NOT</strong> publicly available when:</p>
<ul>
<li>It is only made available after making a request.</li>
<li>It was availiable because of FOIA. </li>
<li>It can only be accessed by government officials.</li>
</ul>" data-placement="right">
<i class="fa fa-eye pointer" title="Click for more information"></i>
Publicly available? Yes published by COMMISSION ELECTORALE NATIONALE INDEPENDANTE (CENI)</a>) </li>
<li class="yes" data-toggle="popover" title="<h4><p>Is data in digital form? </p></h4>" data-content="<p>Data can be in a digital format, but not accessible online. For example: A country budget can be stored on a spreadsheet or otherwise on a private government network, but not on the Internet. This means that the data is digital, but not publicly available. If you know that the data is digital somewhere inside the government (e.g. a government official tells you so), then you should answer “YES” to this question and note in the comment section how you discovered the data is in digital form.</p>" data-placement="right">
<i class="fa fa-save pointer" title="Click for more information"></i>
Is data in digital form? Yes </li>
<li class="yes" data-toggle="popover" title="<h4><p>Is the data available online? </p></h4>" data-content="<p>Data is online if it can be accessed via the Internet (e.g. a website or open data portal). If the data has been emailed to you but is not accessible via the Internet, it is not considered to be available online.</p>" data-placement="right">
<i class="fa fa-download pointer" title="Click for more information"></i>
Is the data available online? Yes (<a href="http://www.presidentielle2010.ceniguinee.org/doc/resultatsprovisoiressecondtour.pdf">Here</a>) </li>
<li class="yes" data-toggle="popover" title="<h4><p>Does the data exist? </p></h4>" data-content="<p>Data must come from an official resource either issued directly by the government or by a third party officially representing the government. Data offered by companies, citizen initiatives or any non-governmental organisation do not count for the Index.</p>
<p>If the government has given the right to publish the data to third parties, a submission with a link a to third party site is allowed. The third-party site must explicitly state that the data has been commissioned by the government. Check if the organization has an agreement with the government to be the official source and make a note in the comment section.</p>" data-placement="right">
<i class="fa fa-file-o pointer" title="Click for more information"></i>
Does the data exist? Yes </li>
</ul>
</div>
<div class="col-md-6">
<h4><strong>Details</strong></h4>
<p>Results for first and last presidential election of the country are available online in pdf format. However, only preliminary results are available for 2nd round.</p>
<h4><strong>Reviewer comments</strong></h4>
<p>Corrected unsure to no.</p>
</div>
</div>
</section>
<section id="place-contributors">
<div class="row">
<h2>Contributors</h2>
<div class="col-md-6">
<h4>Reviewers</h4>
<ul>
<li>Pierre Chrzanowski</li>
</ul>
</div>
<div class="col-md-6">
<h4>Submitters</h4>
<ul>
<li>Pierre Chrzanowski</li>
</ul>
</div>
</div>
</section>
</div>
</div>
</div>
</div>
<footer id="footer">
<div class="container">
<div class="row">
<div class="footer-main col-md-8">
<div class="footer-attribution">
<p>
<a href="http://opendefinition.org/ossd/" title="Open Online Software Service">
<img src="http://assets.okfn.org/images/ok_buttons/os_80x15_orange_grey.png" alt=""
border=""/>
</a>
<a href="http://opendefinition.org/okd/" title="Open Online Software Service">
<img src="http://assets.okfn.org/images/ok_buttons/od_80x15_blue.png" alt="" border=""/>
</a>
<a href="http://opendefinition.org/okd/" title="Open Content">
<img src="http://assets.okfn.org/images/ok_buttons/oc_80x15_blue.png" alt="" border=""/>
</a>
–
<a href="http://creativecommons.org/licenses/by/3.0/"
title="Content Licensed under a CC Attribution"></a>
<a href="http://opendatacommons.org/licenses/pddl/1.0"
title="Data License (Public Domain)">Data License (Public
Domain)</a>
</p>
</div>
<div class="footer-meta">
<p>
This service is run by <a href="https://okfn.org/" title="Open Knowledge">Open Knowledge</a>
</p> <a class="naked" href="http://okfn.org/" title="Open Knowledge"><img
src="http://assets.okfn.org/p/okfn/img/okfn-logo-landscape-black-s.png" alt="" height="28"></a>
</div>
</div>
<div class="footer-links col-md-2">
<li><a href="http://okfn.org/" title="Open Knowledge">Open Knowledge</a></li>
<li><a href="http://okfn.org/opendata/" title="What is Open Data?">What is
Open Data?</a></li>
<li><a href="http://census.okfn.org/" title="Run your own Index">Run your
own Index</a></li>
<li><a href="https://github.com/okfn/opendataindex" title="The source code for Open Data Index">Source Code</a></li>
</div>
<div class="footer-links col-md-2">
<li><a href="/" title="Open Data Index home">Home</a></li>
<li><a href="/download/" title="Download data">Download</a></li>
<li><a href="/methodology/"
title="The methodology behind the Open Data Index">Methodology</a></li>
<li><a href="/faq/" title=" Open Data Index FAQ">FAQ</a></li>
<li><a href="/about/" title="About the Open Data Index">About</a></li>
<li><a href="/about/" title="Contact us">Contact</a></li>
<li><a href="/press/" title="Press">Press</a></li>
</div>
</div>
</div>
</footer>
<script data-main="/static/scripts/site" src="/static/scripts/require.js"></script>
</body>
</html> | okfn/opendataindex-2015 | place/guinea/elections/2014/index.html | HTML | mit | 21,542 |
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="stylesheet" type="text/css" href="bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="main.css">
<script src="jquery-2.1.3.min.js"></script>
<script src="qrcode.min.js"></script>
<script src="popup.js"></script>
</head>
<body>
<div class="container text-center">
<div class="row">
<div class="col-xs-12">
<div class="buffer25"></div>
</div>
<div class="col-xs-12">
<div class="alert" role="alert"></div>
</div>
<div class="col-xs-12">
<div id="qr" class="img-thumbnail"></div>
</div>
<div class="col-xs-12">
<div class="buffer25"></div>
</div>
<div class="col-xs-12">
<form id="qrForm">
<div class="form-group">
<div class="input-group">
<input type="text" id="text" class="form-control" placeholder="Text to convert" />
<span class="input-group-btn">
<button class="btn btn-primary" type="submit">Convert</button>
</span>
</div>
</div>
<button type="button" id="thisPage" class="btn btn-success btn-block">Link to this page</button>
</form>
</div>
<div class="col-xs-12">
<div class="buffer25"></div>
</div>
</div>
</div>
</body>
</html>
| benny-ng/ThisQR | popup.html | HTML | mit | 1,439 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>csrRacing2</title>
<!-- Standardised web app manifest -->
<link rel="manifest" href="appmanifest.json" />
<!-- Allow fullscreen mode on iOS devices. (These are Apple specific meta tags.) -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="apple-touch-icon" sizes="256x256" href="icon-256.png" />
<meta name="HandheldFriendly" content="true" />
<!-- Chrome for Android web app tags -->
<meta name="mobile-web-app-capable" content="yes" />
<link rel="shortcut icon" sizes="256x256" href="icon-256.png" />
<!-- All margins and padding must be zero for the canvas to fill the screen. -->
<style type="text/css">
* {
padding: 0;
margin: 0;
}
html, body {
background: #000;
color: #fff;
overflow: hidden;
touch-action: none;
-ms-touch-action: none;
}
canvas {
touch-action-delay: none;
touch-action: none;
-ms-touch-action: none;
}
</style>
</head>
<body>
<div id="fb-root"></div>
<script>
// Issue a warning if trying to preview an exported project on disk.
(function(){
// Check for running exported on file protocol
if (window.location.protocol.substr(0, 4) === "file")
{
alert("Exported games won't work until you upload them. (When running on the file:/// protocol, browsers block many features from working for security reasons.)");
}
})();
</script>
<!-- The canvas must be inside a div called c2canvasdiv -->
<div id="c2canvasdiv">
<!-- The canvas the project will render to. If you change its ID, don't forget to change the
ID the runtime looks for in the jQuery events above (ready() and cr_sizeCanvas()). -->
<canvas id="c2canvas" width="320" height="568">
<!-- This text is displayed if the visitor's browser does not support HTML5.
You can change it, but it is a good idea to link to a description of a browser
and provide some links to download some popular HTML5-compatible browsers. -->
<h1>Your browser does not appear to support HTML5. Try upgrading your browser to the latest version. <a href="http://www.whatbrowser.org">What is a browser?</a>
<br/><br/><a href="http://www.microsoft.com/windows/internet-explorer/default.aspx">Microsoft Internet Explorer</a><br/>
<a href="http://www.mozilla.com/firefox/">Mozilla Firefox</a><br/>
<a href="http://www.google.com/chrome/">Google Chrome</a><br/>
<a href="http://www.apple.com/safari/download/">Apple Safari</a></h1>
</canvas>
</div>
<!-- Pages load faster with scripts at the bottom -->
<!-- Construct 2 exported games require jQuery. -->
<script src="jquery-2.1.1.min.js"></script>
<!-- The runtime script. You can rename it, but don't forget to rename the reference here as well.
This file will have been minified and obfuscated if you enabled "Minify script" during export. -->
<script src="c2runtime.js"></script>
<script>
// Start the Construct 2 project running on window load.
jQuery(document).ready(function ()
{
// Create new runtime using the c2canvas
cr_createRuntime("c2canvas");
});
// Pause and resume on page becoming visible/invisible
function onVisibilityChanged() {
if (document.hidden || document.mozHidden || document.webkitHidden || document.msHidden)
cr_setSuspended(true);
else
cr_setSuspended(false);
};
document.addEventListener("visibilitychange", onVisibilityChanged, false);
document.addEventListener("mozvisibilitychange", onVisibilityChanged, false);
document.addEventListener("webkitvisibilitychange", onVisibilityChanged, false);
document.addEventListener("msvisibilitychange", onVisibilityChanged, false);
function OnRegisterSWError(e)
{
console.warn("Failed to register service worker: ", e);
};
// Runtime calls this global method when ready to start caching (i.e. after startup).
// This registers the service worker which caches resources for offline support.
window.C2_RegisterSW = function C2_RegisterSW()
{
if (!navigator.serviceWorker)
return; // no SW support, ignore call
try {
navigator.serviceWorker.register("sw.js", { scope: "./" })
.then(function (reg)
{
console.log("Registered service worker on " + reg.scope);
})
.catch(OnRegisterSWError);
}
catch (e)
{
OnRegisterSWError(e);
}
};
</script>
</body>
</html> | pigmalien/pigmalien.github.io | playables/csrRacing2/index.html | HTML | mit | 4,693 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" href="/assets/images/favicon.png">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Rubik:400,400i,500,500i,700,700i" rel="stylesheet">
<link href="/assets/css/theme.css" rel="stylesheet">
<link href="/assets/css/custom.css" rel="stylesheet">
<meta name="description" content="">
<meta property="og:site_name" content="Fellipe Brito">
<meta property="og:title" content="A forca dos hábitos">
<meta property="og:type" content="article">
<meta property="og:description" content="
"/>
<meta property="og:image" content="http://fellipebrito.com/assets/images/header.jpg" />
<meta property="article:published_time" content="2014-02-08T00:00:00-06:00">
<meta property="article:author" content="http://fellipebrito.com/about/">
<meta property="og:url" content="http://fellipebrito.com/a-forca-dos-habitos/" />
<meta itemprop="keywords" content="Uncategorized" />
<meta property="article:tag" content="Uncategorized">
<script type="text/javascript" src="//platform-api.sharethis.com/js/sharethis.js#property=5b88e4ebac269e001716d15b&product=sticky-share-buttons"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-41348103-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body class="layout-post">
<!-- Begin Menu Navigation
================================================== -->
<header class="navbar navbar-toggleable-md navbar-light bg-white fixed-top mediumnavigation">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarsWow" aria-controls="navbarsWow" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="container">
<!-- Begin Logo -->
<a class="navbar-brand" href="/">
Fellipe Brito | Crer também é pensar
</a>
<!-- End Logo -->
<!-- Begin Menu -->
<div class="collapse navbar-collapse" id="navbarsWow">
<!-- Begin Menu -->
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="/index.html">Home</a>
</li>
<!-- <li class="nav-item dropdown"> -->
<!-- <a class="nav-link dropdown-toggle" href="#" id="dropdown01" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Post</a> -->
<!-- <div class="dropdown-menu" aria-labelledby="dropdown01"> -->
<!-- <a class="dropdown-item" href="/jekyll/tutorial/2018/01/12/is-intelligence-enough.html">Left Sidebar</a> -->
<!-- <a class="dropdown-item" href="/jekyll/tutorial/2018/01/12/red-riding.html">Right Sidebar</a> -->
<!-- </div> -->
<!-- </li> -->
<!-- -->
<li class="nav-item">
<a class="nav-link" href="/about">Sobre</a>
</li>
<!-- <li class="nav-item"> -->
<!-- <a class="nav-link" href="/contact">Contact</a> -->
<!-- </li> -->
<!-- -->
<!-- <li class="nav-item"> -->
<!-- <a target="_blank" class="nav-link" href="https://github.com/wowthemesnet/affiliates-jekyll-theme">Github</a> -->
<!-- </li> -->
<!-- -->
<!-- <li class="nav-item"> -->
<!-- <a class="nav-link highlight" href="https://github.com/wowthemesnet/affiliates-jekyll-theme/archive/master.zip">Download Theme</a> -->
<!-- </li> -->
<!-- -->
</ul>
<!-- End Menu -->
</div>
</div>
</header>
<!-- End Menu Navigation
================================================== -->
<div class="site-content">
<div class="container">
<!-- Site Title
================================================== -->
<div class="mainheading" style="display:none;">
<h1 class="sitetitle">Fellipe Brito</h1>
<p class="lead">
Fellipe Brito | Crer também é pensar
</p>
</div>
<!-- Content
================================================== -->
<div class="main-content">
<!-- Begin Article
================================================== -->
<div class="row">
<!-- Sidebar -->
<div class="col-sm-4">
<div class="sidebar">
<div class="sidebar-section">
<h5><span>Conecte-se!</span></h5>
<div class="sharethis-inline-follow-buttons"></div>
</div>
<div class="sidebar-section">
<h5><span>Newsletter</span></h5>
<!-- Go to your Mailchimp account/Lists/Sign Up Forms/Embedded forms and replace the code below with your own -->
<!-- Begin MailChimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css">
<style type="text/css">
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }
/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
<div id="mc_embed_signup">
<form action="https://fellipebrito.us19.list-manage.com/subscribe/post?u=0794ba995c37a5e8a28edf28d&id=8bb58341f2" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">
<div class="mc-field-group">
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL" placeholder="[email protected]" required>
</div>
<!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_0794ba995c37a5e8a28edf28d_8bb58341f2" tabindex="-1" value=""></div>
<div class="clear"><input type="submit" value="Confirmar!" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
</div>
</form>
</div>
<!--End mc_embed_signup-->
</div>
<!-- <div class="sidebar-section"> -->
<!-- <h5><span>Useful</span></h5> -->
<!-- <ul style="list-none;"> -->
<!-- <li><a target="_blank" href="https://m.do.co/c/84c9b45d0c47">Digital Ocean</a></li> -->
<!-- <li><a target="blank" href="https://www.cloudways.com/en/pricing.php?id=153986&a_bid=005da123">Cloudways</a></li> -->
<!-- <li><a target="blank" href="http://shareasale.com/r.cfm?b=875645&u=1087935&m=41388&urllink=&afftrack=">Page Speed Test</a></li> -->
<!-- <li><a target="blank" href="https://www.wowthemes.net/affiliate-area/?utm_source=fromjekyllsidebar&utm_campaign=sidebar">Partner with Us</a></li> -->
<!-- <li><a target="blank" href="https://www.wowthemes.net/category/jekyll-themes/">Our Jekyll Themes</a></li> -->
<!-- </ul> -->
<!-- </div> -->
<!-- -->
<!-- <div class="sidebar-section"> -->
<!-- <h5><span>Recommended</span></h5> -->
<!-- <a href="https://easydigitaldownloads.com/?ref=2135" title="Sell digital downloads with WordPress, for free"><img src="https://easydigitaldownloads.com/wp-content/uploads/2015/02/300x250-2.png" alt="Sell digital downloads with WordPress, for free" /></a> -->
<!-- </div> -->
<!-- -->
</div>
</div>
<!-- Post -->
<div class="col-sm-8">
<div class="mainheading">
<!-- Post Categories -->
<div class="after-post-tags">
<ul class="tags">
<li>
<a href="/tag/uncategorized/">Uncategorized</a>
</li>
</ul>
</div>
<!-- End Categories -->
<!-- Post Title -->
<h1 class="posttitle">A forca dos hábitos</h1>
</div>
<!-- Post Featured Image -->
<!-- End Featured Image -->
<!-- Post Content -->
<div class="article-post">
<p><a href="/img/posts/2014/02/pare-de-falar.jpg"><img alt="pare de falar" src="/img/posts/2014/02/pare-de-falar.jpg" /></a></p>
<p><strong>Nós somos nossos hábitos.</strong></p>
<p>Uma das musicas que mais ouvi na minha adolescência tinha como coro o grito “<strong><em>O que a gente faz fala muito mais do que só falar!</em></strong>“”</p>
<p>Minha esposa é testemunha de quantas vezes, após eu debater sobre um assunto polemico, eu converso e peço pra ela “<strong>nunca me permita ser uma mentira</strong>”</p>
<p>Todos nós já ouvimos a palavra fariseu ou hipócrita, pessoas que praticam o famigerado “faça o que eu falo mas nao faça o que eu faço”. Eu tenho como <strong><em>meta</em></strong> na minha vida <span style="text-decoration: underline;">ser Verdade</span>. Seja nos meus erros ou acertos quero que <strong>quem me conheça enxergue coerencia e verdade quando comparar meu discurso e minhas ações</strong>.</p>
<p>Com este objetivo em mente eu procuro me manter em constante mudanças através dos meus hábitos. Alimentação, tempo online, dedicação a familia, evolucao no trabalho, leitura, comportamento no transito, etc.</p>
<p>Minha experiencia tem me ensinado que não há maneira melhor de mudar um hábito do que a <strong>ajuda de amigos próximos</strong>.<br />
Por isso sempre que pretendo mudar algo eu faço questao de <em>anunciar aos meus amigos</em> próximos. Se vou parar de roer a unha eu falo que minha unha ficará grande, se vou parar de falar palavrao, eu aviso meus parceiros no trabalho, se vou comer mais saudável eu conto pra minha esposa.</p>
<p>A segunda coisa mais importante é a <strong>disciplina</strong>.<br />
Se vou comer mais saudavel eu nao compro o que nao vou comer. O que, na hora do desespero, me deixa com duas opcoes: passar fome ou devorar aquela barra de cereal.</p>
<p>O mesmo vale para outras coisas: Voce quer stressar menos no transito? Ofereça um premio de 5 reais para cada um que te “pegar” stressando de “graça” quando dirigindo. Saque 50 reais em nota de 5 e ande com elas na carteira. (<strong><em>estou comecando hoje isso com minha esposa</em></strong>, só que eu vou “pagar” uma multa por usar o celular quando for pra futilidades que me afastam do que realmente importa, seja isso amigos, um almoco ou um por do sol que estou trocando pelo feed do meu facebook.</p>
<p>Uma outra coisa que estou fazendo é para minha saúde. Eu já tive tendinite um ano atras quando era proprietário de uma startup e estava trabalhando além do limite. O problema é que, uma vez que voce já forcou o seu corpo a este ponto, ele fica mais sensível para se ressentir da lesao no futuro. O que voltou a acontecer essa semana. Entao fui procurar por maneiras mais saudáveis de digitar ( eu passo 12, 14 horas por dia digitando), foi nessa procura que achei o Kinesis.</p>
<p><a href="/img/posts/2014/02/kinesis_corporation_advantage_contoured_keyboard_p3_650x400.jpg"><img alt="kinesis_corporation_advantage_contoured_keyboard_p3_650x400" src="/img/posts/2014/02/kinesis_corporation_advantage_contoured_keyboard_p3_650x40.jpg" /></a></p>
<p>O Kinesis é um teclado com um layout novo. As teclas sao separadas em dois blocos bem distantes e com um alinhamento de profundidade para evitar que voce dobre os bracos para digitar. Excelente. A nao ser pelo fato de eu usar teclados da apple há 5 anos, o que me fez, no primeiro dia, cair de uma velocidade de 70 palavras por minuto para 11!!! (este post por exemplo já levou mais de 30 minutos para ser escrito e se voce reparar fazem alguns paragrafos que eu larguei mao dos acentos =P</p>
<p>Espero que minha saúde melhore, e prometo atualizar este post com meu review sobre este teclado em algumas semanas.</p>
<p>E você, eu gostaria de convidá-lo a pegar um ou dois “objetivos” que voce colocou pro ano e dividí-los em hábitos. Isso ira te ajudar a praticar e quando menos perceber você terá alcancado o objetivo.</p>
<p><strong><em>Que possamos ser a mudanca que queremos ver no mundo, o que a gente faz fala muito mais do que só falar.</em></strong></p>
<div class="clearfix"></div>
</div>
<!-- Post Date -->
<p>
<small>
<span class="post-date"><time class="post-date" datetime="2014-02-08">08 Feb 2014</time></span>
</small>
</p>
<!-- Prev/Next -->
<div class="row PageNavigation mt-4 prevnextlinks">
<div class="col-md-6 rightborder pl-0">
<a class="thepostlink" href="/tchau-2013/">« Tchau 2013</a>
</div>
<div class="col-md-6 text-right pr-0">
<a class="thepostlink" href="/e-insuportavel/">É insuportável »</a>
</div>
</div>
<!-- End Prev/Next -->
<!-- Author Box -->
<div class="row post-top-meta">
<div class="col-md-2">
<img class="author-thumb" src="https://www.gravatar.com/avatar/e56154546cf4be74e393c62d1ae9f9d4?s=250&d=mm&r=x" alt="Fellipe Brito">
</div>
<div class="col-md-10">
<a target="_blank" class="link-dark" href="fellipebrito.com">Fellipe Brito</a><a target="_blank" href="https://twitter.com/fellipeeduardo" class="btn follow">Follow</a>
<span class="author-description">Fellipe Brito | Crer também é pensar</span>
</div>
</div>
<!-- Begin Comments
================================================== -->
<section>
<div id="comments">
<section class="disqus">
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'fellipebrito';
var disqus_developer = 0;
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = window.location.protocol + '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</section>
</div>
</section>
<!--End Comments
================================================== -->
</div>
<!-- End Post -->
</div>
<!-- End Article
================================================== -->
</div>
</div><!-- /.container -->
<!-- Before Footer
================================================== -->
<!-- <div class="beforefooter"> -->
<!-- <div class="container"> -->
<!-- <div class="row justify-content-center"> -->
<!-- <div class="col-md-8"> -->
<!-- <h3>This is your final call to action area. Shine like a star, make them want you, tell 'em to push that button!</h3> -->
<!-- <p>We offer a <span>30 Day Money Back Guarantee</span>, so joining is <span class="risk-free">Risk-Free!</span></p> -->
<!-- <a class="btn btn-primary btn-lg" href="#">Join us yesterday</a> -->
<!-- </div> -->
<!-- <div class="col-md-4 text-right footersocial"> -->
<!-- <h5>Connect with Us</h5> -->
<!-- <i class="fa fa-facebook"></i> -->
<!-- <i class="fa fa-twitter"></i> -->
<!-- <i class="fa fa-google"></i> -->
<!-- <i class="fa fa-pinterest"></i> -->
<!-- <i class="fa fa-github"></i> -->
<!-- </div> -->
<!-- </div> -->
<!-- </div> -->
<!-- </div> -->
<!-- -->
<!-- Begin Footer
================================================== -->
<footer class="footer">
<div class="container">
<!-- -->
<!-- <div class="row"> -->
<!-- <div class="col-sm-3"> -->
<!-- <div class="footer-widget"> -->
<!-- <a href="/contact"> -->
<!-- <img src="/assets/images/logo-footer.png"> -->
<!-- </a> -->
<!-- </div> -->
<!-- </div> -->
<!-- -->
<!-- <div class="col-sm-3"> -->
<!-- <div class="footer-widget"> -->
<!-- <h5 class="title">Resources</h5> -->
<!-- <ul> -->
<!-- <li><a target="_blank" href="https://m.do.co/c/84c9b45d0c47">Digital Ocean</a></li> -->
<!-- <li><a target="blank" href="https://www.cloudways.com/en/pricing.php?id=153986&amp;a_bid=005da123">Cloudways</a></li> -->
<!-- <li><a target="blank" href="http://shareasale.com/r.cfm?b=875645&amp;u=1087935&amp;m=41388&amp;urllink=&amp;afftrack=">Page Speed Test</a></li> -->
<!-- <li><a target="blank" href="https://www.wowthemes.net/affiliate-area/?utm_source=fromjekyllsidebar&utm_campaign=sidebar">Partner with Us</a></li> -->
<!-- <li><a target="blank" href="https://www.wowthemes.net/category/jekyll-themes/">Our Jekyll Themes</a></li> -->
<!-- </ul> -->
<!-- </div> -->
<!-- </div> -->
<!-- -->
<!-- <div class="col-sm-3"> -->
<!-- <div class="footer-widget"> -->
<!-- <h5 class="title">Author</h5> -->
<!-- <ul> -->
<!-- <li><a href="https://www.wowthemes.net/premium-themes-templates/">About Us</a></li> -->
<!-- <li><a target="_blank" href="https://www.wowthemes.net/affiliate-area/">Affiliates</a></li> -->
<!-- <li><a href="https://www.wowthemes.net/terms-and-conditions/">License</a></li> -->
<!-- <li><a href="https://www.wowthemes.net/blog/">Blog</a></li> -->
<!-- <li><a href="https://www.wowthemes.net/support/">Contact</a></li> -->
<!-- </ul> -->
<!-- </div> -->
<!-- </div> -->
<!-- -->
<!-- <div class="col-sm-3"> -->
<!-- <div class="footer-widget textwidget"> -->
<!-- <h5 class="title">Download</h5> -->
<!-- <p>Download "Affiliates" theme and use it for your next Jekyll project. If you have a question, a bug report, or if you simply want to say hi, <a href="https://www.wowthemes.net/support/">contact us here</a>.</p> -->
<!-- <a href="https://github.com/wowthemesnet/affiliates-jekyll-theme/archive/master.zip">Download Theme</a> -->
<!-- </div> -->
<!-- </div> -->
<!-- </div> -->
<!-- -->
<div class="copyright">
<p class="pull-left">
Copyright © 2018 Fellipe Brito.
</p>
<p class="pull-right">
<!-- Please, leave credit to author unless you own a commercial license: https://www.wowthemes.net/freebies-license/ -->
<a target="_blank" href="https://www.wowthemes.net/free-jekyll-template-affiliates/">"Affiliates Theme"</a> - Design & Code by WowThemes.net
</p>
<div class="clearfix"></div>
</div>
</div>
</footer>
<!-- End Footer
================================================== -->
</div> <!-- /.site-content>
<!-- JavaScript
================================================== -->
<script src="/assets/js/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
<script src="/assets/js/ie10-viewport-bug-workaround.js"></script>
<script type='text/javascript' src='/assets/js/masonry.pkgd.min.js'></script>
<script src="/assets/js/theme.js"></script>
</body>
</html>
| fellipebrito/fellipebrito.github.io | a-forca-dos-habitos/index.html | HTML | mit | 22,122 |
<h1>I am in devops branch</h1>
| amanaws/git_training | devops.html | HTML | mit | 31 |
<!doctype html>
<html class="theme-next muse use-motion" lang="zh-Hans">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />
<link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />
<link href="/css/main.css?v=5.1.1" rel="stylesheet" type="text/css" />
<meta name="keywords" content="Hexo, NexT" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.1.1" />
<meta name="keywords" content="javascript,es6,webpack,vue">
<meta property="og:type" content="website">
<meta property="og:title" content="Dong's Blog">
<meta property="og:url" content="https://elephantme.github.io/categories/vue/index.html">
<meta property="og:site_name" content="Dong's Blog">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Dong's Blog">
<script type="text/javascript" id="hexo.configurations">
var NexT = window.NexT || {};
var CONFIG = {
root: '/',
scheme: 'Muse',
sidebar: {"position":"left","display":"post","offset":12,"offset_float":0,"b2t":false,"scrollpercent":false},
fancybox: true,
motion: true,
duoshuo: {
userId: '0',
author: '博主'
},
algolia: {
applicationID: '',
apiKey: '',
indexName: '',
hits: {"per_page":10},
labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
}
};
</script>
<link rel="canonical" href="https://elephantme.github.io/categories/vue/"/>
<title>分类: vue | Dong's Blog</title>
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?1a71164e95b5296508c0d1492855a5a0";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">
<div class="container sidebar-position-left ">
<div class="headband"></div>
<header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-brand-wrapper">
<div class="site-meta ">
<div class="custom-logo-site-title">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<span class="site-title">Dong's Blog</span>
<span class="logo-line-after"><i></i></span>
</a>
</div>
<p class="site-subtitle">路漫漫其修远兮,吾将上下而求索</p>
</div>
<div class="site-nav-toggle">
<button>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
</button>
</div>
</div>
<nav class="site-nav">
<ul id="menu" class="menu">
<li class="menu-item menu-item-home">
<a href="/" rel="section">
<i class="menu-item-icon fa fa-fw fa-home"></i> <br />
首页
</a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives/" rel="section">
<i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
归档
</a>
</li>
<li class="menu-item menu-item-tags">
<a href="/tags/" rel="section">
<i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
标签
</a>
</li>
</ul>
</nav>
</div>
</header>
<main id="main" class="main">
<div class="main-inner">
<div class="content-wrap">
<div id="content" class="content">
<section id="posts" class="posts-collapse">
<div class="collection-title">
<h1>vue<small>分类</small>
</h1>
</div>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<h2 class="post-title">
<a class="post-title-link" href="/2018/01/04/learn-vue-source-implement-simple-directive/" itemprop="url">
<span itemprop="name">【vue源码】简单实现directive功能</span>
</a>
</h2>
<div class="post-meta">
<time class="post-time" itemprop="dateCreated"
datetime="2018-01-04T22:15:33+08:00"
content="2018-01-04" >
01-04
</time>
</div>
</header>
</article>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<h2 class="post-title">
<a class="post-title-link" href="/2016/07/31/two-way-bind-beween-angular-and-vue/" itemprop="url">
<span itemprop="name">理解vue与angular双向绑定的本质</span>
</a>
</h2>
<div class="post-meta">
<time class="post-time" itemprop="dateCreated"
datetime="2016-07-31T00:00:00+08:00"
content="2016-07-31" >
07-31
</time>
</div>
</header>
</article>
</section>
</div>
</div>
<div class="sidebar-toggle">
<div class="sidebar-toggle-line-wrap">
<span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
</div>
</div>
<aside id="sidebar" class="sidebar">
<div class="sidebar-inner">
<section class="site-overview sidebar-panel sidebar-panel-active">
<div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
<img class="site-author-image" itemprop="image"
src="/images/avatar.gif"
alt="Dong" />
<p class="site-author-name" itemprop="name">Dong</p>
<p class="site-description motion-element" itemprop="description"></p>
</div>
<nav class="site-state motion-element">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">26</span>
<span class="site-state-item-name">日志</span>
</a>
</div>
<div class="site-state-item site-state-categories">
<a href="/categories/index.html">
<span class="site-state-item-count">7</span>
<span class="site-state-item-name">分类</span>
</a>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/index.html">
<span class="site-state-item-count">8</span>
<span class="site-state-item-name">标签</span>
</a>
</div>
</nav>
<div class="links-of-author motion-element">
</div>
</section>
</div>
</aside>
</div>
</main>
<footer id="footer" class="footer">
<div class="footer-inner">
<div class="copyright" >
©
<span itemprop="copyrightYear">2018</span>
<span class="with-love">
<i class="fa fa-heart"></i>
</span>
<span class="author" itemprop="copyrightHolder">Dong</span>
</div>
<div class="powered-by">
由 <a class="theme-link" href="https://hexo.io">Hexo</a> 强力驱动
</div>
<div class="theme-info">
主题 -
<a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
NexT.Muse
</a>
</div>
</div>
</footer>
<div class="back-to-top">
<i class="fa fa-arrow-up"></i>
</div>
</div>
<script type="text/javascript">
if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
window.Promise = null;
}
</script>
<script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
<script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
<script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
<script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
<script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
<script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
<script type="text/javascript" src="/js/src/utils.js?v=5.1.1"></script>
<script type="text/javascript" src="/js/src/motion.js?v=5.1.1"></script>
<script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.1"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.1"></script>
<script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.1"></script>
</body>
</html>
| elephantme/elephantme.github.io | categories/vue/index.html | HTML | mit | 10,261 |
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="bane-index.css">
</head>
<body>
<div class = top>
<img class="image_header" src="images/header.jpg" />
</div>
<table class = "logo">
<tr>
<td>
<table id ="nav_bar">
<tr>
<td class = "nav_cells" id ="index"><a href="index.html">Home</a></td>
<td class = "nav_cells" id ="Contact Information"><a href = "contact.html">Contact</a></td>
<td class = "nav_cells" id ="projects"><a href = "projects.html">Projects</a></td>
<td class = "nav_cells" id -"blog"><a href = "blog.html">Blog</a></td>
</tr>
</table>
</td>
<td>
<img id ="logo" src="images/Logo.PNG" />
</td>
<td>
<table id = "icons">
<tr>
<td><a href="https://github.com/banesrdjevic"><img id = "github" src = "https://assets-cdn.github.com/images/modules/logos_page/Octocat.png" /></a></td>
<td><a href="https://twitter.com/13ane"><img id = "twitter" src = "http://etc-mysitemyway.s3.amazonaws.com/icons/legacy-previews/icons/glossy-black-icons-social-media-logos/099375-glossy-black-icon-social-media-logos-twitter-logo-square.png" /></a></td>
<td><a href="https://www.linkedin.com/in/banesrdjevic"><img id = "linkedin" src = "http://etc-mysitemyway.s3.amazonaws.com/icons/legacy-previews/icons/glossy-black-icons-social-media-logos/099325-glossy-black-icon-social-media-logos-linkedin-logo-square2.png" /></a></td>
<td><a href="https://banesrdjevic.wordpress.com/"><img id = "blog" src = "images/Logo.PNG" /> </a></td>
</tr>
</table>
</td>
</table>
</body>
</html> | banesrdjevic/banesrdjevic.github.io | contact.html | HTML | mit | 1,568 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="ja">
<head>
<!-- Generated by javadoc (version 1.7.0_25) on Thu Jul 18 17:21:27 JST 2013 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>Aの索引</title>
<meta name="date" content="2013-07-18">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Aの索引";
}
//-->
</script>
<noscript>
<div>ブラウザのJavaScriptが無効になっています。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="ナビゲーション・リンクをスキップ"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="ナビゲーション">
<li><a href="../org/kurochan/markov_sentence_generator/package-summary.html">パッケージ</a></li>
<li>クラス</li>
<li>使用</li>
<li><a href="../org/kurochan/markov_sentence_generator/package-tree.html">階層ツリー</a></li>
<li><a href="../deprecated-list.html">非推奨</a></li>
<li class="navBarCell1Rev">索引</li>
<li><a href="../help-doc.html">ヘルプ</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>前の文字</li>
<li><a href="index-2.html">次の文字</a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?index-filesindex-1.html" target="_top">フレーム</a></li>
<li><a href="index-1.html" target="_top">フレームなし</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../allclasses-noframe.html">すべてのクラス</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">F</a> <a href="index-3.html">G</a> <a href="index-4.html">I</a> <a href="index-5.html">M</a> <a href="index-6.html">O</a> <a href="index-7.html">R</a> <a href="index-8.html">S</a> <a href="index-9.html">T</a> <a name="_A_">
<!-- -->
</a>
<h2 class="title">A</h2>
<dl>
<dt><span class="strong"><a href="../org/kurochan/markov_sentence_generator/MarkovSentenceGenerator.html#addSentence(java.lang.String)">addSentence(String)</a></span> - クラス のメソッドorg.kurochan.markov_sentence_generator.<a href="../org/kurochan/markov_sentence_generator/MarkovSentenceGenerator.html" title="org.kurochan.markov_sentence_generator内のクラス">MarkovSentenceGenerator</a></dt>
<dd>
<div class="block">生成する文章の元となる文を追加する</div>
</dd>
</dl>
<a href="index-1.html">A</a> <a href="index-2.html">F</a> <a href="index-3.html">G</a> <a href="index-4.html">I</a> <a href="index-5.html">M</a> <a href="index-6.html">O</a> <a href="index-7.html">R</a> <a href="index-8.html">S</a> <a href="index-9.html">T</a> </div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="ナビゲーション・リンクをスキップ"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="ナビゲーション">
<li><a href="../org/kurochan/markov_sentence_generator/package-summary.html">パッケージ</a></li>
<li>クラス</li>
<li>使用</li>
<li><a href="../org/kurochan/markov_sentence_generator/package-tree.html">階層ツリー</a></li>
<li><a href="../deprecated-list.html">非推奨</a></li>
<li class="navBarCell1Rev">索引</li>
<li><a href="../help-doc.html">ヘルプ</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>前の文字</li>
<li><a href="index-2.html">次の文字</a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?index-filesindex-1.html" target="_top">フレーム</a></li>
<li><a href="index-1.html" target="_top">フレームなし</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../allclasses-noframe.html">すべてのクラス</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
| kurochan/MarkovSentenceGenerator | doc/index-files/index-1.html | HTML | mit | 4,898 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>GESTION DE VENTAS</title>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="css/shop-homepage.css" rel="stylesheet">
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Inicio</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li>
<a href="index1.html">Productos Perecibles</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<p class="lead">Compra por categoria</p>
<div class="list-group">
<a href="celular.html" class="list-group-item">Celulares</a>
<a href="television.html" class="list-group-item">Televisores</a>
<a href="computadora.html" class="list-group-item">Computadoras</a>
<a href="consola.html" class="list-group-item">Consolas y Videojuegos</a>
<a href="camara.html" class="list-group-item">Cámaras</a>
</div>
</div>
<div class="col-md-9">
<div class="row carousel-holder">
<div class="col-md-12">
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="item active">
<img class="slide-image" src="img/3.jpg" alt="">
</div>
<div class="item">
<img class="slide-image" src="img/3a7a92d02047aaed5011d3f35dc02836.jpg" alt="">
</div>
<div class="item">
<img class="slide-image" src="img/guy-hands-tablet-2560x1600.jpg" alt="">
</div>
</div>
<a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-4 col-lg-4 col-md-4">
<div class="thumbnail">
<img src="img/collection/apple-iphone-6-16gb-sellados-todos-los-colores-916811-MLA20647794967_032016-F.jpg" alt="">
<div class="caption">
<h4 class="pull-right">$/.549</h4>
<h4><a href="#">LG</a>
</h4>
<p>Smartphone G3 Stylus 5,5" Negro <a target="_blank" href="http://www.bootsnipp.com">Bootsnipp - http://bootsnipp.com</a>.</p>
</div>
<div class="ratings">
<p class="pull-right">15 reviews</p>
<p>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
</p>
</div>
</div>
</div>
<div class="col-sm-4 col-lg-4 col-md-4">
<div class="thumbnail">
<img src="img/collection/canon-profesional.jpg.pagespeed.ce.85vR0sENMv.jpg" alt="">
<div class="caption">
<h4 class="pull-right">$64.99</h4>
<h4><a href="#">Second Product</a>
</h4>
<p>This is a short description. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="ratings">
<p class="pull-right">12 reviews</p>
<p>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star-empty"></span>
</p>
</div>
</div>
</div>
<div class="col-sm-4 col-lg-4 col-md-4">
<div class="thumbnail">
<img src="img/collection/GalaxyS7EdgeelmejorcelulardeSamsunghastalafechapostid52174.jpg" alt="">
<div class="caption">
<h4 class="pull-right">$74.99</h4>
<h4><a href="#">Third Product</a>
</h4>
<p>This is a short description. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="ratings">
<p class="pull-right">31 reviews</p>
<p>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star-empty"></span>
</p>
</div>
</div>
</div>
<div class="col-sm-4 col-lg-4 col-md-4">
<div class="thumbnail">
<img src="img/collection/lenovo_yoga_900_official_1.jpg" alt="">
<div class="caption">
<h4 class="pull-right">$84.99</h4>
<h4><a href="#">Fourth Product</a>
</h4>
<p>This is a short description. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="ratings">
<p class="pull-right">6 reviews</p>
<p>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star-empty"></span>
<span class="glyphicon glyphicon-star-empty"></span>
</p>
</div>
</div>
</div>
<div class="col-sm-4 col-lg-4 col-md-4">
<div class="thumbnail">
<img src="img/collection/relojes-apple-se-comunican-entre-ellos.jpg" alt="">
<div class="caption">
<h4 class="pull-right">$94.99</h4>
<h4><a href="#">Fifth Product</a>
</h4>
<p>This is a short description. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="ratings">
<p class="pull-right">18 reviews</p>
<p>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star-empty"></span>
</p>
</div>
</div>
</div>
<div class="col-sm-4 col-lg-4 col-md-4">
<div class="thumbnail">
<img src="img/collection/samsung_curved_uhd-420-90.jpg" alt="">
<div class="caption">
<h4 class="pull-right">$94.99</h4>
<h4><a href="#">Fifth Product</a>
</h4>
<p>This is a short description. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="ratings">
<p class="pull-right">18 reviews</p>
<p>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star-empty"></span>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.container -->
<div class="container">
<hr>
<!-- Footer -->
<footer>
<div class="row">
<div class="col-lg-12">
<p>Tecsup 2016</p>
</div>
</div>
</footer>
</div>
<!-- /.container -->
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
| ebenites/tecsup-santa-beatriz | modulo-ventas/Corregido Consultar Catalogo/index2.html | HTML | mit | 12,660 |
{template '_header'}
<link rel="stylesheet" type="text/css" href="../addons/ewei_shopv2/template/mobile/default/static/css/coupon-new.css?v=20170303112">
<div class="fui-page">
<div class="fui-header">
<div class="fui-header-left">
<a class="back" href="{php echo mobileUrl('sale/coupon')}"></a>
</div>
<div class="title">详情</div>
<div class="fui-header-left"></div>
</div>
<div class="fui-content navbar coupon-page">
<div class="coupon-detail {$coupon['color']}">
<div class="detail-dots"></div>
<div class="detail-head">
<div class="inner">
<div class="title">
<div class="text">{$coupon['couponname']}</div>
</div>
{if $coupon['backtype']==2}
<div class="childs">
<div class="child">
<div class="subtitle"> {$coupon['title2']}</div>
<div class="bigtitle">立返</div>
</div>
<div class="child">
{if !empty($coupon['backmoney']) && $coupon['backmoney'] > 0}
<div class="subtitle"><span class="bold">{$coupon['backmoney']} </span><span class="threetitle">元余额</span></div>
{/if}
{if !empty($coupon['backcredit']) && $coupon['backcredit'] > 0}
<div class="subtitle"><span class="bold">{$coupon['backcredit']} </span><span class="threetitle">积分</span></div>
{/if}
{if !empty($coupon['backredpack']) && $coupon['backredpack'] > 0}
<div class="subtitle"><span class="bold">{$coupon['backredpack']} </span><span class="threetitle">元红包</span></div>
{/if}
</div>
</div>
{else}
<div class="bigtitle"> {$coupon['title3']}</div>
<div class="subtitle"> {$coupon['title2']}</div>
{/if}
<div class="usetime">
<div class="text">
{if $coupon['timestr']=='0'}
永久有效
{else}
{if $coupon['timestr']=='1'}
即{$coupon['gettypestr']}日内 {$coupon['timedays']} 天有效
{else}
{$coupon['timestr']}
{/if}
{/if}</div>
</div>
</div>
</div>
<div class="detail-body">
<div class="block">
{if !empty($coupon['merchname'])}
<div class="title">使用商铺</div>
<div class="text dot">限购[{$coupon['merchname']}]店铺商品</div>
{/if}
<div class="title">使用说明</div>
<div class="text">
{if empty($coupon['descnoset'])}
{if empty($coupon['coupontype'])}
{php echo htmlspecialchars_decode($set['consumedesc'])}
{else}
{php echo htmlspecialchars_decode($set['rechargedesc'])}
{/if}
{else}
{$coupon['desc']}
{/if}
</div>
</div>
<div class="block">
<div class="title">有效期限</div>
<div class="text dot">{if $coupon['timestr']=='0'}
永久有效
{else}
{if $coupon['timestr']=='1'}
即{$coupon['gettypestr']}日内 {$coupon['timedays']} 天有效
{else}
有效期 {$coupon['timestr']}
{/if}
{/if}
{if !empty($coupon['merchname'])}
限购[{$coupon['merchname']}]店铺商品
{/if}</div>
</div>
<div class="block">
<div class="title">使用限制</div>
{if $coupon['coupontype']=='2'}
<div class="text dot">本优惠卷只能在收银台中使用</div>
{/if}
{if $coupon['limitdiscounttype']=='1'}
<div class="text dot">不允许与促销优惠同时使用</div>
{elseif $coupon['limitdiscounttype']=='2'}
<div class="text dot">不允许与会员折扣同时使用</div>
{elseif $coupon['limitdiscounttype']=='3'}
<div class="text dot">不允许与促销优惠和会员折扣同时使用</div>
{/if}
{if $coupon['limitgoodtype']=='1'}
<div class="text dot">允许以下商品使用:</div>
{loop $goods $g}
<div class="text ">{$g['title']}</div>
{/loop}
{/if}
{if $coupon['limitgoodcatetype']=='1'}
<div class="text dot">允许以下商品分类使用:</div>
<div class="text ">
{loop $category $c}
{$c['name']}
{/loop}
</div>
{/if}
{if $coupon['limitgoodtype']=='0'&& $coupon['limitgoodcatetype']=='0'&&$coupon['limitdiscounttype']=='0'&&$coupon['coupontype']!='2'}
<div class="text dot">无</div>
{/if}
</div>
</div>
</div>
</div>
<div class="fui-navbar">
{if !empty($coupon['used'])}
<div class="nav-item btn btn-gray" >已使用</div>
{elseif $coupon['past']}
<div class="nav-item btn btn-gray" >已过期</div>
{else}
<div class="nav-item btn btn-{$coupon['color']}" >
<a href="{$useurl}" style="color:#ffffff;">
{if empty($coupon['coupontype'])}
立即去选商品使用
{else if $coupon['coupontype']=='1'}
立即去充值
{else}
返回我的优惠卷
{/if}
</a>
</div>
{/if}
</div>
</div>
{template '_footer'} | Broomspun/shanque | addons/ewei_shopv2/template/mobile/default/sale/coupon/my/detail.html | HTML | mit | 4,814 |
<#include "/_pagelet/constant.html"/>
<!DOCTYPE html>
<html lang='zh-CN'>
<head>
<title></title>
<meta charset='utf-8' />
<meta name='robots' content='all' />
<meta http-equiv='content-type' content='text/html;charset=utf-8' />
<meta name='viewport' content='width=device-width, initial-scale=1.0' />
<link rel='shortcut icon' href='/public/assets/images/favicon.png?v1' />
<!--[if lte IE 9]>
<link rel='stylesheet' type='text/css' href='${(conf_html_cdn)!}js/bsie/0.0.0/css/bootstrap-ie6.css' />
<link rel='stylesheet' type='text/css' href='${(conf_html_cdn)!}js/bsie/0.0.0/css/ie.css' />
<link rel='stylesheet' type='text/css' href='${(conf_html_cdn)!}js/verybsie/1.0.0/css/bootstrap-verybsie.css' />
<![endif]-->
<!--[if lte IE 7]>
<link rel='stylesheet' type='text/css' href='${(conf_html_cdn)!}js/verybsie/1.0.0/css/bootstrap-verybsie.css' />
<![endif]-->
<link rel='stylesheet' type='text/css' media='screen' href='${(conf_html_cdn)!}js/bootstrap/3.2.0/dist/css/bootstrap.min.css?v3.2.0' />
<link rel='stylesheet' type='text/css' media='screen' href='${(conf_html_cdn)!}js/bootstrap/3.2.0/dist/css/bootstrap-theme.min.css?v3.2.0' />
<link rel='stylesheet' type='text/css' media='screen' href='${(conf_html_cdn)!}js/font-awesome/4.1.0/css/font-awesome.min.css' />
<link rel='stylesheet' type='text/css' media='screen' href='${(conf_html_cdn)!}public/assets/css/olx/olx.css?v3' />
<script type='text/javascript'>
function isIE(){
return (!!window.ActiveXObject || 'ActiveXObject' in window);
}
function img404(event){
// 获取img对象,火狐是event.target ,IE及谷歌其他是event.srcElement
var img = event.srcElement || event.target;
img.src = '/public/assets/images/img404.jpg';
img.onerror = null;
}
if(isIE()){
// console.log('I use IE.');
}else{
document.write("<link rel='stylesheet' type='text/css' href='${(conf_html_cdn)!}js/pace/1.0.2/themes/pace-theme-barber-shop.css' \/>");
document.write("<script type='text/javascript' src='${(conf_html_cdn)!}js/pace/1.0.2/pace.min.js'><\/script>");
document.write("<script type='text/javascript' src='${(conf_html_cdn)!}js/jquery/2.0.2/jquery.min.js?v2.0.2'><\/script>");
}
</script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if gte IE 9]>
<link rel='stylesheet' type='text/css' href='${(conf_html_cdn)!}js/pace/1.0.2/themes/pace-theme-barber-shop.css' />
<script type='text/javascript' src='${(conf_html_cdn)!}js/pace/1.0.2/pace.min.js'></script>
<script type='text/javascript' src='${(conf_html_cdn)!}js/jquery/2.0.2/jquery.min.js'></script>
<![endif]-->
<!--[if lt IE 9]>
<script type='text/javascript' src='${(conf_html_cdn)!}js/jquery/1.11.3/jquery.min.js'></script>
<script type='text/javascript' src='${(conf_html_cdn)!}js/html5shiv/3.7.2/html5shiv.min.js'></script>
<script type='text/javascript' src='${(conf_html_cdn)!}js/respond/1.4.2/respond.min.js'></script>
<![endif]-->
<link href="${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/css/shCore.css" rel="stylesheet" type="text/css" />
<link href="${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/css/shThemeDefault.css" rel="stylesheet" type="text/css" /></head><body>
<#if temp_java_model ??>
<pre class="brush: java; ruler: true;">
${(temp_java_model)!}
</pre></#if>
<#if temp_java_biz ??><pre class="brush: java">
${(temp_java_biz)!}
</pre></#if>
<#if temp_java_biz_impl ??><pre class="brush: java">
${(temp_java_biz_impl)!}
</pre></#if>
<#if temp_mysql ??><pre class="brush: sql">
${(temp_mysql)!}
</pre></#if>
<#if temp_frm_html ??><pre class="brush: html">
${(temp_frm_html)!}
</pre></#if>
<#if temp_java_mapper_java ??><pre class="brush: java">
${(temp_java_mapper_java)!}
</pre></#if>
<#include "/_pagelet/js.html"/>
<script type="text/javascript" src="${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/xregexp-min.js?t=${(random)!}"></script>
<script type="text/javascript" src="${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shCore.min.js?t=${(random)!}"></script>
<script type="text/javascript" src="${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shAutoloader.js?t=${(random)!}"></script>
<script type='text/javascript'>
$(function(){
SyntaxHighlighter.autoloader(
'applescript ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushAppleScript.js?t=${(random)!}',
'actionscript3 as3 ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushAS3.js?t=${(random)!}',
'bash shell ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushBash.js?t=${(random)!}',
'coldfusion cf ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushColdFusion.js?t=${(random)!}',
'cpp c ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushCpp.js?t=${(random)!}',
'obj-c objc ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushObjC.js?t=${(random)!}',
'c# c-sharp csharp ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushCSharp.js?t=${(random)!}',
'css ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushCss.js?t=${(random)!}',
'delphi pascal ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushDelphi.js?t=${(random)!}',
'diff patch pas ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushDiff.js?t=${(random)!}',
'erl erlang ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushErlang.js?t=${(random)!}',
'groovy ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushGroovy.js?t=${(random)!}',
'haxe hx ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushHaxe.js?t=${(random)!}',
'java ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushJava.js?t=${(random)!}',
'jfx javafx ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushJavaFX.js?t=${(random)!}',
'js jscript javascript ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushJScript.js?t=${(random)!}',
'perl pl ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushPerl.js?t=${(random)!}',
'php ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushPhp.js?t=${(random)!}',
'text plain ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushPlain.js?t=${(random)!}',
'py python ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushPython.js?t=${(random)!}',
'ruby rails ror rb ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushRuby.js?t=${(random)!}',
'scala ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushScala.js?t=${(random)!}',
'sql ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushSql.js?t=${(random)!}',
'vb vbnet ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushVb.js?t=${(random)!}',
'xml xhtml xslt html ${(conf_html_cdn)!}js/SyntaxHighlighter/3.0.9/js/shBrushXml.js?t=${(random)!}'
);
SyntaxHighlighter.all();
window.onload = function(){
parent.resize2(document.body.offsetHeight + 30);
};
});
</script>
</body>
</html>
| 3203317/yb | abc-app-xxx/src/main/webapp/WEB-INF/freemarker/codeGen/project/genForm.html | HTML | mit | 7,152 |
<html><body>
<h4>Windows 10 x64 (19041.388)</h4><br>
<h2>_REQUEST_MAILBOX</h2>
<font face="arial"> +0x000 Next : Ptr64 <a href="./_REQUEST_MAILBOX.html">_REQUEST_MAILBOX</a><br>
+0x008 RequestSummary : Uint8B<br>
+0x010 RequestPacket : <a href="./_KREQUEST_PACKET.html">_KREQUEST_PACKET</a><br>
+0x030 NodeTargetCountAddr : Ptr64 Int4B<br>
+0x038 NodeTargetCount : Int4B<br>
</font></body></html> | epikcraw/ggool | public/Windows 10 x64 (19041.388)/_REQUEST_MAILBOX.html | HTML | mit | 436 |
<html><body>
<h4>Windows 10 x64 (18362.116)</h4><br>
<h2>_PCI_BUSMASTER_RID_TYPE</h2>
<font face="arial"> BusmasterRidFromDeviceRid = 0n0<br>
BusmasterRidFromBridgeRid = 0n1<br>
BusmasterRidFromMultipleBridges = 0n2<br>
</font></body></html> | epikcraw/ggool | public/Windows 10 x64 (18362.116)/_PCI_BUSMASTER_RID_TYPE.html | HTML | mit | 249 |
<html><body>
<h4>Windows 10 x64 (18362.329)</h4><br>
<h2>POWER_ACTION</h2>
<font face="arial"> PowerActionNone = 0n0<br>
PowerActionReserved = 0n1<br>
PowerActionSleep = 0n2<br>
PowerActionHibernate = 0n3<br>
PowerActionShutdown = 0n4<br>
PowerActionShutdownReset = 0n5<br>
PowerActionShutdownOff = 0n6<br>
PowerActionWarmEject = 0n7<br>
PowerActionDisplayOff = 0n8<br>
</font></body></html> | epikcraw/ggool | public/Windows 10 x64 (18362.329)/POWER_ACTION.html | HTML | mit | 429 |
<div class="row">
<div class="large-12 columns">
<div class="panel" ng-show="report.student.grade != -1">
<label> Which of the following apply to this student?</label>
{% verbatim %}
<div ng-repeat="issue in issues_primary">
<input type="checkbox"
ng-checked="item_is_checked(issue, report.issues_primary)"
id="issue-{{ $index }}" ng-click="toggleIssuePrimary(issue)"
value="{{ issue }}" >
<label for="issue-{{ $index }}">{{ issue.name }}</label>
</div>
<input type="checkbox" id="issue-primary-other" ng-model="report.flags.issues_primary_other"><label for="issue-primary-other">Other (describe)</label>
<input type="text" ng-show="report.flags.issues_primary_other" ng-model="report.issues_primary_other">
{% endverbatim %}
</div>
</div>
<div class="large-12 columns">
<div class="panel" ng-show="report.student.grade == -1">
<label>
Which of the following apply to this student?
</label>
{% verbatim %}
<div ng-repeat="issue in issues_prek">
<input type="checkbox"
ng-checked="item_is_checked(issue, report.issues_prek)"
id="issue-{{ $index }}" ng-click="toggleIssuePreK(issue)"
value="{{ issue }}" >
<label for="issue-{{ $index }}">{{ issue.name }}</label>
</div>
<input type="checkbox" id="issue-prek-other" ng-model="report.flags.issues_prek_other"><label for="issue-prek-other">Other (describe)</label>
<input type="text" ng-show="report.flags.issues_prek_other" ng-model="report.issues_prek_other">
{% endverbatim %}
</div>
</div>
</div>
| koebbe/homeworks | templates/visit/issues-snippet.html | HTML | mit | 1,707 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>Faeris: E:/CodeSpace/Faeris/lib/libfaeris/src/stage/action/FsPauseAction.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Faeris
 <span id="projectnumber">v3.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_c56faf4613ee661aba496b7591fae654.html">Faeris</a></li><li class="navelem"><a class="el" href="dir_324fd5173578ee2630711a79d9c748a1.html">lib</a></li><li class="navelem"><a class="el" href="dir_4ff4c6203fc9bcb7d3e6bbdf07a207a1.html">libfaeris</a></li><li class="navelem"><a class="el" href="dir_f1695f691b26c838a9b54d1eb8cc475a.html">src</a></li><li class="navelem"><a class="el" href="dir_a99e3426979cb1bb347039efd9f7ba37.html">stage</a></li><li class="navelem"><a class="el" href="dir_5e1de351f11117ceb393c03997989b3b.html">action</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">FsPauseAction.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*************************************************************************/</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/* FsPauseAction.h */</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">/*************************************************************************/</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">/* Copyright (C) 2012-2014 [email protected] */</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">/* Copyright (C) 2014-2015 www.fsource.cn */</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">/* */</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">/* http://www.fsource.cn */</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">/* */</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">/* Permission is hereby granted, free of charge, to any person obtaining */</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">/* a copy of this software and associated documentation files (the */</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">/* "Software"), to deal in the Software without restriction, including */</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">/* without limitation the rights to use, copy, modify, merge, publish, */</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">/* distribute, sublicense, and/or sell copies of the Software, and to */</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">/* permit persons to whom the Software is furnished to do so, subject to */</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">/* the following conditions: */</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">/* */</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">/* The above copyright notice and this permission notice shall be */</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">/* included in all copies or substantial portions of the Software. */</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">/* */</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">/*************************************************************************/</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#ifndef _FS_PAUSE_ACTION_H_</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#define _FS_PAUSE_ACTION_H_</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "FsAction.h"</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> NS_FS_BEGIN</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="class_pause_action.html"> 36</a></span> <span class="keyword">class </span><a class="code" href="class_pause_action.html">PauseAction</a>:<span class="keyword">public</span> <a class="code" href="class_action.html">Action</a> </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> {</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keyword">static</span> <a class="code" href="class_pause_action.html">PauseAction</a>* create(<span class="keywordtype">float</span> time);</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="comment">/* inherit Action */</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> run(<a class="code" href="class_action_target.html">ActionTarget</a>* target,<span class="keywordtype">float</span> dt,<span class="keywordtype">float</span>* out);</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> restart();</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="comment">/* inherit FsObject */</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* className();</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordtype">void</span> setPauseTime(<span class="keywordtype">float</span> time){m_lifeTime=time;}</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordtype">float</span> getPauseTime(){<span class="keywordflow">return</span> m_lifeTime;}</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="class_pause_action.html">PauseAction</a>();</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordtype">void</span> initTotalTime(<span class="keywordtype">float</span> time){ m_lifeTime=time; }</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keyword">private</span>:</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordtype">float</span> m_elapse;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordtype">float</span> m_lifeTime;</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> };</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> NS_FS_END</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="preprocessor">#endif </span><span class="comment">/*_FS_PAUSE_ACTION_H_*/</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div>
<div class="ttc" id="class_action_html"><div class="ttname"><a href="class_action.html">Action</a></div><div class="ttdef"><b>Definition:</b> <a href="_fs_action_8h_source.html#l00042">FsAction.h:42</a></div></div>
<div class="ttc" id="class_action_target_html"><div class="ttname"><a href="class_action_target.html">ActionTarget</a></div><div class="ttdef"><b>Definition:</b> <a href="_fs_action_target_8h_source.html#l00041">FsActionTarget.h:41</a></div></div>
<div class="ttc" id="class_pause_action_html"><div class="ttname"><a href="class_pause_action.html">PauseAction</a></div><div class="ttdef"><b>Definition:</b> <a href="_fs_pause_action_8h_source.html#l00036">FsPauseAction.h:36</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Jan 23 2015 17:21:21 for Faeris by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
| FSource/FDesign-Document | doxygen/output/html/_fs_pause_action_8h_source.html | HTML | mit | 16,044 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>BT9035: 只有 IE 和 Opera 的 HTMLDOMNode 有 removeNode 方法 - W3Help</title>
<meta name="keywords" content="removeNode">
<meta name="description" content="BT9035: 只有 IE 和 Opera 的 HTMLDOMNode 有 removeNode 方法">
<link rel="stylesheet" type="text/css" href="../css/common.css" media="all">
<link rel="stylesheet" type="text/css" href="../css/article.css" media="all">
</head>
<body>
<div id="w3h_container">
<div id="w3h_header">
<div class="header_sidebar">
<h1 class="logo"><a href="../../index.html"><span>W3Help</span></a></h1>
</div>
<div class="header_content">
<ul class="navigation">
<li class="first_item"><a href="../../index.html">首页</a></li><li><a
href="../home/events.html">活动</a></li><li><a href="../home/news.html">新闻</a></li><li><a
href="../home/forum.html">论坛</a></li><li class="last_item"><a href="../home/about.html">关于我们</a></li>
<li class="search_item">
<form action="http://w3help.org/zh-cn/home/search.html" method="get">
<p><input name="key" id="keyInput" value="" onfocus="focusKey(this)" onblur="blurKey(this)" title="搜索"
class="text"></p>
<p><input id="search_submit" type="image" src="../images/search_button.gif" alt="搜索"></p>
</form>
</li>
</ul>
</div>
</div>
<div id="w3h_body">
<div class="body_sidebar">
<div class="logo_shadow"></div>
<h2 class="category"><span><a href="../home/standards.html">标准</a></span></h2>
<ul class="theme"><li><a href="../standards/index.html">W3C 标准</a></li><li><a
href="../home/glossary.html">词汇表</a></li></ul>
<h2 class="category"><span><a href="../home/compatibility.html">兼容性</a></span></h2>
<ul class="theme"><li><a href="index.html" class="current">根本原因</a></li><li><a
href="../kb/index.html">知识库</a></li><li><a href="../casestudies/index.html">案例分析</a></li></ul>
</div>
<div class="body_content">
<p id="printButton"><a href="javascript:printArticle()" title="打印本文">打印</a></p>
<ul class="breadcrumbs"><li><a href="../../index.html" name="top">首页</a><span>»</span></li><li><a
href="../home/compatibility.html">兼容性</a><span>»</span></li><li><a
href="index.html">根本原因</a><span>»</span></li><li class="current">文章正文</li></ul>
<h1 class="title">BT9035: 只有 IE 和 Opera 的 HTMLDOMNode 有 removeNode 方法</h1>
<ul class="toc"><li><a href="#standard_reference">标准参考</a><span>•</span></li><li><a
href="#description">问题描述</a><span>•</span></li><li><a href="#influence">造成的影响</a><span>•</span></li><li><a
href="#impacted_browsers">受影响的浏览器</a><span>•</span></li><li><a
href="#analysis_of_issues">问题分析</a><span>•</span></li><li><a
href="#solutions">解决方案</a><span>•</span></li><li><a href="#see_also">参见</a></li></ul>
<div id="w3h_content">
<address class="author">作者:王军</address>
<h2 id="standard_reference">标准参考</h2>
<p>无。</p>
<h2 id="description">问题描述</h2>
<p>只有 IE 和 Opera 的 HTMLDOMNode 有 removeNode 方法,其他浏览器则不支持。</p>
<h2 id="influence">造成的影响</h2>
<p>该问题将造成某些使用本特性设计的功能在非 IE 和 Opera 浏览器中不能实现。</p>
<h2 id="impacted_browsers">受影响的浏览器</h2>
<table class="list">
<tr>
<th>IE6 IE7 IE8 Opera</th>
<td></td>
</tr>
</table>
<h2 id="analysis_of_issues">问题分析</h2>
<p>HTMLDOMNode.removeNode 是 IE 浏览器的特性,Opera 也实现了该方法。</p>
<p>该方法的简介如下:</p>
<dl><dt>removeNode</dt><dd><pre>oRemoved = object.removeNode( [bRemoveChildren])</pre>
将目标节从文档树中删除,返回目标节点。是否删除目标节点的子节点由参数 bRemoveChildren 决定,其默认值为 false,即仅删除目标节点,保留子节点。</dd></dl>
<p>关于 removeNode 的更多信息,请参考 MSDN <a
href="http://msdn.microsoft.com/zh-cn/library/ms536708(en-us,VS.85).aspx">removeNode Method</a>。</p>
<h2 id="solutions">解决方案</h2>
<p>不要使用 IE 的特性设计页面代码。</p>
<p>或者针对非 IE 浏览器使用标准方法实现,如:</p>
<pre>if(window.Node&&!window.opera){ Node.prototype.removeNode=function(removeChildren){
if(removeChildren||!this.hasChildNodes()){ return this.parentNode.removeChild(this); } var
$parent=this.parentNode; var $nextSibling=this.nextSibling; var
$childNodes=$parent.removeChild(this).childNodes; while($childNodes.length){
$nextSibling?$parent.insertBefore($childNodes[0],$nextSibling):$parent.appendChild($childNodes[0]); }
return this; } }</pre>
<p class="comment">注:IE 中没有内置函数 Node,即没有节点的“构造函数”。</p>
<h2 id="see_also">参见</h2>
<h3>知识库</h3>
<ul class="see_also"><li><a href="#">...</a></li></ul>
<h3>相关问题</h3>
<ul class="see_also"><li><a href="#">...</a></li></ul>
<div class="appendix">
<h2>测试环境</h2>
<table class="list">
<tr>
<th>操作系统版本:</th>
<td>Windows 7 Ultimate build 7600</td>
</tr>
<tr>
<th>浏览器版本:</th>
<td>
IE6
<br>
IE7
<br>
IE8
<br>
Firefox 3.6
<br>
Chrome 4.0.302.3 dev
<br>
Safari 4.0.4
<br>
Opera 10.51
</td>
</tr>
<tr>
<th>测试页面:</th>
<td><a href="../../tests/BT9035/removeNode.html">removeNode.html</a></td>
</tr>
<tr>
<th>本文更新时间:</th>
<td>2010-07-18</td>
</tr>
</table>
<h2>关键字</h2>
<p>removeNode</p>
</div>
<div id="forumLink">
<div>本篇文章正在公测阶段,错误在所难免,欢迎大家提出宝贵的意见和建议。</div>
<a href="http://forum.csdn.net/SList/CrossBrowser/">发表评论 »</a>
</div>
</div>
</div>
</div>
</div>
<div id="w3h_footer">
<div class="footer_content">
<ul><li><a href="http://www.google.com/"><img src="../logo/google.gif" alt="Google"></a></li><li><a
href="http://www.chinaw3c.org/"><img src="../logo/w3c-china.gif" alt="W3C-China"></a></li><li><a
href="http://www.mozillaonline.com/"><img src="../logo/firefox.gif" alt="FireFox"></a></li><li><a
href="http://www.csdn.net/"><img src="../logo/csdn.gif" alt="CSDN"></a></li><li><a
href="http://www.w3school.com.cn/"><img src="../logo/w3school.gif" alt="W3School"></a></li><li><a
href="http://www.w3ctech.com/"><img src="../logo/web-club.gif" alt="w3ctech"></a></li></ul>
<p class="copyright">
<a rel="license" href="http://creativecommons.org/licenses/by/3.0/"><img alt="知识共享许可协议" style="border-width:0"
src="http://i.creativecommons.org/l/by/3.0/88x31.png"></a>
<br>
本作品采用<a rel="license" href="http://creativecommons.org/licenses/by/3.0/">知识共享署名 3.0 Unported许可协议</a>进行许可。
<br>
<br>
<a href="http://www.miibeian.gov.cn/">Published By Xor</a>
</p>
<p class="w3cIcon"><a href="http://validator.w3.org/check?uri=referer"><img src="../images/valid-xhtml10.gif"
alt="Valid XHTML 1.0 Strict"></a></p>
</div>
</div>
</body>
</html> | dota8/dota8.github.io | zh-cn/causes/BT9035.html | HTML | mit | 8,959 |
<div layout="row" layout-wrap>
<ui-view flex="100"></ui-view>
<div flex="100" data-ng-show="vm.tickets">
<md-card flex layout="row">
<md-button aria-label="group-settings"
data-ng-if="vm.super ||vm.user ||vm.admin || vm.module.$rights === 'c' || vm.module.$rights === 'b' || vm.module.$rights === 'a'"
data-ng-click="vm.openCreateTicket($event)"
class="md-fab md-raised">
<md-tooltip data-md-direction="down">
{{ 'TICKET_CREATE' | translate }}
</md-tooltip>
<md-icon style="color: #808080;">add</md-icon>
</md-button>
<md-button class="md-fab md-raised"
data-ng-if="vm.super || vm.admin"
data-ui-sref="main.modulesAll({id: vm.module.id})">
<md-tooltip data-md-direction="down">
{{ 'ALL_TICKETS' | translate }}
</md-tooltip>
<md-icon style="color: #808080;">view_list</md-icon>
</md-button>
<div flex></div>
<md-button class="md-fab md-primary" aria-label="Tickets En Cours" data-ui-sref="main.modulesCurrent({id: vm.module.id})">
<md-icon>chat</md-icon>
<span>{{vm.ticketsCurrent.length + vm.ticketsCurrentCPM.length + vm.ticketsCurrentCC.length}}</span>
<md-tooltip data-md-direction="down">
Tickets En Cours
</md-tooltip>
</md-button>
<md-button class="md-fab" aria-label="Tickets Non Lus" data-ui-sref="main.modulesNotRead({id: vm.module.id})">
<md-icon>announcement</md-icon>
<span>{{vm.ticketsNotRead.length}}</span>
<md-tooltip data-md-direction="down">
Tickets Non Lus
</md-tooltip>
</md-button>
<md-button aria-label="group-settings"
data-ng-if="vm.admin || vm.module.$rights === 'c' || vm.module.$rights === 'b' || vm.module.$rights === 'a'"
data-ui-sref="main.modulesStats({id: vm.module.id})"
class=" md-fab md-raised">
<md-tooltip data-md-direction="down">
{{ 'HOME_PAGE_MODULES_STAT_CPM' | translate }}
</md-tooltip>
<md-icon style="color: #808080;">equalizer</md-icon>
</md-button>
</md-card>
<md-card>
<md-tabs md-dynamic-height aria-label="select status" >
<md-tab data-ng-repeat="status in vm.module.status | filter: {name: '!Injustifié'}" class="md-accent" label="{{status.name}}" md-on-select="vm.filterByStatusTickets(status.name)">
<md-tab-body><br/>
<md-data-table-container>
<table id="table_{{$index}}" class="table">
<thead>
<th style="text-align:center">{{ 'TABLE_NUMBER' | translate }}</th>
<th style="text-align:center">{{ 'TABLE_NAME' | translate }}</th>
<th style="text-align:center">{{ 'TABLE_SUBJECT' | translate }}</th>
<th style="text-align:center">{{ 'TABLE_STATUS' | translate }}</th>
<th style="text-align:center">{{ 'TABLE_CREATED' | translate }}</th>
<th style="text-align:center">{{ 'TABLE_RESPONSE' | translate }}</th>
<th style="text-align:center">J+</th>
<th style="text-align:center" data-ng-repeat="(key, field) in vm.module.ticketFields">{{field.name}}</th>
</thead>
<tbody id="table_export">
<tr>
<th style="text-align:center" hidden>#</th>
<th style="text-align:center" hidden>Nom</th>
<th style="text-align:center" hidden>Sujet</th>
<th style="text-align:center" hidden>Statut</th>
<th style="text-align:center" hidden>Créé</th>
<th style="text-align:center" hidden>Réponse par</th>
<th style="text-align:center" hidden>J+</th>
<th style="text-align:center" data-ng-repeat="(key, field) in vm.module.ticketFields" hidden>{{field.name}}</th>
</tr>
<tr ng-repeat="ticket in vm.tickets track by $index" data-ng-click="vm.openTicketView($event, ticket.id)">
<td style="text-align:center; whitespace:nowrap" id="id">{{ticket.id}}</td>
<td style="text-align:center" id="user">{{ticket.user.name}}</td>
<td style="text-align:center" id="subject">{{ticket.subject}}</td>
<td style="text-align:center" id="status">{{ticket.status}}</td>
<td style="text-align:center" id="date">{{ticket.created | date : 'dd-MM-yyyy'}} {{ticket.created | date : 'HH:mm:ss'}}</td>
<td style="text-align:center" id="answer">{{ticket.lastResponse}}</td>
<td style="text-align:center" id="nbjours">{{ticket.created | amDifference : null : 'minute' | amDurationFormat : 'minute'}}</td>
<td data-ng-repeat="(key, field) in vm.module.ticketFields " style="text-align:center" id="key">
<div data-ng-if="field.name === 'Attribué à'">
{{ticket[key].name}}
</div>
<div data-ng-if="field.type !== 'dropdouble' && field.name !== 'Attribué à'">
{{ticket[key]}}
</div>
<div data-ng-if="field.type === 'dropdouble'">
{{ticket[key].first + ' - ' + ticket[key].second}}
</div>
</td>
</tr>
</tbody>
</table>
<div data-ng-show="!vm.tickets" layout-fill layout="row" layout-align="center">
<md-progress-circular class="md-accent" md-mode="indeterminate"></md-progress-circular>
</div>
</md-tab-body>
</md-tab>
</md-tabs>
</md-card>
</div>
<div data-ng-hide="vm.tickets" layout-fill layout="row" layout-align="center" style="padding-top: 50px;">
<md-progress-circular class="md-accent" md-mode="indeterminate"></md-progress-circular>
</div>
</div>
<div ng-controller="speedDialController as ctrl">
<md-fab-speed-dial class="fab md-scale" data-md-direction="up" md-open="ctrl.isOpen" ng-mouseenter="ctrl.isOpen=true" ng-mouseleave="ctrl.isOpen=false">
<md-fab-trigger>
<md-button aria-label="search" data-ui-sref="main.modules.search({id: vm.moduleId})" class="md-fab accent">
<md-tooltip data-md-direction="left">
{{ 'TICKET_BUTTON_SEARCH' | translate }}
</md-tooltip>
<md-icon>search</md-icon>
</md-button>
</md-fab-trigger>
<md-fab-actions data-ng-if="vm.admin || vm.module.$rights === 'a'">
<md-button aria-label="group-settings" data-ui-sref="main.modules.edit({id: vm.moduleId})"
class="md-fab md-raised md-mini">
<md-tooltip data-md-direction="left">
{{ 'TICKET_BUTTON_EDIT' | translate }}
</md-tooltip>
<md-icon style="color: #808080;">settings</md-icon>
</md-button>
</md-fab-actions>
</md-fab-speed-dial>
</div>
<script data-ng-if="vm.tickets">
var tf = [];
var flag = true;
$('#table_0 tbody').on('inview', function(event, isInView) {
if (isInView && flag) {
for (var i = 0; i < $('table').length; i++) {
tf[i] = new TableFilter(document.querySelector('#table_'+i), {base_path: '/tablefilter/'
,flts_row_css_class: "test",
fixed_headers: true ,
flt_css_class: "input-sm form-control",
filters_row_index: 1,
col_3: 'disabled',
col_7: 'select',
col_8: 'select',
paging: true,
results_per_page: ['Tickets par page: ', [10,25,50,100]],
remember_grid_values: true,
remember_page_number: true,
remember_page_length: true,
loader: true,
alternate_rows: true,
btn_reset: true,
btn_reset_text: "Clear",
extensions:[{
name: 'sort',
types: [
'number', 'string', 'string',
'string', 'string', 'string',
'string', 'string', 'string',
'number', 'number'
]
}]
});
tf[i].init();
}
flag = false;
}
else{
console.log('TableFilter Error');
}
});
</script>
| alvin97231/Dev_Wr_RethinkDB | app/partials/modules/modules.html | HTML | mit | 10,961 |
<div class="card panel panel-default">
<div class="panel-body"><a cd-nodrag class='link link-unstyled' href="#/cards/{{card.id}}">{{card.name}}</a></div>
<div class="panel-footer">
<span ng-repeat="label in card.labels" class="label label-info">{{label}}</span>
</div>
</div>
| netxph/cards | app/views/card-partial.html | HTML | mit | 296 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title>Corona Docs: guide > Eventss > detectEvents </title>
<meta name="revised" content="27-Sep-2013" />
<meta name="description" content="Whether you're new to Corona or want to take your app to the next level, we've got a wealth of resources for you including extensive documentation, API reference, sample code, and videos. guide > Eventss > detectEvents " />
<style type="text/css">
table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
margin: 0; padding: 0; vertical-align: baseline; border: none; }
table.sourceCode { width: 100%; }
td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
td.sourceCode { padding-left: 5px; }
code > span.kw { color: #007020; font-weight: bold; }
code > span.dt { color: #902000; }
code > span.dv { color: #40a070; }
code > span.bn { color: #40a070; }
code > span.fl { color: #40a070; }
code > span.ch { color: #4070a0; }
code > span.st { color: #4070a0; }
code > span.co { color: #60a0b0; font-style: italic; }
code > span.ot { color: #007020; }
code > span.al { color: #ff0000; font-weight: bold; }
code > span.fu { color: #06287e; }
code > span.er { color: #ff0000; font-weight: bold; }
</style>
<link rel="stylesheet" href="../../../css/style.css" type="text/css" />
<script src="//www.coronalabs.com/wp-content/themes/corona-labs/js/docs.js"></script>
</head>
<body>
<div class="header"></div>
<div class="title">
<span class="titleimg" onclick="window.location='http://docs.coronalabs.com/'"></span>
<div id="nav">
<ul>
<li><a href="../../../api/index.html">SDK APIs</a></li>
<li><a href="../../../native/index.html">Enterprise APIs</a></li>
<li><a href="../../../plugin/index.html">Plugins</a></li>
<li><a href="../../index.html">Guides</a></li>
<li><a href="http://www.coronalabs.com/resources/tutorials/">Tutorials</a></li>
</ul>
<div id="resources-link"><a href="http://www.coronalabs.com/resources/">Corona Resources</a> ▹</div>
</div>
</div>
<div class="SearchBar">
<form action="http://www.google.com/cse" id="cse-search-box">
<input type="hidden" name="cx" value="009283852522218786394:g40gqt2m6rq" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" id="q" autocomplete="off" size="40" style="width:150px;float:left" />
<input type="submit" name="sa" value="Search" style="float:right; font-size: 13px;" />
</form>
</div>
<div id="TOC">
<ul>
<li><a href="#basic-interactivity-and-event-detection">Basic Interactivity and Event Detection</a><ul>
<li><a href="#runtime-events">Runtime Events</a></li>
<li><a href="#local-events">Local Events</a></li>
<li><a href="#function-and-table-listeners">Function and Table Listeners</a></li>
<li><a href="#understanding-hit-events">Understanding Hit Events</a><ul>
<li><a href="#setting-focus">Setting Focus</a></li>
<li><a href="#tap-touch-multitouch">Tap / Touch / Multitouch</a></li>
</ul></li>
<li><a href="#event-listeners">Event Listeners</a></li>
<li><a href="#registering-events">Registering Events</a></li>
<li><a href="#removing-event-listeners">Removing Event Listeners</a></li>
</ul></li>
</ul>
</div>
<div id="breadcrumb">
<a href="http://docs.coronalabs.com">Ξ</a> ▸ <a href="../../index.html">guide</a> ▸ [events][guide.events] ▸ <a href="index.html">detectEvents</a>
</div>
<div class="section level1" id="basic-interactivity-and-event-detection">
<h1><a href="#TOC">Basic Interactivity and Event Detection</a></h1>
<p><strong>Events</strong> are the foundation of interactive applications in Corona. They're used to trigger responses in your app like a tap on the screen, detection of a specific system event, completion of a timer, collision of two physical bodies, etc. Events are detected using the <a href="../../../api/type/EventListener/addEventListener.html">addEventListener()</a> object method which directs Corona to track (listen for) the associated event within a listener function. See the <a href="#registerevents">Registering Events</a> section for details.</p>
<div class="guides-toc">
<ul>
<li><a href="#runtime">Runtime Events</a></li>
<li><a href="#local">Local Events</a></li>
<li><a href="#functionvstable">Function and Table Listeners</a></li>
<li><a href="#hit">Understanding Hit Events</a></li>
<li><a href="#listeners">Event Listeners</a></li>
<li><a href="#registerevents">Registering Events</a></li>
<li><a href="#remove">Removing Event Listeners</a></li>
</ul>
</div>
<a id="runtime"></a>
<div class="section level2" id="runtime-events">
<h2><a href="#TOC">Runtime Events</a></h2>
<p><strong>Runtime events</strong> are dispatched to the global Runtime listener. These events are not directed at any particular object; rather, they are broadcast to all interested listeners. Common Runtime events include the following:</p>
<ul>
<li><p><code>enterFrame</code> events occur at the frames-per-second interval of the application (30 or 60).</p></li>
<li><p><code>system</code> events are dispatched when certain external events occur, such as when the device needs to suspend or exit the application.</p></li>
<li><p><code>orientation</code> events occur when the device orientation changes from portrait to landscape or vice-versa.</p></li>
</ul>
<p>The following code shows how an app can respond to <code>system</code> events:</p>
<pre class="sourceCode lua"><code class="sourceCode lua"><span class="kw">local</span> <span class="kw">function</span> onSystemEvent<span class="ot">(</span> <span class="kw">event</span> <span class="ot">)</span>
<span class="kw">local</span> <span class="kw">eventType</span> <span class="ot">=</span> <span class="kw">event</span><span class="ot">.</span><span class="kw">type</span>
<span class="kw">if</span> <span class="ot">(</span> <span class="kw">eventType</span> <span class="ot">==</span> <span class="st">"applicationSuspend"</span> <span class="ot">)</span> <span class="kw">then</span>
<span class="co">--perform all necessary actions for when the device suspends the application, i.e. during a phone call</span>
<span class="kw">elseif</span> <span class="ot">(</span> <span class="kw">eventType</span> <span class="ot">==</span> <span class="st">"applicationResume"</span> <span class="ot">)</span> <span class="kw">then</span>
<span class="co">--perform all necessary actions for when the app resumes from a suspended state</span>
<span class="kw">end</span>
<span class="kw">end</span>
<span class="kw">Runtime</span>:addEventListener<span class="ot">(</span> <span class="st">"system"</span>, <span class="kw">onSystemEvent</span> <span class="ot">)</span> </code></pre>
<a id="local"></a>
</div>
<div class="section level2" id="local-events">
<h2><a href="#TOC">Local Events</a></h2>
<p><strong>Local events</strong> are sent to a single listener and are not broadcast to the global Runtime. Common local events include the following:</p>
<ul>
<li><p><code>hit</code> events occur when the user touches the device screen.</p></li>
<li><p><code>collision</code> events occur when two <a href="../../../api/library/physics/index.html">physics</a> objects collide.</p></li>
<li><p><code>timer</code> events occur when a running <a href="../../../api/event/timer/index.html">timer</a> completes its duration.</p></li>
<li><p><code>audio</code> events can be dispatched when a <a href="../../../api/event/audio/index.html">audio</a> file finishes playing.</p></li>
</ul>
<p>Local events vary in usage and are discussed further in their topic-appropriate <a href="../../index.html">guides</a> and/or the <a href="../../../api/index.html">API Reference</a>.</p>
<a id="functionvstable"></a>
</div>
<div class="section level2" id="function-and-table-listeners">
<h2><a href="#TOC">Function and Table Listeners</a></h2>
<p>Listeners can be either functions or table/display objects.</p>
<p>When a <strong>function listener</strong> is invoked, it is passed a table representing the event:</p>
<pre class="sourceCode lua"><code class="sourceCode lua"><span class="kw">local</span> <span class="kw">myListener</span> <span class="ot">=</span> <span class="kw">function</span><span class="ot">(</span> <span class="kw">event</span> <span class="ot">)</span>
<span class="fu">print</span><span class="ot">(</span> <span class="st">"Listener called with event of type: "</span><span class="ot">..</span><span class="kw">event</span><span class="ot">.</span><span class="kw">name</span> <span class="ot">)</span>
<span class="kw">end</span>
<span class="kw">Runtime</span>:addEventListener<span class="ot">(</span> <span class="st">"touch"</span>, <span class="kw">myListener</span> <span class="ot">)</span>
<span class="kw">Runtime</span>:addEventListener<span class="ot">(</span> <span class="st">"enterFrame"</span>, <span class="kw">myListener</span> <span class="ot">)</span></code></pre>
<p>Sometimes a function listener is not convenient because certain variables are not in scope when the listener is invoked. In these situations, <strong>table listeners</strong> should be used. Table listeners must have an instance method with a name corresponding to the event name:</p>
<pre class="sourceCode lua"><code class="sourceCode lua"><span class="co">--assume myClass and myClass:new() already exist</span>
<span class="kw">function</span> <span class="kw">myClass</span>:enterFrame<span class="ot">(</span> <span class="kw">event</span> <span class="ot">)</span>
<span class="fu">print</span><span class="ot">(</span> <span class="st">"enterFrame called at time: "</span><span class="ot">..</span><span class="kw">event</span><span class="ot">.</span><span class="kw">time</span> <span class="ot">)</span>
<span class="kw">end</span>
<span class="kw">function</span> <span class="kw">myClass</span>:touch<span class="ot">(</span> <span class="kw">event</span> <span class="ot">)</span>
<span class="fu">print</span><span class="ot">(</span> <span class="st">"touch occurred at: "</span><span class="ot">..</span><span class="kw">event</span><span class="ot">.</span><span class="kw">x</span><span class="ot">..</span><span class="st">","</span><span class="ot">..</span><span class="kw">event</span><span class="ot">.</span><span class="kw">y</span> <span class="ot">)</span>
<span class="kw">end</span>
<span class="kw">local</span> <span class="kw">myObject</span> <span class="ot">=</span> <span class="kw">myClass</span>:new<span class="ot">()</span>
<span class="kw">Runtime</span>:addEventListener<span class="ot">(</span> <span class="st">"touch"</span>, <span class="kw">myObject</span> <span class="ot">)</span>
<span class="kw">Runtime</span>:addEventListener<span class="ot">(</span> <span class="st">"enterFrame"</span>, <span class="kw">myObject</span> <span class="ot">)</span></code></pre>
<a id="hit"></a>
</div>
<div class="section level2" id="understanding-hit-events">
<h2><a href="#TOC">Understanding Hit Events</a></h2>
<p>When the user touches the screen, a <strong>hit</strong> event is generated and dispatched to display objects in the display hierarchy. Only those objects that intersect the hit location on the screen will receive the event. Hit events propagate through these objects in a particular order. By default, the first object to receive the event is the front-most display object in the display hierarchy that intersects the hit location. The next object to receive the event is the next object back in the hierarchy that intersects the hit location, and so on. For more information on display objects, please read the <a href="../../media/displayObjects/index.html">Display Objects</a> guide.</p>
<p>Hit events propagate until they are <strong>handled</strong>. This means that if you have multiple objects overlaying each other in the display hierarchy, and a hit event listener has been applied to each, the hit event will propagate through <strong>all</strong> of these objects. However, you can stop propagation to the next underlying object by telling Corona that the event has been handled. This is as simple as returning <code>true</code> from the event listener — this stops the propagation cycle and prevents any underlying objects from responding to the hit event.</p>
<pre class="sourceCode lua"><code class="sourceCode lua"><span class="kw">local</span> <span class="kw">function</span> myTouchListener<span class="ot">(</span> <span class="kw">event</span> <span class="ot">)</span>
<span class="kw">if</span> <span class="ot">(</span> <span class="kw">event</span><span class="ot">.</span><span class="kw">phase</span> <span class="ot">==</span> <span class="st">"began"</span> <span class="ot">)</span> <span class="kw">then</span>
<span class="co">--code executed when the button is touched</span>
<span class="fu">print</span><span class="ot">(</span> <span class="st">"object touched = "</span><span class="ot">..</span>tostring<span class="ot">(</span><span class="kw">event</span><span class="ot">.</span><span class="kw">target</span><span class="ot">)</span> <span class="ot">)</span> <span class="co">--'event.target' is the touched object</span>
<span class="kw">end</span>
<span class="kw">return</span> <span class="kw">true</span> <span class="co">--prevents touch propagation to underlying objects</span>
<span class="kw">end</span>
<span class="kw">local</span> <span class="kw">myButton</span> <span class="ot">=</span> <span class="kw">display</span><span class="ot">.</span>newRect<span class="ot">(</span> <span class="dv">100</span>, <span class="dv">100</span>, <span class="dv">200</span>, <span class="dv">50</span> <span class="ot">)</span>
<span class="kw">myButton</span>:addEventListener<span class="ot">(</span> <span class="st">"touch"</span>, <span class="kw">myTouchListener</span> <span class="ot">)</span></code></pre>
<p>Note that if the hit event is still not handled after traversal through the entire display hierarchy, it is broadcast as a global event to the Runtime listener.</p>
<div class="section level3" id="setting-focus">
<h3><a href="#TOC">Setting Focus</a></h3>
<p>You can direct all hit events to a specific display object by setting the <strong>focus</strong> on that object. Consider a typical button. If the user touches the button and — without lifting — slides off the button, the button generally should not trigger an action. Likewise, if the touch slides off the button and intersects another interactive object, you probably don't want that object to react since the touch began on the button.</p>
<p>This is easily solved by setting focus on the display object which instructs the system to deliver all future hit events to that display object.</p>
<pre class="sourceCode lua"><code class="sourceCode lua"><span class="kw">local</span> <span class="kw">function</span> myTouchListener<span class="ot">(</span> <span class="kw">event</span> <span class="ot">)</span>
<span class="kw">if</span> <span class="ot">(</span> <span class="kw">event</span><span class="ot">.</span><span class="kw">phase</span> <span class="ot">==</span> <span class="st">"began"</span> <span class="ot">)</span> <span class="kw">then</span>
<span class="kw">display</span><span class="ot">.</span>getCurrentStage<span class="ot">()</span>:setFocus<span class="ot">(</span> <span class="kw">event</span><span class="ot">.</span><span class="kw">target</span> <span class="ot">)</span> <span class="co">--'event.target' is the touched object</span>
<span class="kw">elseif</span> <span class="ot">(</span> <span class="kw">event</span><span class="ot">.</span><span class="kw">phase</span> <span class="ot">==</span> <span class="st">"ended"</span> <span class="kw">or</span> <span class="kw">event</span><span class="ot">.</span><span class="kw">phase</span> <span class="ot">==</span> <span class="st">"cancelled"</span> <span class="ot">)</span> <span class="kw">then</span>
<span class="kw">display</span><span class="ot">.</span>getCurrentStage<span class="ot">()</span>:setFocus<span class="ot">(</span> <span class="kw">nil</span> <span class="ot">)</span> <span class="co">--setting focus to 'nil' removes the focus</span>
<span class="kw">end</span>
<span class="kw">return</span> <span class="kw">true</span>
<span class="kw">end</span>
<span class="kw">local</span> <span class="kw">myButton</span> <span class="ot">=</span> <span class="kw">display</span><span class="ot">.</span>newRect<span class="ot">(</span> <span class="dv">100</span>, <span class="dv">100</span>, <span class="dv">200</span>, <span class="dv">50</span> <span class="ot">)</span>
<span class="kw">myButton</span>:addEventListener<span class="ot">(</span> <span class="st">"touch"</span>, <span class="kw">myTouchListener</span> <span class="ot">)</span></code></pre>
</div>
<div class="section level3" id="tap-touch-multitouch">
<h3><a href="#TOC">Tap / Touch / Multitouch</a></h3>
<p>For more information on hit events and multitouch (more than one touch on the screen at the same time), please refer to the <a href="../touchMultitouch/index.html">Tap / Touch / Multitouch</a> guide.</p>
<a id="listeners"></a>
</div>
</div>
<div class="section level2" id="event-listeners">
<h2><a href="#TOC">Event Listeners</a></h2>
<p>As illustrated in each example above, events are dispatched to <strong>event listeners</strong> which are written as basic functions. An <code>event</code> argument is always dispatched to the function.</p>
<pre class="sourceCode lua"><code class="sourceCode lua"><span class="kw">local</span> <span class="kw">function</span> myTouchListener<span class="ot">(</span> <span class="kw">event</span> <span class="ot">)</span>
<span class="fu">print</span><span class="ot">(</span> <span class="st">"Touch X location"</span><span class="ot">..</span><span class="kw">event</span><span class="ot">.</span><span class="kw">x</span> <span class="ot">)</span>
<span class="fu">print</span><span class="ot">(</span> <span class="st">"Touch Y location"</span><span class="ot">..</span><span class="kw">event</span><span class="ot">.</span><span class="kw">y</span> <span class="ot">)</span>
<span class="kw">end</span>
<span class="kw">local</span> <span class="kw">myButton</span> <span class="ot">=</span> <span class="kw">display</span><span class="ot">.</span>newRect<span class="ot">(</span> <span class="dv">100</span>, <span class="dv">100</span>, <span class="dv">200</span>, <span class="dv">50</span> <span class="ot">)</span>
<span class="kw">myButton</span>:addEventListener<span class="ot">(</span> <span class="st">"touch"</span>, <span class="kw">myTouchListener</span> <span class="ot">)</span></code></pre>
<p>Notice how the <code>event</code> argument passed to the <code>myTouchListener</code> function contains both <code>x</code> and <code>y</code> properties that represent the point on the screen where the touch occurred. Properties associated with the <code>event</code> argument are unique to each event type — please refer to the <a href="../../../api/event/index.html">Events</a> API documentation for details.</p>
<a id="registerevents"></a>
</div>
<div class="section level2" id="registering-events">
<h2><a href="#TOC">Registering Events</a></h2>
<p>Events can be registered using the <a href="../../../api/type/EventListener/addEventListener.html">addEventListener()</a> object method. Just pass the string name of the event type and the name of the event listener function that should handle it.</p>
<pre class="sourceCode lua"><code class="sourceCode lua"><span class="co">--standard touch listener on an object</span>
<span class="kw">myButton</span>:addEventListener<span class="ot">(</span> <span class="st">"touch"</span>, <span class="kw">myTouchListener</span> <span class="ot">)</span>
<span class="co">--Runtime 'system' event listener</span>
<span class="kw">Runtime</span>:addEventListener<span class="ot">(</span> <span class="st">"system"</span>, <span class="kw">onSystemEvent</span> <span class="ot">)</span></code></pre>
<div class="guide-notebox-imp">
<div class="notebox-title-imp">
Important
</div>
<p>As shown above, two types of event listeners can be created with the <code>addEventListener()</code> object method: listeners attached to display objects and listeners attached to the global Runtime.</p>
<p>When you create a display object and add a <strong>local</strong> touch event listener to it, you essentially <strong>point</strong> to a block of code via reference to the function. This code resides in its own memory and it persists after the display object is removed. When that occurs, there's no way to sense future events on the object, so the local event listener is effectively removed for you. You don't need to explicitly remove it.</p>
<p><strong>Runtime</strong> event listeners, on the other hand, <strong>must</strong> be removed when you're finished using them. Otherwise, they'll continue to run because the Runtime event is global. Not only will this cause a memory leak, but if any functions executing in the Runtime attempt to reference object(s) that no longer exist, the program will crash. See <a href="#remove">Removing Event Listeners</a> below for more information.</p>
</div>
<a id="remove"></a>
</div>
<div class="section level2" id="removing-event-listeners">
<h2><a href="#TOC">Removing Event Listeners</a></h2>
<p>Most listeners, with the exception of Runtime listeners like <code>"enterFrame"</code>, will be removed automatically when the associated object is removed, for example when you call <a href="../../../api/type/DisplayObject/removeSelf.html">removeSelf()</a> or <a href="../../../api/library/display/remove.html">display.remove()</a>. However, you may need to explicitly remove an event listener without removing the object.</p>
<p>Removing an event listener is done using the built-in <a href="../../../api/type/EventListener/removeEventListener.html">removeEventListener()</a> object method.</p>
<p>This function is called in the same exact manner as <code>addEventListener()</code>. For example, if you want to stop listening for touch events on the <code>myButton</code> object, remove the listener as follows:</p>
<pre class="sourceCode lua"><code class="sourceCode lua"><span class="kw">myButton</span>:removeEventListener<span class="ot">(</span> <span class="st">"touch"</span>, <span class="kw">myTouchListener</span> <span class="ot">)</span></code></pre>
<p>Both the type and function name are required to remove the associated listener, because it's possible to assign multiple listeners of the same type to a single object. For instance, you could have two (or more) different listener functions assigned to the <code>"touch"</code> event of the <code>myButton</code> display object. Therefore, when calling <code>removeEventListener()</code>, you need to specify the type of event you want to stop listening for, as well as the listener function that was previously assigned to that event.</p>
<div id="footer">
<p style="font-size: 13px">
© 2013 Corona Labs Inc. All Rights Reserved. (Last updated: 27-Sep-2013)
</p>
<br />
<p>
<strong>Help us help you! Give us feedback on this page:</strong>
</p>
<ul>
<li>
<a href="https://coronalabs.wufoo.com/forms/z7p9w5/def/field3=guide.events.detectEvents.index&field4=Current+Public+Release+%282013%2E2076%29" target="_blank">Love it</a>
</li>
<li>
<a href="https://coronalabs.wufoo.com/forms/z7p9m3/def/field103=guide.events.detectEvents.index&field104=Current+Public+Release+%282013%2E2076%29" target="_blank">Like it, but...</a>
</li>
<li>
<a href="https://coronalabs.wufoo.com/forms/z7p8x1/def/field103=guide.events.detectEvents.index&field104=Current+Public+Release+%282013%2E2076%29" target="_blank">Hate it</a>
</li>
</ul>
</div>
</div>
</div>
</body>
</html> | tonytamsf/learning | corona/docs/guide/events/detectEvents/index.html | HTML | mit | 25,888 |
<div class="hero-categories">
<h2>Browse Categories</h2>
<ul class="nav nav-stacked">
<li ng-click="select($event, category)" class="nav-item" ng-repeat="category in categories"><a href="#" class="nav-link">{{ category.name }} <span>({{ category.objectsCount }})</span></a></li>
</ul><!-- /.nav -->
</div> | hlogeon/venvatst-angular | app/templates/events/directives/categories-list.html | HTML | mit | 325 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.