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
<html> <head></head> <body> <script async src="dist/pageA~pageB.chunk.js" charset="utf-8"></script> <script async src="dist/aPage.chunk.js" charset="utf-8"></script> <script async src="dist/pageA.bundle.js" charset="utf-8"></script> </body> </html>
domchen/typescript-plus
tests/cases/user/webpack/webpack/examples/hybrid-routing/pageA.html
HTML
apache-2.0
258
<!DOCTYPE html> <html> <head> <title>3.x JS API Starter App</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <link rel="stylesheet" type="text/css" href="http://js.arcgis.com/3.16/esri/css/esri.css"> <style> html,body,#mapDiv { padding:0; margin:0; height:100%; } </style> <script src="http://js.arcgis.com/3.16compact/"></script> <script> var map; require(["esri/map", "dojo/domReady!"], function(Map) { map = new Map("mapDiv", { center: [-122.68, 45.52], zoom: 10, basemap: "dark-gray" }); } ); </script> </head> <body> <div id="mapDiv"></div> </body> </html>
dmartine/geodev-hackerlabs
develop/jsapi3/create_starter_map/index.html
HTML
apache-2.0
775
<!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_60) on Sat Nov 19 21:36:50 KST 2016 --> <title>AbstractTWindow (Edgent v1.0.0)</title> <meta name="date" content="2016-11-19"> <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="AbstractTWindow (Edgent v1.0.0)"; } } catch(err) { } //--> var methods = {"i0":10,"i1":10,"i2":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete 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="class-use/AbstractTWindow.html">Use</a></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>Prev&nbsp;Class</li> <li><a href="../../../../../../org/apache/edgent/topology/spi/graph/ConnectorStream.html" title="class in org.apache.edgent.topology.spi.graph"><span class="typeNameLink">Next&nbsp;Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?org/apache/edgent/topology/spi/graph/AbstractTWindow.html" target="_top">Frames</a></li> <li><a href="AbstractTWindow.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</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">org.apache.edgent.topology.spi.graph</div> <h2 title="Class AbstractTWindow" class="title">Class AbstractTWindow&lt;T,K&gt;</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>org.apache.edgent.topology.spi.graph.AbstractTWindow&lt;T,K&gt;</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd><a href="../../../../../../org/apache/edgent/topology/TopologyElement.html" title="interface in org.apache.edgent.topology">TopologyElement</a>, <a href="../../../../../../org/apache/edgent/topology/TWindow.html" title="interface in org.apache.edgent.topology">TWindow</a>&lt;T,K&gt;</dd> </dl> <dl> <dt>Direct Known Subclasses:</dt> <dd><a href="../../../../../../org/apache/edgent/topology/spi/graph/TWindowImpl.html" title="class in org.apache.edgent.topology.spi.graph">TWindowImpl</a>, <a href="../../../../../../org/apache/edgent/topology/spi/graph/TWindowTimeImpl.html" title="class in org.apache.edgent.topology.spi.graph">TWindowTimeImpl</a></dd> </dl> <hr> <br> <pre>public abstract class <span class="typeNameLabel">AbstractTWindow&lt;T,K&gt;</span> extends java.lang.Object implements <a href="../../../../../../org/apache/edgent/topology/TWindow.html" title="interface in org.apache.edgent.topology">TWindow</a>&lt;T,K&gt;</pre> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ========== 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">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</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="../../../../../../org/apache/edgent/topology/TStream.html" title="interface in org.apache.edgent.topology">TStream</a>&lt;<a href="../../../../../../org/apache/edgent/topology/spi/graph/AbstractTWindow.html" title="type parameter in AbstractTWindow">T</a>&gt;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/edgent/topology/spi/graph/AbstractTWindow.html#feeder--">feeder</a></span>()</code> <div class="block">Get the stream that feeds this window.</div> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code><a href="../../../../../../org/apache/edgent/function/Function.html" title="interface in org.apache.edgent.function">Function</a>&lt;<a href="../../../../../../org/apache/edgent/topology/spi/graph/AbstractTWindow.html" title="type parameter in AbstractTWindow">T</a>,<a href="../../../../../../org/apache/edgent/topology/spi/graph/AbstractTWindow.html" title="type parameter in AbstractTWindow">K</a>&gt;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/edgent/topology/spi/graph/AbstractTWindow.html#getKeyFunction--">getKeyFunction</a></span>()</code> <div class="block">Returns the key function used to map tuples to partitions.</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code><a href="../../../../../../org/apache/edgent/topology/Topology.html" title="interface in org.apache.edgent.topology">Topology</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/edgent/topology/spi/graph/AbstractTWindow.html#topology--">topology</a></span>()</code> <div class="block">Topology this element is contained in.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class&nbsp;java.lang.Object</h3> <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.org.apache.edgent.topology.TWindow"> <!-- --> </a> <h3>Methods inherited from interface&nbsp;org.apache.edgent.topology.<a href="../../../../../../org/apache/edgent/topology/TWindow.html" title="interface in org.apache.edgent.topology">TWindow</a></h3> <code><a href="../../../../../../org/apache/edgent/topology/TWindow.html#aggregate-org.apache.edgent.function.BiFunction-">aggregate</a>, <a href="../../../../../../org/apache/edgent/topology/TWindow.html#batch-org.apache.edgent.function.BiFunction-">batch</a></code></li> </ul> </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="topology--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>topology</h4> <pre>public&nbsp;<a href="../../../../../../org/apache/edgent/topology/Topology.html" title="interface in org.apache.edgent.topology">Topology</a>&nbsp;topology()</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../org/apache/edgent/topology/TopologyElement.html#topology--">TopologyElement</a></code></span></div> <div class="block">Topology this element is contained in.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="../../../../../../org/apache/edgent/topology/TopologyElement.html#topology--">topology</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/edgent/topology/TopologyElement.html" title="interface in org.apache.edgent.topology">TopologyElement</a></code></dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>Topology this element is contained in.</dd> </dl> </li> </ul> <a name="getKeyFunction--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getKeyFunction</h4> <pre>public&nbsp;<a href="../../../../../../org/apache/edgent/function/Function.html" title="interface in org.apache.edgent.function">Function</a>&lt;<a href="../../../../../../org/apache/edgent/topology/spi/graph/AbstractTWindow.html" title="type parameter in AbstractTWindow">T</a>,<a href="../../../../../../org/apache/edgent/topology/spi/graph/AbstractTWindow.html" title="type parameter in AbstractTWindow">K</a>&gt;&nbsp;getKeyFunction()</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../org/apache/edgent/topology/TWindow.html#getKeyFunction--">TWindow</a></code></span></div> <div class="block">Returns the key function used to map tuples to partitions.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="../../../../../../org/apache/edgent/topology/TWindow.html#getKeyFunction--">getKeyFunction</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/edgent/topology/TWindow.html" title="interface in org.apache.edgent.topology">TWindow</a>&lt;<a href="../../../../../../org/apache/edgent/topology/spi/graph/AbstractTWindow.html" title="type parameter in AbstractTWindow">T</a>,<a href="../../../../../../org/apache/edgent/topology/spi/graph/AbstractTWindow.html" title="type parameter in AbstractTWindow">K</a>&gt;</code></dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>Key function used to map tuples to partitions.</dd> </dl> </li> </ul> <a name="feeder--"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>feeder</h4> <pre>public&nbsp;<a href="../../../../../../org/apache/edgent/topology/TStream.html" title="interface in org.apache.edgent.topology">TStream</a>&lt;<a href="../../../../../../org/apache/edgent/topology/spi/graph/AbstractTWindow.html" title="type parameter in AbstractTWindow">T</a>&gt;&nbsp;feeder()</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../org/apache/edgent/topology/TWindow.html#feeder--">TWindow</a></code></span></div> <div class="block">Get the stream that feeds this window.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="../../../../../../org/apache/edgent/topology/TWindow.html#feeder--">feeder</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/edgent/topology/TWindow.html" title="interface in org.apache.edgent.topology">TWindow</a>&lt;<a href="../../../../../../org/apache/edgent/topology/spi/graph/AbstractTWindow.html" title="type parameter in AbstractTWindow">T</a>,<a href="../../../../../../org/apache/edgent/topology/spi/graph/AbstractTWindow.html" title="type parameter in AbstractTWindow">K</a>&gt;</code></dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>stream that feeds this window.</dd> </dl> </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="class-use/AbstractTWindow.html">Use</a></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 class="aboutLanguage"><a href="http://edgent.incubator.apache.org">Apache Edgent (incubating)</a></div> </div> <div class="subNav"> <ul class="navList"> <li>Prev&nbsp;Class</li> <li><a href="../../../../../../org/apache/edgent/topology/spi/graph/ConnectorStream.html" title="class in org.apache.edgent.topology.spi.graph"><span class="typeNameLink">Next&nbsp;Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?org/apache/edgent/topology/spi/graph/AbstractTWindow.html" target="_top">Frames</a></li> <li><a href="AbstractTWindow.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright &#169; 2016 The Apache Software Foundation. All Rights Reserved - 73539fa-20161119-2136</small></p> </body> </html>
dlaboss/incubator-quarks-website
site/javadoc/r1.0.0/org/apache/edgent/topology/spi/graph/AbstractTWindow.html
HTML
apache-2.0
15,131
<!DOCTYPE html> <html lang="pt-br"> <head> <title>Meu ambiente de trabalho em 7 itens | Andrews Medina</title> <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.2.0/build/cssreset/reset-min.css"> <link rel="stylesheet" href="/media/css/estilo.css" type="text/css" media="screen"> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script> <script type="text/javascript"> _uacct = "UA-BBB-98981"; urchinTracker(); </script> </head> <body> <div id="page"> <header> <h1><a href="/">andrews medina</a></h1> <nav> <ul> <li><a href="/">blog</a></li> <li><a href="/sobre-mim/">sobre mim</a></li> <li><a href="https://github.com/andrewsmedina">github</a></li> </ul> </nav> </header> <div id="content"> <div class="post"> <h2><a href="/2011/01/27/meu-ambiente-de-trabalho-em-7-itens/">Meu ambiente de trabalho em 7 itens</a></h2> <p class="date">escrito em 27/01/2011</p> <p>O <a href="http://twitter.com/franciscosouza">@franciscosouza</a> me convocou para listar 7 ítens do meu ambiente de trabalho. Então, lá vamos nós...</p> <h3>1) git + github</h3> <p>O git é uma ótima ferramenta para controle de versão, rápido e distribuído. Já o <a href="https://github.com/">github</a> é mais que um repósitorio para projetos opensource. É uma rede social para desenvolvedores, onde você pode seguir desenvolvedores e projetos. Ele também simplifica e ajuda a desburocratização da colaboração com o software livre, facilitando a colaboração.</p> <h3>2) textmate</h3> <p>O meu editor favorito é o <a href="http://macromates.com/">textmate</a>. Ele é simples, tem syntax highlighting e é facil fazer macros e plugins para ele.</p> <h3>3) macbook + mac os</h3> <p>Para mim o macbook e o mac os é a melhor harmonia entre o software e o hardware. =)</p> <p>O mac os é muito agradável, fácil de usar, não é necessário perder tempo instalando drivers e etc, e é unix o que o torna bem poderoso como ambiente de desenvolvimento.</p> <p>Ah, e a bateria dura bastante tempo.</p> <h3>4) homebrew, iterm2</h3> <p>Como terminal eu tenho utilizado o <a href="http://sites.google.com/site/iterm2home/">iterm2</a> tenho gostado. E para instalar pacotes utilizo <a href="http://mxcl.github.com/homebrew/">homebrew</a>.</p> <h3>5) pip + virtualenv + virtualenvwrapper</h3> <p>Atualmente utilizo várias linguagens de programação, mas a que mais utilizo (no momento) é Python.</p> <p>Para desenvolver em Python, utilizo pip para instalação de pacotes, virtualenv e virtualenvwrapper, para trabalhar em ambientes limpos e isolados pro projeto. Fazendo com que um ambiente utilizado pelo projeto X não precise ter instalado as dependências do projeto Y.</p> <h3>6) TeamCity Continuous Integration Server</h3> <p>Para mim um código não testado não existe. E para monitorar meus projetos e saber se seus testes estão passando eu utilizo o <a href="http://www.jetbrains.com/teamcity/">TeamCity</a> com um plugin para chrome, que mostra no chrome se o build está passando ou está quebrado.</p> <h3>7) monitor + teclado sem fio + mouse</h3> <p>Junto com o macbook eu utilizo um monitor, um teclado sem fio da apple e um mouse da microsoft.</p> <h3>Passo a bola para:</h3> <ul> <li>Igor Sobreira (<a href="http://twitter.com/igorsobreira">@igorsobreira</a>)</li> <li>Tales (Tarsis Azevedo) (<a href="http://twitter.com/tarsisazevedo">@tarsisazevedo</a>)</li> <li>Thiago Hiromi (<a href="http://twitter.com/badchoosed">@badchoosed</a>)</li> <li>Luciano Ramalho (<a href="http://twitter.com/luciano">@luciano</a>)</li> <li>Douglas Miranda (<a href="http://twitter.com/douglaswebdev">@douglaswebdev</a>)</li> </ul> <div id="disqus_thread"></div> <script type="text/javascript"> (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = 'http://andrewsmedina.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); </script> </div> <script type="text/javascript"> var disqus_shortname = 'andrewsmedina'; (function () { var s = document.createElement('script'); s.async = true; s.src = 'http://disqus.com/forums/andrewsmedina/count.js'; (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); }()); </script> </div> </div> </body> </html>
Alcolo47/django-htmlmin
htmlmin/tests/resources/blogpost.html
HTML
bsd-2-clause
5,606
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.5.0_22) on Tue Sep 18 20:44:16 GMT+01:00 2012 --> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <TITLE> org.apache.http.pool (HttpComponents Core 4.2.2 API) </TITLE> <META NAME="keywords" CONTENT="org.apache.http.pool package"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> </HEAD> <BODY BGCOLOR="white"> <FONT size="+1" CLASS="FrameTitleFont"> <A HREF="../../../../org/apache/http/pool/package-summary.html" target="classFrame">org.apache.http.pool</A></FONT> <TABLE BORDER="0" WIDTH="100%" SUMMARY=""> <TR> <TD NOWRAP><FONT size="+1" CLASS="FrameHeadingFont"> Interfaces</FONT>&nbsp; <FONT CLASS="FrameItemFont"> <BR> <A HREF="ConnFactory.html" title="interface in org.apache.http.pool" target="classFrame"><I>ConnFactory</I></A> <BR> <A HREF="ConnPool.html" title="interface in org.apache.http.pool" target="classFrame"><I>ConnPool</I></A> <BR> <A HREF="ConnPoolControl.html" title="interface in org.apache.http.pool" target="classFrame"><I>ConnPoolControl</I></A></FONT></TD> </TR> </TABLE> <TABLE BORDER="0" WIDTH="100%" SUMMARY=""> <TR> <TD NOWRAP><FONT size="+1" CLASS="FrameHeadingFont"> Classes</FONT>&nbsp; <FONT CLASS="FrameItemFont"> <BR> <A HREF="AbstractConnPool.html" title="class in org.apache.http.pool" target="classFrame">AbstractConnPool</A> <BR> <A HREF="PoolEntry.html" title="class in org.apache.http.pool" target="classFrame">PoolEntry</A> <BR> <A HREF="PoolStats.html" title="class in org.apache.http.pool" target="classFrame">PoolStats</A></FONT></TD> </TR> </TABLE> </BODY> </HTML>
espadrine/opera
chromium/src/third_party/httpcomponents-core/binary-distribution/javadoc/org/apache/http/pool/package-frame.html
HTML
bsd-3-clause
1,750
<!doctype html> <html> <head> <meta charset="utf-8"> <title>horizontal layout modes</title> <link rel="stylesheet" href="examples.css" /> <style> body, html { height: 100%; } #container { position: relative; height: 70%; margin-bottom: 20px; } .element.alkali { width: 170px; height: 190px; } .element.alkaline-earth {} .element.lanthanoid { height: 190px; } .element.actinoid { width: 170px; } .element.transition { width: 220px; } .stamp { background: #DDD; border: 2px dotted; position: absolute; } .stamp1 { height: 30%; width: 80px; left: 30px; top: 10%; } .stamp2 { height: 200px; width: 40px; left: 15px; top: 100px; } </style> </head> <body> <h1>horizontal layout modes</h1> <div id="options"> <h2>Filter</h2> <div class="option-set" data-isotope-key="filter"> <button data-isotope-value="*">show all</button> <button data-isotope-value=".metal">metal</button> <button data-isotope-value=".post-transition">post-transition</button> </div> <h2>Sort</h2> <div class="option-set" data-isotope-key="sortBy"> <button data-isotope-value="original-order">original-order</button> <button data-isotope-value="number">number</button> <button data-isotope-value="name">name</button> <button data-isotope-value="symbol">symbol</button> <button data-isotope-value="weight">weight</button> <button data-isotope-value="category">category</button> </div> </div> <div id="container"> <div class="stamp stamp1"></div> <div class="stamp stamp2"></div> <div class="element transition metal " data-symbol="Hg" data-category="transition"> <p class="number">80</p> <h3 class="symbol">Hg</h3> <h2 class="name">Mercury</h2> <p class="weight">200.59</p> </div> <div class="element metalloid " data-symbol="Te" data-category="metalloid"> <p class="number">52</p> <h3 class="symbol">Te</h3> <h2 class="name">Tellurium</h2> <p class="weight">127.6</p> </div> <div class="element post-transition metal " data-symbol="Bi" data-category="post-transition"> <p class="number">83</p> <h3 class="symbol">Bi</h3> <h2 class="name">Bismuth</h2> <p class="weight">208.9804</p> </div> <div class="element transition metal " data-symbol="Cd" data-category="transition"> <p class="number">48</p> <h3 class="symbol">Cd</h3> <h2 class="name">Cadmium</h2> <p class="weight">112.411</p> </div> <div class="element alkaline-earth metal " data-symbol="Ca" data-category="alkaline-earth"> <p class="number">20</p> <h3 class="symbol">Ca</h3> <h2 class="name">Calcium</h2> <p class="weight">40.078</p> </div> <div class="element transition metal " data-symbol="Re" data-category="transition"> <p class="number">75</p> <h3 class="symbol">Re</h3> <h2 class="name">Rhenium</h2> <p class="weight">186.207</p> </div> <div class="element post-transition metal " data-symbol="Tl" data-category="post-transition"> <p class="number">81</p> <h3 class="symbol">Tl</h3> <h2 class="name">Thallium</h2> <p class="weight">204.3833</p> </div> <div class="element metalloid " data-symbol="Sb" data-category="metalloid"> <p class="number">51</p> <h3 class="symbol">Sb</h3> <h2 class="name">Antimony</h2> <p class="weight">121.76</p> </div> <div class="element transition metal " data-symbol="Co" data-category="transition"> <p class="number">27</p> <h3 class="symbol">Co</h3> <h2 class="name">Cobalt</h2> <p class="weight">58.933195</p> </div> <div class="element lanthanoid metal inner-transition " data-symbol="Lu" data-category="lanthanoid"> <p class="number">71</p> <h3 class="symbol">Lu</h3> <h2 class="name">Lutetium</h2> <p class="weight">174.9668</p> </div> <div class="element noble-gas nonmetal " data-symbol="Ar" data-category="noble-gas"> <p class="number">18</p> <h3 class="symbol">Ar</h3> <h2 class="name">Argon</h2> <p class="weight">39.948</p> </div> <div class="element alkali metal " data-symbol="Rb" data-category="alkali"> <p class="number">37</p> <h3 class="symbol">Rb</h3> <h2 class="name">Rubidium</h2> <p class="weight">85.4678</p> </div> <div class="element other nonmetal " data-symbol="N" data-category="other"> <p class="number">7</p> <h3 class="symbol">N</h3> <h2 class="name">Nitrogen</h2> <p class="weight">14.0067</p> </div> <div class="element actinoid metal inner-transition " data-symbol="Np" data-category="actinoid"> <p class="number">93</p> <h3 class="symbol">Np</h3> <h2 class="name">Neptunium</h2> <p class="weight">(237)</p> </div> <div class="element actinoid metal inner-transition " data-symbol="Ac" data-category="actinoid"> <p class="number">89</p> <h3 class="symbol">Ac</h3> <h2 class="name">Actinium</h2> <p class="weight">(227)</p> </div> </div> <script src="../bower_components/eventEmitter/EventEmitter.js"></script> <script src="../bower_components/eventie/eventie.js"></script> <script src="../bower_components/doc-ready/doc-ready.js"></script> <script src="../bower_components/get-style-property/get-style-property.js"></script> <script src="../bower_components/get-size/get-size.js"></script> <script src="../bower_components/jquery-bridget/jquery.bridget.js"></script> <script src="../bower_components/matches-selector/matches-selector.js"></script> <script src="../bower_components/outlayer/item.js"></script> <script src="../bower_components/outlayer/outlayer.js"></script> <script src="../js/item.js"></script> <script src="../js/layout-mode.js"></script> <script src="../js/isotope.js"></script> <script src="../bower_components/isotope-fit-columns/fit-columns.js"></script> <script src="../bower_components/isotope-cells-by-column/cells-by-column.js"></script> <script src="../bower_components/isotope-horizontal/horizontal.js"></script> <script src="../bower_components/isotope-masonry-horizontal/masonry-horizontal.js"></script> <script> docReady( function() { var container = document.querySelector('#container'); var iso = window.iso = new Isotope( container, { itemSelector: '.element', stamp: '.stamp', layoutMode: 'masonryHorizontal', transitionDuration: '0.8s', masonryHorizontal: { rowHeight: 100 }, cellsByColumn: { columnWidth: 130, rowHeight: 140, }, getSortData: { number: '.number parseInt', symbol: '.symbol', name: '.name', category: '[data-category]', weight: function( itemElem ) { // remove parenthesis return parseFloat( getText( itemElem.querySelector('.weight') ).replace( /[\(\)]/g, '') ); } } }); var options = document.querySelector('#options'); eventie.bind( options, 'click', function( event ) { if ( !matchesSelector( event.target, 'button' ) ) { return; } // var opt = {}; var key = event.target.parentNode.getAttribute('data-isotope-key'); var value = event.target.getAttribute('data-isotope-value'); console.log( key, value ); iso.options[ key ] = value; iso.arrange(); }); }); function getText( elem ) { return elem.textContent || elem.innerText; } </script> </body> </html>
K0rINf/rltzf2
public/vendors/isotope/examples/masonry-horizontal.html
HTML
bsd-3-clause
7,415
<style> body { bottom: 0; left: 0; overflow-y: scroll; position: absolute; right: 0; top: 0; } #content { background-image: paint(bezier); position: fixed; top: 0; left: 0; height: 100%; width: 100%; --progress: 0; } </style> <body> Please press any key to start the animation. <div id="content"></div> </body> <script> CSS.registerProperty({ name: '--progress', syntax: '<number>', initialValue: 0, inherits: false }); const blob = new Blob([` class BezierPainter { static get inputProperties() { return ['--progress']} paint(ctx, geom, properties) { const width = geom.width; const height = geom.height; const t = properties.get('--progress'); const p0 = { x: 0.1, y: 0.9 }; const p1 = { x: 0.4, y: 0.1 }; const p2 = { x: 0.6, y: 0.1 }; const p3 = { x: 0.9, y: 0.9 }; const moveTo = (pt) => { ctx.moveTo(pt.x * width, pt.y * height); }; const lineTo = (pt) => { ctx.lineTo(pt.x * width, pt.y * height); }; const vertex = (pt) => { ctx.fillStyle = 'black'; ctx.beginPath(); ctx.arc(pt.x * width, pt.y * height, 5, 0, 2 * Math.PI); ctx.fill(); } const bezier = () => { ctx.strokeStyle = 'black'; ctx.lineWidth = 2; ctx.beginPath(); moveTo(p0); ctx.bezierCurveTo( p1.x * width, p1.y * height, p2.x * width, p2.y * height, p3.x * width, p3.y * height); ctx.stroke(); }; const interpolate = (pt1, pt2) => { return { x: pt1.x + (pt2.x - pt1.x) * t, y: pt1.y + (pt2.y - pt1.y) * t }; }; ctx.fillStyle = 'white'; ctx.beginPath(); ctx.rect(0, 0, width, height); ctx.fill(); ctx.strokeStyle = 'black'; ctx.beginPath(); moveTo(p0); lineTo(p1); lineTo(p2); lineTo(p3); ctx.stroke(); const p4 = interpolate(p0, p1); const p5 = interpolate(p1, p2); const p6 = interpolate(p2, p3); const p7 = interpolate(p4, p5); const p8 = interpolate(p5, p6); const p9 = interpolate(p7, p8); ctx.strokeStyle = 'gray'; ctx.beginPath(); moveTo(p4); lineTo(p5); lineTo(p6); ctx.stroke(); ctx.beginPath(); moveTo(p7); lineTo(p8); ctx.stroke(); vertex(p9); bezier(); } } registerPaint('bezier', BezierPainter); `], {type: 'application/javascript'}); CSS.paintWorklet.addModule(URL.createObjectURL(blob)); window.onkeypress = () => { const elem = document.getElementById('content'); const effect = new KeyframeEffect(elem, { '--progress': [0, 1] }, {iterations: Infinity, duration: 1000, fill: 'forwards'}); const animation = new Animation(effect); animation.play(); }; </script>
chromium/chromium
chrome/test/data/perf/throughput_test_cases/paint-worklet.html
HTML
bsd-3-clause
2,868
{# Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. #} {% extends "job.html" %} {% block job_content %} <script src="{{ url_for('static', filename='js/model-graphs.js') }}"></script> {% set task = job.train_task() %} <div class="row"> <div class="col-sm-6"> <div class="well"> <dl> <dt>Solver</dt> <dd><a href="{{url_for('serve_file', path=task.path(task.solver_file, relative=True))}}">{{task.solver_file}}</a></dd> <dt>Network (train/val)</dt> <dd><a href="{{url_for('serve_file', path=task.path(task.train_val_file, relative=True))}}">{{task.train_val_file}}</a></dd> <dt>Network (deploy)</dt> <dd><a href="{{url_for('serve_file', path=task.path(task.deploy_file, relative=True))}}">{{task.deploy_file}}</a></dd> <dt>Raw caffe output</dt> <dd><a href="{{url_for('serve_file', path=task.path(task.caffe_log_file, relative=True))}}">{{task.caffe_log_file}}</a></dd> {% if task.pretrained_model %} <dt>Pretrained Model</dt> <dd>{{task.pretrained_model}}</dd> {% endif %} </dl> </div> </div> <div class="col-sm-6"> <div class="well"> <h4 class='text-center'>Dataset</h4> {% if job.dataset %} {% with dataset = job.dataset %} {% include 'datasets/images/generic/summary.html' %} {% endwith %} {% endif %} </div> </div> </div> <div class="row"> <div class="col-sm-12"> <div class="well"> <div id="combined-graph" class="combined-graph" style="height:500px;width:100%;background:white;display:none;"></div> <div class="pull-right combined-graph" style="display:none;"> <a class="btn btn-primary btn-sm" target="_blank" href="{{url_for('generic_image_model_large_graph', job_id=job.id())}}"> View Large </a> </div> <br> <br> {% set combined_graph_data = job.train_task().combined_graph_data() %} {% if combined_graph_data %} <script> drawCombinedGraph({% autoescape false %}{{combined_graph_data}}{% endautoescape %}); </script> {% endif %} <div id="lr-graph" class="lr-graph" style="height:300px;width:100%;background:white;display:none;"></div> {% set lr_graph_data = job.train_task().lr_graph_data() %} {% if lr_graph_data %} <script> drawLRGraph({% autoescape false %}{{lr_graph_data}}{% endautoescape %}); </script> {% endif %} {% set task = job.train_task() %} <hr> <form id="test-model-form" enctype="multipart/form-data" method="post" onkeypress="return event.keyCode != 13;" {# Disable enter to submit #} {% if not task.has_model() %} style="display:none;" {% endif %} > <div class="row"> <div class="col-sm-12"> <div class="form-group"> <label for="snapshot_epoch">Select Model</label> <select id="snapshot_epoch" name="snapshot_epoch" class="form-control"> </select> <script> function updateSnapshotList(data) { var selected = null; var latest_selected = true; if ($("#snapshot_epoch").find('option').length) { latest_selected = ($("#snapshot_epoch").find('option').first().val() == $("#snapshot_epoch").val()); selected = $("#snapshot_epoch").val(); } // remove old options $("#snapshot_epoch").find("option").remove(); if (data.length) $("#test-model-form").show(); for (var i=0; i<data.length; i++) { option = data[i]; $("#snapshot_epoch").append('<option value="'+option[0]+'">'+option[1]+'</option>'); } if (data.length) { var value = selected; if (!value || latest_selected) value = data[0][0]; if (value) $("#snapshot_epoch").val(value); } } updateSnapshotList({% autoescape false %}{{task.snapshot_list()}}{% endautoescape %}); </script> </div> <button formaction="{{url_for('models_download', job_id=job.id())}}" formmethod="post" formenctype="multipart/form-data" class="btn btn-info"> Download </button> </div> </div> <div class="row"> <div class="col-sm-6"> <div class="form-group"> <label for="image_url" class="control-label">Image URL</label> <input type="text" id="image_url" name="image_url" class="form-control"> </div> <div class="form-group"> <label for="image_file" class="control-label">Upload image</label> <input type="file" id="image_file" name="image_file" class="form-control"> </div> <script type="text/javascript"> // When you fill in one field, the other gets blanked out $("#image_url").change(function() { $("#image_file").val(""); }); $("#image_file").change(function() { $("#image_url").val(""); }); </script> <div class="form-group"> <label for="show_visualizations"> <input id="show_visualizations" name="show_visualizations" type="checkbox" value="y"> Show visualizations and statistics </label> <span name="show_visualizations_explanation" class="explanation-tooltip glyphicon glyphicon-question-sign" data-container="body" title="For each layer in the network, show statistics for the weights/activations and attempt to represent the data visually. Can delay classification considerably." ></span> </div> <button name="infer-one-btn" onClick="return inferOne();" class="btn btn-primary">Infer One Image</button> <span name="infer-one-explanation" class="explanation-tooltip glyphicon glyphicon-question-sign" data-container="body" title="Infer one image and show the network output." ></span> </div> <div class="col-sm-6"> <div class="form-group"> <label for="image_list" class="control-label">Upload Image List</label> <input type="file" id="image_list" name="image_list" class="form-control"> <small>Accepts a list of filenames or urls (you can use your val.txt file)</small> </div> <button name="infer-many-btn" onClick="return inferMany();" class="btn btn-primary">Infer Many Images</button> <span name="infer-many-explanation" class="explanation-tooltip glyphicon glyphicon-question-sign" data-container="body" title="Infer a list of images and show the network outputs." ></span> </div> </div> </form> <script> function inferOne() { // grab all form data var formData = new FormData($("#test-model-form")[0]); $.ajax("{{url_for('generic_image_model_infer_one', job_id=job.id())}}", { type: "POST", data: formData, // options to tell jQuery not to process data or worry about content-type cache: false, contentType: false, processData: false, }) .done(function(data) { bootbox.alert({ message: 'Loading...', animate: false, className: "wide-bootbox" }); // Do this after the page loads so javascript works $('div.bootbox-body').html(data); $(".wide-bootbox").animate({scrollTop: 0}, ""); }) .fail(function(data) { errorAlert(data); }); return false; } function inferMany() { // grab all form data var formData = new FormData($("#test-model-form")[0]); $.ajax("{{url_for('generic_image_model_infer_many', job_id=job.id())}}", { type: "POST", data: formData, // options to tell jQuery not to process data or worry about content-type cache: false, contentType: false, processData: false, }) .done(function(data) { bootbox.alert({ message: data, animate: false, className: "wide-bootbox" }); $(".wide-bootbox").animate({scrollTop: 0}, ""); }) .fail(function(data) { errorAlert(data); }); return false; } </script> </div> </div> </div> {% endblock %}
asifmadnan/DIGITS
digits/templates/models/images/generic/show.html
HTML
bsd-3-clause
9,906
<!-- Display tooltip on left --> <button type="button" class="btn pmd-tooltip pmd-btn-raised btn-default" data-toggle="tooltip" data-placement="left" title="Tooltip on left">Tooltip on left</button> <!-- Display tooltip on right --> <button type="button" class="btn pmd-tooltip pmd-btn-raised btn-default" data-toggle="tooltip" data-placement="right" title="Tooltip on right">Tooltip on right</button> <!-- Display tooltip on top --> <button type="button" class="btn pmd-tooltip pmd-btn-raised btn-default" data-toggle="tooltip" data-placement="top" title="Tooltip on top">Tooltip on top</button> <!-- Display tooltip on bottom --> <button type="button" class="btn pmd-tooltip pmd-btn-raised btn-default" data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom">Tooltip on bottom</button>
nikunjchotaliya15/nodejs
public/components/tooltip/snippets/tooltip.html
HTML
mit
807
<!-- extend base layout --> {% extends "base.html" %} {% block content %} <h1>File Not Found</h1> <p><a href="{{url_for('index')}}">Back</a></p> {% endblock %}
myevan/flask_server
server/blog/templates/404.html
HTML
mit
161
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_45) on Sat Dec 28 11:08:51 MSK 2013 --> <TITLE> org.opencv.video Class Hierarchy </TITLE> <META NAME="date" CONTENT="2013-12-28"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="org.opencv.video Class Hierarchy"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> OpenCV 2.4.8</EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../../org/opencv/utils/package-tree.html"><B>PREV</B></A>&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?org/opencv/video/package-tree.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="package-tree.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <CENTER> <H2> Hierarchy For Package org.opencv.video </H2> </CENTER> <DL> <DT><B>Package Hierarchies:</B><DD><A HREF="../../../overview-tree.html">All Packages</A></DL> <HR> <H2> Class Hierarchy </H2> <UL> <LI TYPE="circle">java.lang.Object<UL> <LI TYPE="circle">org.opencv.core.<A HREF="../../../org/opencv/core/Algorithm.html" title="class in org.opencv.core"><B>Algorithm</B></A><UL> <LI TYPE="circle">org.opencv.video.<A HREF="../../../org/opencv/video/BackgroundSubtractor.html" title="class in org.opencv.video"><B>BackgroundSubtractor</B></A><UL> <LI TYPE="circle">org.opencv.video.<A HREF="../../../org/opencv/video/BackgroundSubtractorMOG.html" title="class in org.opencv.video"><B>BackgroundSubtractorMOG</B></A><LI TYPE="circle">org.opencv.video.<A HREF="../../../org/opencv/video/BackgroundSubtractorMOG2.html" title="class in org.opencv.video"><B>BackgroundSubtractorMOG2</B></A></UL> </UL> <LI TYPE="circle">org.opencv.video.<A HREF="../../../org/opencv/video/KalmanFilter.html" title="class in org.opencv.video"><B>KalmanFilter</B></A><LI TYPE="circle">org.opencv.video.<A HREF="../../../org/opencv/video/Video.html" title="class in org.opencv.video"><B>Video</B></A></UL> </UL> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> <a href=http://docs.opencv.org>OpenCV 2.4.8 Documentation</a></EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../../org/opencv/utils/package-tree.html"><B>PREV</B></A>&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?org/opencv/video/package-tree.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="package-tree.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>
jmptable/semanter
SemanterApp/semanter/libs/OpenCV/javadoc/org/opencv/video/package-tree.html
HTML
mit
6,150
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "//www.w3.org/TR/html4/strict.dtd"> <HTML style="overflow:auto;"> <HEAD> <meta name="generator" content="JDiff v1.1.0"> <!-- Generated by the JDiff Javadoc doclet --> <!-- (http://www.jdiff.org) --> <meta name="description" content="JDiff is a Javadoc doclet which generates an HTML report of all the packages, classes, constructors, methods, and fields which have been removed, added or changed in any way, including their documentation, when two APIs are compared."> <meta name="keywords" content="diff, jdiff, javadiff, java diff, java difference, API difference, difference between two APIs, API diff, Javadoc, doclet"> <TITLE> android.content.res.XmlResourceParser </TITLE> <link href="../../../../assets/android-developer-docs.css" rel="stylesheet" type="text/css" /> <link href="../stylesheet-jdiff.css" rel="stylesheet" type="text/css" /> <noscript> <style type="text/css"> body{overflow:auto;} #body-content{position:relative; top:0;} #doc-content{overflow:visible;border-left:3px solid #666;} #side-nav{padding:0;} #side-nav .toggle-list ul {display:block;} #resize-packages-nav{border-bottom:3px solid #666;} </style> </noscript> <style type="text/css"> </style> </HEAD> <BODY> <!-- Start of nav bar --> <a name="top"></a> <div id="header" style="margin-bottom:0;padding-bottom:0;"> <div id="headerLeft"> <a href="../../../../index.html" tabindex="-1" target="_top"><img src="../../../../assets/images/bg_logo.png" alt="Android Developers" /></a> </div> <div id="headerRight"> <div id="headerLinks"> <!-- <img src="/assets/images/icon_world.jpg" alt="" /> --> <span class="text"> <!-- &nbsp;<a href="#">English</a> | --> <nobr><a href="//developer.android.com" target="_top">Android Developers</a> | <a href="//www.android.com" target="_top">Android.com</a></nobr> </span> </div> <div class="and-diff-id" style="margin-top:6px;margin-right:8px;"> <table class="diffspectable"> <tr> <td colspan="2" class="diffspechead">API Diff Specification</td> </tr> <tr> <td class="diffspec" style="padding-top:.25em">To Level:</td> <td class="diffvaluenew" style="padding-top:.25em">19</td> </tr> <tr> <td class="diffspec">From Level:</td> <td class="diffvalueold">18</td> </tr> <tr> <td class="diffspec">Generated</td> <td class="diffvalue">2013.10.29 16:44</td> </tr> </table> </div><!-- End and-diff-id --> <div class="and-diff-id" style="margin-right:8px;"> <table class="diffspectable"> <tr> <td class="diffspec" colspan="2"><a href="jdiff_statistics.html">Statistics</a> </tr> </table> </div> <!-- End and-diff-id --> </div> <!-- End headerRight --> </div> <!-- End header --> <div id="body-content" xstyle="padding:12px;padding-right:18px;"> <div id="doc-content" style="position:relative;"> <div id="mainBodyFluid"> <H2> Interface android.content.res.<A HREF="../../../../reference/android/content/res/XmlResourceParser.html" target="_top"><font size="+2"><code>XmlResourceParser</code></font></A> </H2> <p><font xsize="+1">Added interface <code>java.lang.AutoCloseable</code>.<br></font> <a NAME="constructors"></a> <a NAME="methods"></a> <a NAME="fields"></a> </div> <div id="footer"> <div id="copyright"> Except as noted, this content is licensed under <a href="//creativecommons.org/licenses/by/2.5/"> Creative Commons Attribution 2.5</a>. For details and restrictions, see the <a href="/license.html">Content License</a>. </div> <div id="footerlinks"> <p> <a href="//www.android.com/terms.html">Site Terms of Service</a> - <a href="//www.android.com/privacy.html">Privacy Policy</a> - <a href="//www.android.com/branding.html">Brand Guidelines</a> </p> </div> </div> <!-- end footer --> </div><!-- end doc-content --> </div> <!-- end body-content --> <script src="//www.google-analytics.com/ga.js" type="text/javascript"> </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-5831155-1"); pageTracker._setAllowAnchor(true); pageTracker._initData(); pageTracker._trackPageview(); } catch(e) {} </script> </BODY> </HTML>
AzureZhao/android-developer-cn
sdk/api_diff/19/changes/android.content.res.XmlResourceParser.html
HTML
mit
4,305
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Overview</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="../index.html" title="Chapter&#160;1.&#160;Context"> <link rel="up" href="../index.html" title="Chapter&#160;1.&#160;Context"> <link rel="prev" href="../index.html" title="Chapter&#160;1.&#160;Context"> <link rel="next" href="requirements.html" title="Requirements"> </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="../index.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="requirements.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h2 class="title" style="clear: both"> <a name="context.overview"></a><a class="link" href="overview.html" title="Overview">Overview</a> </h2></div></div></div> <p> <span class="bold"><strong>Boost.Context</strong></span> is a foundational library that provides a sort of cooperative multitasking on a single thread. By providing an abstraction of the current execution state in the current thread, including the stack (with local variables) and stack pointer, all registers and CPU flags, and the instruction pointer, a <span class="emphasis"><em>fcontext_t</em></span> instance represents a specific point in the application's execution path. This is useful for building higher-level abstractions, like <span class="emphasis"><em>coroutines</em></span>, <span class="emphasis"><em>cooperative threads (userland threads)</em></span> or an equivalent to <a href="http://msdn.microsoft.com/en-us/library/9k7k7cf0%28v=vs.80%29.aspx" target="_top">C# keyword <span class="emphasis"><em>yield</em></span></a> in C++. </p> <p> A <span class="emphasis"><em>fcontext_t</em></span> provides the means to suspend the current execution path and to transfer execution control, thereby permitting another <span class="emphasis"><em>fcontext_t</em></span> to run on the current thread. This state full transfer mechanism enables a <span class="emphasis"><em>fcontext_t</em></span> to suspend execution from within nested functions and, later, to resume from where it was suspended. While the execution path represented by a <span class="emphasis"><em>fcontext_t</em></span> only runs on a single thread, it can be migrated to another thread at any given time. </p> <p> A context switch between threads requires system calls (involving the OS kernel), which can cost more than thousand CPU cycles on x86 CPUs. By contrast, transferring control among them requires only few CPU cycles because it does not involve system calls as it is done within a single thread. </p> <p> In order to use the classes and functions described here, you can either include the specific headers specified by the descriptions of each class or function, or include the master library header: </p> <pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">context</span><span class="special">/</span><span class="identifier">all</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> </pre> <p> which includes all the other headers in turn. </p> <p> All functions and classes are contained in the namespace <span class="emphasis"><em>boost::context</em></span>. </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 &#169; 2009 Oliver Kowalke<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="../index.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="requirements.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
rkq/cxxexp
third-party/src/boost_1_56_0/libs/context/doc/html/context/overview.html
HTML
mit
5,533
<extend name="template/base_index" /> <block name="area_header"> </block> <block name="area_body"> {:W('Menus/topbar')} <div class="admin-main container-fluid"> {:W('Menus/left')} <div class="admin-main-content"> {:W('Menus/breadcrumb')} <!-- 标题栏 --> <div class="main-title"> <h2>行为列表</h2> </div> <div> <a class="btn btn-primary btn-sm" id="action_add" href="{:U('Admin/Action/add')}"><i class="fa fa-plus"></i> 新 增</a> <a class="btn btn-primary ajax-post btn-sm" target-form="ids" href="{:U('Admin/Action/enable')}"><i class="fa fa-check-circle-o"></i> 启 用</a> <a class="btn btn-primary ajax-post btn-sm" target-form="ids" href="{:U('Admin/Action/disable')}"><i class="fa fa-times-circle-o"></i> 禁 用</a> <a class="btn btn-danger ajax-post confirm btn-sm" target-form="ids" href="{:U('Admin/Action/delete')}"><i class="fa fa-trash"></i> 删 除</a> </div> <!-- 数据列表 --> <div class="table-responsive"> <table class="table table-striped table table-hover table-condensed"> <thead> <tr> <th class="row-selected row-selected"> <input class="select-all" onclick="window.myUtils.selectall('.select-all','.ids')" type="checkbox" /> </th> <th class="">编号</th> <th class="">标识</th> <th class="">名称</th> <th class="">类型</th> <th class="">规则</th> <th class="">状态</th> <th class="">操作</th> </tr> </thead> <tbody> <volist name="list" id="vo"> <tr> <td> <input class="ids" type="checkbox" name="ids[]" value="{$vo.id}" /> </td> <td>{$vo.id} </td> <td>{$vo.name}</td> <td><a href="{:U('Admin/Action/edit?id='.$vo['id'])}">{$vo.title}</a> </td> <td><span>{:get_action_type($vo['type'])}</span> </td> <td>{$vo.remark}</td> <td>{$vo.status_text}</td> <td> <a class="btn btn-sm btn-default " href="{:U('Admin/Action/edit?id='.$vo['id'])}"><i class="fa fa-edit"></i>编辑</a> <eq name="vo['status']" value="1"> <a class="btn btn-sm btn-danger ajax-get confirm" href="{:U('Admin/Action/disable?ids='.$vo['id'])}"> <i class="fa fa-times-circle-o"></i>禁用</a> <else/> <a class="btn btn-sm btn-default ajax-get confirm" href="{:U('Admin/Action/enable?ids='.$vo['id'])}"> <i class="fa fa-times-circle-o"></i>启用</a> </eq> <a href="{:U('Admin/Action/delete?ids='.$vo['id'].',')}" class="confirm ajax-get btn btn-sm btn-danger "><i class="fa fa-trash"></i>删除</a> </td> </tr> </volist> </tbody> </table> </div> <!-- 分页 --> <div class="page">{$show}</div> <!-- /分页 --> </div> </block> <block name="area_footer"> </block>
h136799711/201507baoxiang
Application/Admin/View/default/Action/index.html
HTML
mit
2,878
<!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 (version 1.7.0_80) on Fri Aug 12 15:29:44 EDT 2016 --> <title>Uses of Class org.apache.pirk.querier.wideskies.encrypt.EncryptQueryRunnable</title> <meta name="date" content="2016-08-12"> <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="Uses of Class org.apache.pirk.querier.wideskies.encrypt.EncryptQueryRunnable"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><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><a href="../../../../../../../org/apache/pirk/querier/wideskies/encrypt/EncryptQueryRunnable.html" title="class in org.apache.pirk.querier.wideskies.encrypt">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../index.html?org/apache/pirk/querier/wideskies/encrypt/class-use/EncryptQueryRunnable.html" target="_top">Frames</a></li> <li><a href="EncryptQueryRunnable.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> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Class org.apache.pirk.querier.wideskies.encrypt.EncryptQueryRunnable" class="title">Uses of Class<br>org.apache.pirk.querier.wideskies.encrypt.EncryptQueryRunnable</h2> </div> <div class="classUseContainer">No usage of org.apache.pirk.querier.wideskies.encrypt.EncryptQueryRunnable</div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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><a href="../../../../../../../org/apache/pirk/querier/wideskies/encrypt/EncryptQueryRunnable.html" title="class in org.apache.pirk.querier.wideskies.encrypt">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../index.html?org/apache/pirk/querier/wideskies/encrypt/class-use/EncryptQueryRunnable.html" target="_top">Frames</a></li> <li><a href="EncryptQueryRunnable.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> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
ellisonanne/incubator-pirk
docs/org/apache/pirk/querier/wideskies/encrypt/class-use/EncryptQueryRunnable.html
HTML
apache-2.0
4,517
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.4.2_11) on Mon Jul 12 21:36:56 CEST 2010 --> <TITLE> org.apache.fop.render.intermediate (Apache FOP 1.0 API) </TITLE> <META NAME="keywords" CONTENT="org.apache.fop.render.intermediate package"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="org.apache.fop.render.intermediate (Apache FOP 1.0 API)"; } </SCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> fop 1.0</EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../../../../org/apache/fop/render/extensions/prepress/package-summary.html"><B>PREV PACKAGE</B></A>&nbsp; &nbsp;<A HREF="../../../../../org/apache/fop/render/intermediate/extensions/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <H2> Package org.apache.fop.render.intermediate </H2> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Interface Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/IFConstants.html" title="interface in org.apache.fop.render.intermediate">IFConstants</A></B></TD> <TD>Constants for the intermediate format.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/IFDocumentHandler.html" title="interface in org.apache.fop.render.intermediate">IFDocumentHandler</A></B></TD> <TD>Interface used to paint whole documents layouted by Apache FOP.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/IFDocumentHandlerConfigurator.html" title="interface in org.apache.fop.render.intermediate">IFDocumentHandlerConfigurator</A></B></TD> <TD>This interface is implemented by classes that configure an <A HREF="../../../../../org/apache/fop/render/intermediate/IFDocumentHandler.html" title="interface in org.apache.fop.render.intermediate"><CODE>IFDocumentHandler</CODE></A> instance.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/IFDocumentNavigationHandler.html" title="interface in org.apache.fop.render.intermediate">IFDocumentNavigationHandler</A></B></TD> <TD>Interface to handle document navigation features.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/IFPainter.html" title="interface in org.apache.fop.render.intermediate">IFPainter</A></B></TD> <TD>Interface used to paint whole documents layouted by Apache FOP.</TD> </TR> </TABLE> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Class Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/AbstractBinaryWritingIFDocumentHandler.html" title="class in org.apache.fop.render.intermediate">AbstractBinaryWritingIFDocumentHandler</A></B></TD> <TD>Abstract base class for binary-writing <A HREF="../../../../../org/apache/fop/render/intermediate/IFDocumentHandler.html" title="interface in org.apache.fop.render.intermediate"><CODE>IFDocumentHandler</CODE></A> implementations.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/AbstractIFDocumentHandler.html" title="class in org.apache.fop.render.intermediate">AbstractIFDocumentHandler</A></B></TD> <TD>Abstract base class for <A HREF="../../../../../org/apache/fop/render/intermediate/IFDocumentHandler.html" title="interface in org.apache.fop.render.intermediate"><CODE>IFDocumentHandler</CODE></A> implementations.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/AbstractIFDocumentHandlerMaker.html" title="class in org.apache.fop.render.intermediate">AbstractIFDocumentHandlerMaker</A></B></TD> <TD>Base class for factory classes which instantiate <A HREF="../../../../../org/apache/fop/render/intermediate/IFDocumentHandler.html" title="interface in org.apache.fop.render.intermediate"><CODE>IFDocumentHandler</CODE></A>s and provide information about them.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/AbstractIFPainter.html" title="class in org.apache.fop.render.intermediate">AbstractIFPainter</A></B></TD> <TD>Abstract base class for IFPainter implementations.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/AbstractXMLWritingIFDocumentHandler.html" title="class in org.apache.fop.render.intermediate">AbstractXMLWritingIFDocumentHandler</A></B></TD> <TD>Abstract base class for XML-writing <A HREF="../../../../../org/apache/fop/render/intermediate/IFDocumentHandler.html" title="interface in org.apache.fop.render.intermediate"><CODE>IFDocumentHandler</CODE></A> implementations.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/AffineTransformArrayParser.html" title="class in org.apache.fop.render.intermediate">AffineTransformArrayParser</A></B></TD> <TD>This class parses a sequence of transformations into an array of <CODE>AffineTransform</CODE> instances.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/BorderPainter.html" title="class in org.apache.fop.render.intermediate">BorderPainter</A></B></TD> <TD>This is an abstract base class for handling border painting.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/DelegatingFragmentContentHandler.html" title="class in org.apache.fop.render.intermediate">DelegatingFragmentContentHandler</A></B></TD> <TD>This class is a <A HREF="../../../../../org/apache/fop/util/DelegatingContentHandler.html" title="class in org.apache.fop.util"><CODE>DelegatingContentHandler</CODE></A> subclass which swallows the <A HREF="../../../../../org/apache/fop/render/intermediate/DelegatingFragmentContentHandler.html#startDocument()"><CODE>DelegatingFragmentContentHandler.startDocument()</CODE></A> and <A HREF="../../../../../org/apache/fop/render/intermediate/DelegatingFragmentContentHandler.html#endDocument()"><CODE>DelegatingFragmentContentHandler.endDocument()</CODE></A> methods.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/IFContentHandler.html" title="class in org.apache.fop.render.intermediate">IFContentHandler</A></B></TD> <TD>&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/IFContext.html" title="class in org.apache.fop.render.intermediate">IFContext</A></B></TD> <TD>This class provides a context object that is valid for a single processing run to create an output file using the intermediate format.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/IFGraphicContext.html" title="class in org.apache.fop.render.intermediate">IFGraphicContext</A></B></TD> <TD>Specialized graphic context class for the intermediate format renderer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/IFGraphicContext.Group.html" title="class in org.apache.fop.render.intermediate">IFGraphicContext.Group</A></B></TD> <TD>&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/IFGraphicContext.Viewport.html" title="class in org.apache.fop.render.intermediate">IFGraphicContext.Viewport</A></B></TD> <TD>&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/IFParser.html" title="class in org.apache.fop.render.intermediate">IFParser</A></B></TD> <TD>This is a parser for the intermediate format XML which converts the intermediate file into <A HREF="../../../../../org/apache/fop/render/intermediate/IFPainter.html" title="interface in org.apache.fop.render.intermediate"><CODE>IFPainter</CODE></A> events.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/IFRenderer.html" title="class in org.apache.fop.render.intermediate">IFRenderer</A></B></TD> <TD>This renderer implementation is an adapter to the <A HREF="../../../../../org/apache/fop/render/intermediate/IFPainter.html" title="interface in org.apache.fop.render.intermediate"><CODE>IFPainter</CODE></A> interface.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/IFSerializer.html" title="class in org.apache.fop.render.intermediate">IFSerializer</A></B></TD> <TD>IFPainter implementation that serializes the intermediate format to XML.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/IFSerializerMaker.html" title="class in org.apache.fop.render.intermediate">IFSerializerMaker</A></B></TD> <TD>Intermediate format document handler factory for intermediate format XML output.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/IFState.html" title="class in org.apache.fop.render.intermediate">IFState</A></B></TD> <TD>&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/IFUtil.html" title="class in org.apache.fop.render.intermediate">IFUtil</A></B></TD> <TD>Utility functions for the intermediate format.</TD> </TR> </TABLE> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Exception Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../../org/apache/fop/render/intermediate/IFException.html" title="class in org.apache.fop.render.intermediate">IFException</A></B></TD> <TD>Exception thrown by code dealing with FOP's intermediate format.</TD> </TR> </TABLE> &nbsp; <P> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> fop 1.0</EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../../../../org/apache/fop/render/extensions/prepress/package-summary.html"><B>PREV PACKAGE</B></A>&nbsp; &nbsp;<A HREF="../../../../../org/apache/fop/render/intermediate/extensions/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved. </BODY> </HTML>
lewismc/yax
lib/fop-1.0/javadocs/org/apache/fop/render/intermediate/package-summary.html
HTML
apache-2.0
15,904
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!-- Copyright 2011 Software Freedom Conservancy Licensed 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 content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>TestTypeRichText</title> </head> <body> <table cellpadding="1" cellspacing="1" border="1"> <tbody> <tr> <td rowspan="1" colspan="3">TestTypeRichText<br> </td> </tr> <tr> <td>open</td> <td>../tests/html/test_rich_text.html</td> <td>&nbsp;</td> </tr> <tr> <td>selectFrame</td> <td>richtext</td> <td></td> </tr> <tr> <td>verifyText</td> <td>//body</td> <td>&nbsp;</td> </tr> <tr> <td>type</td> <td>//body</td> <td>hello world</td> </tr> <tr> <td>verifyText</td> <td>//body</td> <td>hello world</td> </tr> </tbody> </table> </body> </html>
jmt4/Selenium2
java/server/test/org/openqa/selenium/tests/TestTypeRichText.html
HTML
apache-2.0
1,667
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN"> <HTML> <HEAD> <META NAME="GENERATOR" CONTENT="DOCTEXT"> <TITLE>MPI_Buffer_detach</TITLE> </HEAD> <BODY BGCOLOR="FFFFFF"> <A NAME="MPI_Buffer_detach"><H1>MPI_Buffer_detach</H1></A> Removes an existing buffer (for use in MPI_Bsend etc) <H2>Synopsis</H2> <PRE> int MPI_Buffer_detach(void *buffer, int *size) </PRE> <H2>Output Parameters</H2> <DL> <DT><B>buffer </B><DD>initial buffer address (choice) <DT><B>size </B><DD>buffer size, in bytes (integer) </DL> <P> <H2>Notes</H2> The reason that <TT>MPI_Buffer_detach</TT> returns the address and size of the buffer being detached is to allow nested libraries to replace and restore the buffer. For example, consider <P> <PRE> int size, mysize, idummy; void *ptr, *myptr, *dummy; MPI_Buffer_detach( &amp;ptr, &amp;size ); MPI_Buffer_attach( myptr, mysize ); ... ... library code ... ... MPI_Buffer_detach( &amp;dummy, &amp;idummy ); MPI_Buffer_attach( ptr, size ); </PRE> <P> This is much like the action of the Unix signal routine and has the same strengths (it is simple) and weaknesses (it only works for nested usages). <P> Note that for this approach to work, MPI_Buffer_detach must return MPI_SUCCESS even when there is no buffer to detach. In that case, it returns a size of zero. The MPI 1.1 standard for <TT>MPI_BUFFER_DETACH</TT> contains the text <P> <PRE> The statements made in this section describe the behavior of MPI for buffered-mode sends. When no buffer is currently associated, MPI behaves as if a zero-sized buffer is associated with the process. </PRE> <P> This could be read as applying only to the various Bsend routines. This implementation takes the position that this applies to <TT>MPI_BUFFER_DETACH </TT>as well. <P> <H2>Thread and Interrupt Safety</H2> <P> The user is responsible for ensuring that multiple threads do not try to update the same MPI object from different threads. This routine should not be used from within a signal handler. <P> The MPI standard defined a thread-safe interface but this does not mean that all routines may be called without any thread locks. For example, two threads must not attempt to change the contents of the same <TT>MPI_Info</TT> object concurrently. The user is responsible in this case for using some mechanism, such as thread locks, to ensure that only one thread at a time makes use of this routine. Because the buffer for buffered sends (e.g., <TT>MPI_Bsend</TT>) is shared by all threads in a process, the user is responsible for ensuring that only one thread at a time calls this routine or <TT>MPI_Buffer_attach</TT>. <P> <H2>Notes for Fortran</H2> All MPI routines in Fortran (except for <TT>MPI_WTIME</TT> and <TT>MPI_WTICK</TT>) have an additional argument <TT>ierr</TT> at the end of the argument list. <TT>ierr </TT>is an integer and has the same meaning as the return value of the routine in C. In Fortran, MPI routines are subroutines, and are invoked with the <TT>call</TT> statement. <P> All MPI objects (e.g., <TT>MPI_Datatype</TT>, <TT>MPI_Comm</TT>) are of type <TT>INTEGER </TT>in Fortran. <P> The Fortran binding for this routine is different. Because Fortran does not have pointers, it is impossible to provide a way to use the output of this routine to exchange buffers. In this case, only the size field is set. <P> <H2>Notes for C</H2> Even though the <TT>bufferptr</TT> argument is declared as <TT>void *</TT>, it is really the address of a void pointer. See the rationale in the standard for more details. <P> <H2>See Also</H2> MPI_Buffer_attach <BR><P><B>Location:</B>buffree.c<P> </BODY></HTML>
hydrosolutions/model_RRMDA_Themi
java/resources/linux64_gnu/share/doc/www3/MPI_Buffer_detach.html
HTML
bsd-2-clause
3,660
<section class="post-copyright"> <p>{{ .Site.Params.postCopyrightStr}}</p> <div style="text-align:center"> <p><img src="{{ .Site.Params.postCopyrightImgAddr }}" alt="qr code" /></p> </div> </section>
JianqiaoWang/cosx.org
themes/hugo-steam-cos/layouts/partials/post-copyright.html
HTML
mit
219
<div ng-controller="Umbraco.Editors.Content.CreateController"> <umb-load-indicator ng-if="loading"></umb-load-indicator> <div ng-if="!loading" class="umb-dialog-body with-footer" ng-cloak> <div class="umb-pane"> <h5 ng-show="selectContentType" id="selectContentType"><localize key="create_createUnder">Create a page under</localize> {{currentNode.name}}</h5> <h5 ng-show="selectBlueprint"><localize key="blueprints_selectBlueprint">Select a blueprint</localize></h5> <div ng-if="allowedTypes && allowedTypes.length === 0"> <p class="abstract" ng-if="!hasSettingsAccess"><localize key="create_noDocumentTypesWithNoSettingsAccess" /></p> <div ng-if="hasSettingsAccess && currentNode.id >= 0"> <p class="abstract"> <localize key="create_noDocumentTypes" /> </p> <button class="btn umb-outline" ng-click="editContentType()"> <localize key="create_noDocumentTypesEditPermissions" /> </button> </div> <div ng-if="hasSettingsAccess && currentNode.id < 0"> <!-- There are existing document types, but none are allowed at root --> <p class="abstract" ng-if="countTypes > 0"> <localize key="create_noDocumentTypesAllowedAtRoot" /> </p> <!-- There's no document types, help people create one --> <p class="abstract" ng-if="countTypes === 0"> <localize key="create_noDocumentTypesAtRoot" /> </p> <button class="btn umb-outline" ng-click="createContentType()" ng-if="countTypes === 0"> <localize key="create_noDocumentTypesCreateNew" /> </button> </div> </div> <ul class="umb-actions umb-actions-child" ng-if="selectContentType && allowedTypes.length > 0" aria-labelledby="selectContentType"> <li class="umb-action" data-element="action-create-{{docType.alias}}" ng-repeat="docType in allowedTypes"> <button class="umb-action-link umb-outline btn-reset" ng-click="createOrSelectBlueprintIfAny(docType)" umb-auto-focus ng-if="$index === 0"> <i class="large icon {{docType.icon}}"></i> <span class="menu-label"> {{docType.name}} <small> {{docType.description}} </small> </span> </button> <button class="umb-action-link umb-outline btn-reset" ng-click="createOrSelectBlueprintIfAny(docType)" ng-if="$index !== 0"> <i class="large icon {{docType.icon}}"></i> <span class="menu-label"> {{docType.name}} <small> {{docType.description}} </small> </span> </button> </li> </ul> <ul class="umb-actions umb-actions-child" ng-if="selectBlueprint"> <li class="umb-action" ng-repeat="blueprint in selectableBlueprints | orderBy:'name':false track by $index"> <button class="umb-action-link umb-outline btn-reset" ng-click="createFromBlueprint(blueprint.id)"> <i class="large icon {{docType.icon}}"></i> <span class="menu-label"> {{blueprint.name}} </span> </button> </li> <li class="umb-action sep" ng-show="allowBlank"> <button class="umb-action-link umb-outline btn-reset" ng-click="createBlank(docType)"> <i class="large icon {{docType.icon}}"></i> <span class="menu-label"> <localize key="blueprints_blankBlueprint">Blank</localize> </span> </button> </li> </ul> </div> </div> <div ng-if="!loading" class="umb-dialog-footer btn-toolbar umb-btn-toolbar"> <button class="btn btn-info umb-outline" ng-click="closeDialog(true)"> <localize key="buttons_somethingElse">All Actions</localize> </button> </div> </div>
tcmorris/Umbraco-CMS
src/Umbraco.Web.UI.Client/src/views/content/create.html
HTML
mit
4,645
{%- include "schemaMacros.html" -%} {{ formArea(name, label) }}
punkave/apostrophe-schemas
views/area.html
HTML
mit
64
<!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 (version 1.6.0_27) on Fri Mar 02 14:52:00 CET 2018 --> <title>Uses of Class com.tailf.maapi.MaapiSchemas (CONF API Version 6.6)</title> <meta name="date" content="2018-03-02"> <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="Uses of Class com.tailf.maapi.MaapiSchemas (CONF API Version 6.6)"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><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><a href="../../../../com/tailf/maapi/MaapiSchemas.html" title="class in com.tailf.maapi">Class</a></li> <li class="navBarCell1Rev">Use</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>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/tailf/maapi//class-useMaapiSchemas.html" target="_top">Frames</a></li> <li><a href="MaapiSchemas.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> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Class com.tailf.maapi.MaapiSchemas" class="title">Uses of Class<br>com.tailf.maapi.MaapiSchemas</h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../com/tailf/maapi/MaapiSchemas.html" title="class in com.tailf.maapi">MaapiSchemas</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#com.tailf.maapi">com.tailf.maapi</a></td> <td class="colLast"> <div class="block">MAAPI is an API which provides full access to the systems internal transaction engine.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#com.tailf.navu">com.tailf.navu</a></td> <td class="colLast"> <div class="block">NAVU (Navigation Utilities) is an API which provides increased accessibility to the ConfD/NCS populated data model tree: NAVU-Tree.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="com.tailf.maapi"> <!-- --> </a> <h3>Uses of <a href="../../../../com/tailf/maapi/MaapiSchemas.html" title="class in com.tailf.maapi">MaapiSchemas</a> in <a href="../../../../com/tailf/maapi/package-summary.html">com.tailf.maapi</a></h3> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../com/tailf/maapi/package-summary.html">com.tailf.maapi</a> that return <a href="../../../../com/tailf/maapi/MaapiSchemas.html" title="class in com.tailf.maapi">MaapiSchemas</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../com/tailf/maapi/MaapiSchemas.html" title="class in com.tailf.maapi">MaapiSchemas</a></code></td> <td class="colLast"><span class="strong">Maapi.</span><code><strong><a href="../../../../com/tailf/maapi/Maapi.html#getSchemas()">getSchemas</a></strong>()</code> <div class="block">Returns the currently loaded schema.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../com/tailf/maapi/MaapiSchemas.html" title="class in com.tailf.maapi">MaapiSchemas</a></code></td> <td class="colLast"><span class="strong">Maapi.</span><code><strong><a href="../../../../com/tailf/maapi/Maapi.html#loadSchemas()">loadSchemas</a></strong>()</code> <div class="block">Load Schemas method that downloads all schemas from server into a MaapiSchemas container, from which specified schemas can be accessed and traversed.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../com/tailf/maapi/MaapiSchemas.html" title="class in com.tailf.maapi">MaapiSchemas</a></code></td> <td class="colLast"><span class="strong">Maapi.</span><code><strong><a href="../../../../com/tailf/maapi/Maapi.html#loadSchemas(java.lang.String[])">loadSchemas</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;namespaceURIs)</code> <div class="block">Load Schemas method that downloads a specified number of schemas the server into a MaapiSchemas container, from which specified schemas can be accessed and transversed.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../com/tailf/maapi/MaapiSchemas.html" title="class in com.tailf.maapi">MaapiSchemas</a></code></td> <td class="colLast"><span class="strong">Maapi.</span><code><strong><a href="../../../../com/tailf/maapi/Maapi.html#reloadSchemas()">reloadSchemas</a></strong>()</code> <div class="block">This method throws away any old MaapiSchemas container and downloads a new from the server.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../com/tailf/maapi/MaapiSchemas.html" title="class in com.tailf.maapi">MaapiSchemas</a></code></td> <td class="colLast"><span class="strong">Maapi.</span><code><strong><a href="../../../../com/tailf/maapi/Maapi.html#reloadSchemas(java.lang.String[])">reloadSchemas</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;namespaceURIs)</code> <div class="block">This method throws away any old MaapiSchemas container and downloads a new from the server.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.tailf.navu"> <!-- --> </a> <h3>Uses of <a href="../../../../com/tailf/maapi/MaapiSchemas.html" title="class in com.tailf.maapi">MaapiSchemas</a> in <a href="../../../../com/tailf/navu/package-summary.html">com.tailf.navu</a></h3> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../com/tailf/navu/package-summary.html">com.tailf.navu</a> that return <a href="../../../../com/tailf/maapi/MaapiSchemas.html" title="class in com.tailf.maapi">MaapiSchemas</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../com/tailf/maapi/MaapiSchemas.html" title="class in com.tailf.maapi">MaapiSchemas</a></code></td> <td class="colLast"><span class="strong">NavuNodeInfo.</span><code><strong><a href="../../../../com/tailf/navu/NavuNodeInfo.html#getCSSchemas()">getCSSchemas</a></strong>()</code>&nbsp;</td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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><a href="../../../../com/tailf/maapi/MaapiSchemas.html" title="class in com.tailf.maapi">Class</a></li> <li class="navBarCell1Rev">Use</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>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/tailf/maapi//class-useMaapiSchemas.html" target="_top">Frames</a></li> <li><a href="MaapiSchemas.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> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
kimjinyong/i2nsf-framework
Hackathon-111/SecurityController/confd-6.6/doc/api/java/com/tailf/maapi/class-use/MaapiSchemas.html
HTML
apache-2.0
9,811
<!DOCTYPE html> <html lang="en" ng-app="jpm"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link href="/releases/4.2.0/css/style.css" rel="stylesheet" /> <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> <script src="/js/releases.js"></script> <!-- Begin Jekyll SEO tag v2.5.0 --> <title>-nouses BOOLEAN</title> <meta name="generator" content="Jekyll v3.7.4" /> <meta property="og:title" content="-nouses BOOLEAN" /> <meta property="og:locale" content="en_US" /> <meta name="description" content="/** * Add the uses clauses. This method iterates over the exports and cal * * @param exports * @param uses * @throws MojoExecutionException */ void doUses(Packages exports, Map&lt;PackageRef,List&lt;PackageRef&gt;&gt; uses, Packages imports) { if (isTrue(getProperty(NOUSES))) return;" /> <meta property="og:description" content="/** * Add the uses clauses. This method iterates over the exports and cal * * @param exports * @param uses * @throws MojoExecutionException */ void doUses(Packages exports, Map&lt;PackageRef,List&lt;PackageRef&gt;&gt; uses, Packages imports) { if (isTrue(getProperty(NOUSES))) return;" /> <meta property="og:type" content="article" /> <meta property="article:published_time" content="2019-10-12T19:48:23-04:00" /> <script type="application/ld+json"> {"headline":"-nouses BOOLEAN","dateModified":"2019-10-12T19:48:23-04:00","datePublished":"2019-10-12T19:48:23-04:00","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"/releases/4.2.0/instructions/nouses.html"},"url":"/releases/4.2.0/instructions/nouses.html","description":"/** * Add the uses clauses. This method iterates over the exports and cal * * @param exports * @param uses * @throws MojoExecutionException */ void doUses(Packages exports, Map&lt;PackageRef,List&lt;PackageRef&gt;&gt; uses, Packages imports) { if (isTrue(getProperty(NOUSES))) return;","@context":"http://schema.org"}</script> <!-- End Jekyll SEO tag --> </head> <body> <ul class="container12 menu-bar"> <li span=11><a class=menu-link href="/releases/4.2.0/"><img class=menu-logo src='/releases/4.2.0/img/bnd-80x40-white.png'></a> <a href="/releases/4.2.0/chapters/110-introduction.html">Intro </a><a href="/releases/4.2.0/chapters/800-headers.html">Headers </a><a href="/releases/4.2.0/chapters/825-instructions-ref.html">Instructions </a><a href="/releases/4.2.0/chapters/855-macros-ref.html">Macros </a><a href="/releases/4.2.0/chapters/400-commands.html">Commands </a><div class="releases"><button class="dropbtn">4.2.0</button><div class="dropdown-content"></div></div> <li class=menu-link span=1> <a href="https://github.com/bndtools/bnd" target="_"><img style="position:absolute;top:0;right:0;margin:0;padding:0;z-index:100" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a> </ul> <ul class=container12> <li span=3> <div> <ul class="side-nav"> <li><a href="/releases/4.2.0/chapters/110-introduction.html">Introduction</a> <li><a href="/releases/4.2.0/chapters/120-install.html">How to install bnd</a> <li><a href="/releases/4.2.0/chapters/123-tour-workspace.html">Guided Tour</a> <li><a href="/releases/4.2.0/chapters/125-tour-features.html">Guided Tour Workspace & Projects</a> <li><a href="/releases/4.2.0/chapters/130-concepts.html">Concepts</a> <li><a href="/releases/4.2.0/chapters/140-best-practices.html">Best practices</a> <li><a href="/releases/4.2.0/chapters/150-build.html">Build</a> <li><a href="/releases/4.2.0/chapters/160-jars.html">Generating JARs</a> <li><a href="/releases/4.2.0/chapters/170-versioning.html">Versioning</a> <li><a href="/releases/4.2.0/chapters/180-baselining.html">Baselining</a> <li><a href="/releases/4.2.0/chapters/200-components.html">Service Components</a> <li><a href="/releases/4.2.0/chapters/210-metatype.html">Metatype</a> <li><a href="/releases/4.2.0/chapters/220-contracts.html">Contracts</a> <li><a href="/releases/4.2.0/chapters/230-manifest-annotations.html">Manifest Annotations</a> <li><a href="/releases/4.2.0/chapters/250-resolving.html">Resolving Dependencies</a> <li><a href="/releases/4.2.0/chapters/300-launching.html">Launching</a> <li><a href="/releases/4.2.0/chapters/305-Junit-Testing-OSGi.html">Plain JUnit Testing with OSGi (PRELIMENARY)</a> <li><a href="/releases/4.2.0/chapters/310-testing.html">Testing</a> <li><a href="/releases/4.2.0/chapters/320-packaging.html">Packaging Applications</a> <li><a href="/releases/4.2.0/chapters/390-wrapping.html">Wrapping Libraries to OSGi Bundles</a> <li><a href="/releases/4.2.0/chapters/400-commands.html">Commands</a> <li><a href="/releases/4.2.0/chapters/600-developer.html">For Developers</a> <li><a href="/releases/4.2.0/chapters/700-tools.html">Tools bound to bnd</a> <li><a href="/releases/4.2.0/chapters/800-headers.html">Headers</a> <li><a href="/releases/4.2.0/chapters/820-instructions.html">Instruction Reference</a> <li><a href="/releases/4.2.0/chapters/825-instructions-ref.html">Instruction Index</a> <li><a href="/releases/4.2.0/chapters/850-macros.html">Macro Reference</a> <li><a href="/releases/4.2.0/chapters/855-macros-ref.html">Macro Index</a> <li><a href="/releases/4.2.0/chapters/870-plugins.html">Plugins</a> <li><a href="/releases/4.2.0/chapters/880-settings.html">Settings</a> <li><a href="/releases/4.2.0/chapters/900-errors.html">Errors</a> <li><a href="/releases/4.2.0/chapters/910-warnings.html">Warnings</a> <li><a href="/releases/4.2.0/chapters/920-faq.html">Frequently Asked Questions</a> </ul> </div> <li span=9> <div class=notes-margin> <h1> -nouses BOOLEAN</h1> <div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code>/** * Add the uses clauses. This method iterates over the exports and cal * * @param exports * @param uses * @throws MojoExecutionException */ void doUses(Packages exports, Map&lt;PackageRef,List&lt;PackageRef&gt;&gt; uses, Packages imports) { if (isTrue(getProperty(NOUSES))) return; for (Iterator&lt;PackageRef&gt; i = exports.keySet().iterator(); i.hasNext();) { PackageRef packageRef = i.next(); String packageName = packageRef.getFQN(); setProperty(CURRENT_PACKAGE, packageName); try { doUses(packageRef, exports, uses, imports); } finally { unsetProperty(CURRENT_PACKAGE); } } } </code></pre></div></div> </div> </ul> <nav class=next-prev> <a href='/releases/4.2.0/instructions/nomanifest.html'></a> <a href='/releases/4.2.0/instructions/output.html'></a> </nav> <footer class="container12" style="border-top: 1px solid black;padding:10px 0"> <ul span=12 row> <li span=12> <ul> <li><a href="/releases/4.2.0/">GitHub</a> </ul> </ul> </footer> </body> </html>
psoreide/bnd
docs/releases/4.2.0/instructions/nouses.html
HTML
apache-2.0
7,360
<!-- Copyright 2013 The Polymer Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <!-- /** * Polymer-UI Elements * * @module Polymer-UI Elements */ /** * polymer-ui-icon is a 24x24 glyph expressed as a background-image. * * Example: * * <polymer-ui-icon src="star.png"></polymer-ui-icon> * * Optionally can use other size like 32x32 by setting the attribute "size" to "32": * * <polymer-ui-icon src="big_star.png" size="32"></polymer-ui-icon> * * Polymer includes an icon set. The property "icon" can be used * to specify which icon to use. * * Example: * * <polymer-ui-icon icon="menu"></polymer-ui-icon> * * @class polymer-ui-icon */ --> <link rel="import" href="../polymer-ui-theme-aware/polymer-ui-theme-aware.html"> <polymer-element name="polymer-ui-icon" extends="polymer-ui-theme-aware" attributes="src size index icon"> <template> <link rel="stylesheet" href="polymer-ui-icon.css"> </template> <script> (function() { Polymer('polymer-ui-icon', { /** * The URL of an image for the icon. * * @attribute src * @type string * @default '' */ src: '', /** * Specifies the size of the icon. * * @attribute size * @type string * @default 24 */ size: 24, /** * Specifies the icon from the Polymer icon set. * * @attribute icon * @type string * @default '' */ icon: '', bx: 0, by: 0, ready: function() { this.sizeChanged(); }, sizeChanged: function() { this.style.width = this.style.height = this.size + 'px'; }, iconChanged: function() { this.index = this.icon in icons ? icons[this.icon] : -1; }, indexChanged: function() { this.classList.add('polymer-ui-icons'); this.by = -this.size * this.index; this.updateIcon(); }, srcChanged: function() { this.classList.remove('polymer-ui-icons'); this.style.backgroundImage = 'url(' + this.src + ')'; this.updateIcon(); }, themeChanged: function(old) { this.style.backgroundPosition = ''; this.classList.switch(old, this.theme); this.asyncMethod('updateIcon'); }, updateIcon: function() { if (this.src) { this.style.backgroundPosition = 'center'; } else { this.bx = parseFloat(getComputedStyle(this).backgroundPosition.split(' ').shift()); this.style.backgroundPosition = (this.bx + 'px') + ' ' + (this.by + 'px'); } } }); var icons = { drawer: 0, menu: 1, search: 2, dropdown: 3, close: 4, add: 5, trash: 6, refresh: 7, settings: 8, dialog: 9 }; })(); </script> </polymer-element>
passiweinberger/passiweinberger.github.io
webgl-globe/polymer-globe/polymer/polymer-all/polymer-ui-elements/polymer-ui-icon/polymer-ui-icon.html
HTML
apache-2.0
3,090
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI Autocomplete - Default functionality</title> <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"> <script src="../../jquery-1.10.2.js"></script> <script src="../../ui/jquery.ui.core.js"></script> <script src="../../ui/jquery.ui.widget.js"></script> <script src="../../ui/jquery.ui.position.js"></script> <script src="../../ui/jquery.ui.menu.js"></script> <script src="../../ui/jquery.ui.autocomplete.js"></script> <link rel="stylesheet" href="../demos.css"> <script> $(function() { var availableTags = [ "ActionScript", "AppleScript", "Asp", "BASIC", "C", "C++", "Clojure", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy", "Haskell", "Java", "JavaScript", "Lisp", "Perl", "PHP", "Python", "Ruby", "Scala", "Scheme" ]; $( "#tags" ).autocomplete({ source: availableTags }); }); </script> </head> <body> <div class="ui-widget"> <label for="tags">Tags: </label> <input id="tags"> </div> <div class="demo-description"> <p>The Autocomplete widgets provides suggestions while you type into the field. Here the suggestions are tags for programming languages, give "ja" (for Java or JavaScript) a try.</p> <p>The datasource is a simple JavaScript array, provided to the widget using the source-option.</p> </div> </body> </html>
chipchilders/migrate2cs
views/plugins/jquery-ui-1.10.4.custom/development-bundle/demos/autocomplete/default.html
HTML
mit
1,472
<html> <head> <!--base--> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> </head> <body> </body> </html>
kerrishotts/Mastering-PhoneGap-Code-Package
snippets/07/ex7-cursors-indexes/vanilla/index.html
HTML
mit
207
<!doctype html> <html> <title>npm-submodule</title> <meta http-equiv="content-type" value="text/html;utf-8"> <link rel="stylesheet" type="text/css" href="../../static/style.css"> <link rel="canonical" href="https://www.npmjs.org/doc/cli/npm-submodule.html"> <script async=true src="../../static/toc.js"></script> <body> <div id="wrapper"> <h1><a href="../cli/npm-submodule.html">npm-submodule</a></h1> <p>Add a package as a git submodule</p> <h2 id="SYNOPSIS">SYNOPSIS</h2> <pre><code>npm submodule &lt;pkg&gt;</code></pre> <h2 id="DESCRIPTION">DESCRIPTION</h2> <p>If the specified package has a git repository url in its package.json description, then this command will add it as a git submodule at <code>node_modules/&lt;pkg name&gt;</code>.</p> <p>This is a convenience only. From then on, it&#39;s up to you to manage updates by using the appropriate git commands. npm will stubbornly refuse to update, modify, or remove anything with a <code>.git</code> subfolder in it.</p> <p>This command also does not install missing dependencies, if the package does not include them in its git repository. If <code>npm ls</code> reports that things are missing, you can either install, link, or submodule them yourself, or you can do <code>npm explore &lt;pkgname&gt; -- npm install</code> to install the dependencies into the submodule folder.</p> <h2 id="SEE-ALSO">SEE ALSO</h2> <ul><li><a href="../files/package.json.html">package.json(5)</a></li><li>git help submodule</li></ul> </div> <table border=0 cellspacing=0 cellpadding=0 id=npmlogo> <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr> <tr><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td colspan=6 style="width:60px;height:10px;background:#fff">&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td></tr> <tr><td colspan=2 style="width:20px;height:30px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=4 colspan=2>&nbsp;</td><td style="width:10px;height:20px;background:rgb(237,127,127)" rowspan=2>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=3 colspan=2>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td></tr> <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr> <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr> <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr> <tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr> </table> <p id="footer">npm-submodule &mdash; [email protected]</p>
cloxp/cloxp-install
win/node_modules/npm/html/doc/cli/npm-submodule.html
HTML
mit
3,668
<!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <title>Furatto</title> <link rel="stylesheet" href="assets/css/normalize.css" /> <link rel="stylesheet" href="assets/css/furatto.css" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <div class="navbar inverse-navbar navbar-fixed-top navbar-alpha"> <div class="navbar-inner"> <div class="container"> <a href="#menu" class="menu-trigger meteocon" data-meteocon="M"></a> <div class="nav-collapse collapse"> <nav id="menu"> <ul class="nav"> <li><a class="brand" href="index.html">Furatto</a></li> <li class=""><a href="buttons.html">Buttons</a></li> <li class=""><a href="images.html">Images</a></li> <li class=""><a href="tables.html">Tables</a></li> <li class=""><a href="base.html">Base</a></li> <li class=""><a href="grid.html">Grid</a></li> <li class=""><a href="forms.html">Forms</a></li> <li class=""><a href="components.html">Components</a></li> <li class=""><a href="javascript.html">Javascript</a></li> </ul> </nav> </div> </div> </div> </div> <div class="container"> <div class="furatto-block"> <div class="furatto-jumbo-header"> <div class="furatto-jumbo-container"> <h1 class="jumbo-header">Furatto</h1> <p class="motto"> It's a flat, fast and powerful front-end framework for <br /> rapid web development. </p> <a href="assets/furatto.zip" onclick="_gaq.push(['_trackEvent', 'Furatto Actions', 'Download', 'Download V1']);">Download</a> <ul class="inline"> <li><a href="https://github.com/IcaliaLabs/furatto" target="_blank">Github Project</a></li> <li><a href="#">Examples</a></li> <li class="disabled">Version 1.0.1</li> </ul> <ul class="inline"> <li> <iframe src="http://ghbtns.com/github-btn.html?user=IcaliaLabs&repo=furatto&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="80" height="20"></iframe> </li> <li> <iframe src="http://ghbtns.com/github-btn.html?user=IcaliaLabs&repo=furatto&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="80" height="20"></iframe> </li> </ul> </div> </div> <hr /> <div> </div> </div> </div> <div class="main-container"> <div class="row-fluid"> <div class="furatto-steps"> <h1 class="furatto-steps-header">Why furatto?</h1> <div class="span4"> <img src="assets/img/icons/rocket-icon150.png" /> <h2 class="step-header">Ready to launch!</h1> <p class="step-desc">You have everything built up, ready to launch your site with a beautiful and sleek design!</p> </div> <div class="span4"> <img src="assets/img/icons/iphone-icon150.png" /> <h2 class="step-header">Take it anywhere!</h1> <p class="step-desc">Furatto is built based not only to look nice in desktop browsers, but on smartphones, tablets browsers thanks to the responsive CSS</p> </div> <div class="span4"> <img src="assets/img/icons/customize-icon150.png" /> <h2 class="step-header">Highly customizable!</h1> <p class="step-desc">You don't like the default values?, it's extremely easy to add or change elements</p> </div> </div> </div> </div> <div class="footer"> <div class="footer-wrapper"> <div class="container"> <div class="row-fluid"> <div class="span12"> <div class="span6"> <p class="copyright">Code licensed under <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank" class="link">Apache License v2.0</a></p> </div> <div class="span6"> <ul class="hrz-nav pull-right"> <li><a href="index.html">Home</a></li> <li><a href="assets/furatto.zip" onclick="_gaq.push(['_trackEvent', 'Furatto Actions', 'Download', 'Download V1']);">Download</a></li> <li><a href="https://github.com/IcaliaLabs/furatto-rails">Rails</a></li> <li><a href="https://github.com/IcaliaLabs/furatto" target="_blank">Github</a></li> </ul> </div> </div> </div> </div> </div> </div> <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-32608013-3', 'icalialabs.github.io'); ga('send', 'pageview'); </script> <script src="assets/js/jquery.js"></script> <script src="assets/js/jpanel.js"></script> <script src="assets/js/jquery.dropkick-1.0.0.js"></script> <script src="assets/js/jquery.icheck.js"></script> <script src="assets/js/rainbow-custom.min.js"></script> <script src="assets/js/tooltip.js"></script> <script src="assets/js/jquery.tagsinput.js"></script> <script src="assets/js/picker.js"></script> <script src="assets/js/picker.date.js"></script> <script src="assets/js/picker.time.js"></script> <script src="assets/js/legacy.js"></script> <script src="assets/js/jquery.toolbar.js"></script> <script src="assets/js/jquery.avgrund.js"></script> <script src="assets/js/responsiveslides.js"></script> <script src="assets/js/responsive-tables.js"></script> <script src="assets/js/dropdown.js"></script> <script src="assets/js/manifest.js"></script> </body> </html>
zerin108/furatto
docs/old_docs/v2/old_docs/index.html
HTML
mit
5,768
<html> <head> <meta name="pygwt:module" content="DNDTest"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <title>Drag and Drop Test</title> </head> <body bgcolor="white"> <script language="javascript" src="bootstrap.js"></script> <iframe id='__pygwt_historyFrame' style='width:0;height:0;border:0'></iframe> </body> </html>
spaceone/pyjs
examples/dnd/public/DNDTest.html
HTML
apache-2.0
339
{{ partial "header" . }} {{ partial "article-list" . }} {{ partial "footer" . }}
Teknoenie/subatomictoad.com
themes/subatomictoad/layouts/index.html
HTML
bsd-2-clause
81
<!doctype html> <meta charset="utf-8" /> <title>button accesskey</title> <p> Press <kbd>Shift</kbd> + <kbd>Esc</kbd> (in Opera), or trigger the <var>Enter access key mode</var> action in gogi, and press <kbd>o</kbd>. The word “PASS” should appear on the following page. </p> <form action="../res/pass.php" method="post"> <p> <button name="test" type="submit" accesskey="o">Select me using the <kbd>o</kbd> accesskey</button> </p> </form>
frivoal/presto-testo
core/standards/wf1/interactive/button-keys-001.html
HTML
bsd-3-clause
453
<!DOCTYPE html> <html lang="en" > <head> <meta charset="utf-8"/> <title>cjk-decimal, suffix</title> <link rel='author' title='Richard Ishida' href='mailto:[email protected]'> <link rel='help' href='http://www.w3.org/TR/css-counter-styles-3/#simple-numeric'> <link rel="reviewer" title="Chris Lilley" href="mailto:[email protected]" /> <meta name='flags' content='font'> <meta name="assert" content="list-style-type: cjk-decimal will produce a suffix as described in the CSS3 Counter Styles module."> <style type='text/css'> ol li { list-style-type: cjk-decimal; } /* the following CSS is not part of the test */ .test { font-size: 25px; } ol { margin: 0; padding-left: 8em; } </style> </head> <body> <p class="instructions">Test passes if the numbers AND the suffix in each of the two columns is the same.</p> <div class='test'><ol> <div><bdi>一、</bdi>一、</div> <div><bdi>二、</bdi>二、</div> </ol> </div> <!--Notes: You will need an appropriate font to run this test. To see the ASCII decimal number associated with a row, mouse over it and the number will pop up in a tooltip. --> </body> </html>
scheib/chromium
third_party/blink/web_tests/external/wpt/css/css-counter-styles/cjk-decimal/css3-counter-styles-005-ref.html
HTML
bsd-3-clause
1,102
Indicates if it is iOS <div class="definition"> Boolean, read only </div> If it is iOS (iPhone, iPad, iPod), this variables is set to true.
fosfozol/w2ui
docs/details/w2utils.isIOS.html
HTML
mit
146
<?xml version="1.0" encoding="utf-8" ?> <!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" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.3.10: http://docutils.sourceforge.net/" /> <title>Boost Pointer Container Library</title> <style type="text/css"> /* :Author: David Goodger :Contact: [email protected] :Date: $Date: 2006-11-22 17:01:03 -0500 (Wed, 22 Nov 2006) $ :Revision: $Revision: 36152 $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to customize this style sheet. */ /* "! important" is used here to override other ``margin-top`` and ``margin-bottom`` styles that are later in the stylesheet or more specific. See http://www.w3.org/TR/CSS1#the-cascade */ .first { margin-top: 0 ! important } .last, .with-subtitle { margin-bottom: 0 ! important } .hidden { display: none } a.toc-backref { text-decoration: none ; color: black } blockquote.epigraph { margin: 2em 5em ; } dl.docutils dd { margin-bottom: 0.5em } /* Uncomment (and remove this text!) to get bold-faced definition list terms dl.docutils dt { font-weight: bold } */ div.abstract { margin: 2em 5em } div.abstract p.topic-title { font-weight: bold ; text-align: center } div.admonition, div.attention, div.caution, div.danger, div.error, div.hint, div.important, div.note, div.tip, div.warning { margin: 2em ; border: medium outset ; padding: 1em } div.admonition p.admonition-title, div.hint p.admonition-title, div.important p.admonition-title, div.note p.admonition-title, div.tip p.admonition-title { font-weight: bold ; font-family: sans-serif } div.attention p.admonition-title, div.caution p.admonition-title, div.danger p.admonition-title, div.error p.admonition-title, div.warning p.admonition-title { color: red ; font-weight: bold ; font-family: sans-serif } /* Uncomment (and remove this text!) to get reduced vertical space in compound paragraphs. div.compound .compound-first, div.compound .compound-middle { margin-bottom: 0.5em } div.compound .compound-last, div.compound .compound-middle { margin-top: 0.5em } */ div.dedication { margin: 2em 5em ; text-align: center ; font-style: italic } div.dedication p.topic-title { font-weight: bold ; font-style: normal } div.figure { margin-left: 2em } div.footer, div.header { clear: both; font-size: smaller } div.line-block { display: block ; margin-top: 1em ; margin-bottom: 1em } div.line-block div.line-block { margin-top: 0 ; margin-bottom: 0 ; margin-left: 1.5em } div.sidebar { margin-left: 1em ; border: medium outset ; padding: 1em ; background-color: #ffffee ; width: 40% ; float: right ; clear: right } div.sidebar p.rubric { font-family: sans-serif ; font-size: medium } div.system-messages { margin: 5em } div.system-messages h1 { color: red } div.system-message { border: medium outset ; padding: 1em } div.system-message p.system-message-title { color: red ; font-weight: bold } div.topic { margin: 2em } h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { margin-top: 0.4em } h1.title { text-align: center } h2.subtitle { text-align: center } hr.docutils { width: 75% } img.align-left { clear: left } img.align-right { clear: right } img.borderless { border: 0 } ol.simple, ul.simple { margin-bottom: 1em } ol.arabic { list-style: decimal } ol.loweralpha { list-style: lower-alpha } ol.upperalpha { list-style: upper-alpha } ol.lowerroman { list-style: lower-roman } ol.upperroman { list-style: upper-roman } p.attribution { text-align: right ; margin-left: 50% } p.caption { font-style: italic } p.credits { font-style: italic ; font-size: smaller } p.label { white-space: nowrap } p.rubric { font-weight: bold ; font-size: larger ; color: maroon ; text-align: center } p.sidebar-title { font-family: sans-serif ; font-weight: bold ; font-size: larger } p.sidebar-subtitle { font-family: sans-serif ; font-weight: bold } p.topic-title { font-weight: bold } pre.address { margin-bottom: 0 ; margin-top: 0 ; font-family: serif ; font-size: 100% } pre.line-block { font-family: serif ; font-size: 100% } pre.literal-block, pre.doctest-block { margin-left: 2em ; margin-right: 2em ; background-color: #eeeeee } span.classifier { font-family: sans-serif ; font-style: oblique } span.classifier-delimiter { font-family: sans-serif ; font-weight: bold } span.interpreted { font-family: sans-serif } span.option { white-space: nowrap } span.pre { white-space: pre } span.problematic { color: red } span.section-subtitle { /* font-size relative to parent (h1..h6 element) */ font-size: 80% } table.citation { border-left: solid thin gray } table.docinfo { margin: 2em 4em } table.docutils { margin-top: 0.5em ; margin-bottom: 0.5em } table.footnote { border-left: solid thin black } table.docutils td, table.docutils th, table.docinfo td, table.docinfo th { padding-left: 0.5em ; padding-right: 0.5em ; vertical-align: top } table.docutils th.field-name, table.docinfo th.docinfo-name { font-weight: bold ; text-align: left ; white-space: nowrap ; padding-left: 0 } h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { font-size: 100% } tt.docutils { background-color: #eeeeee } ul.auto-toc { list-style-type: none } </style> </head> <body> <div class="document" id="boost-pointer-container-library"> <h1 class="title"><img alt="Boost" src="boost.png" /> Pointer Container Library</h1> <div class="section"> <h1><a id="class-associative-ptr-container" name="class-associative-ptr-container">Class <tt class="docutils literal"><span class="pre">associative_ptr_container</span></tt></a></h1> <p>This section describes all the common operations for all associative pointer containers (in addition to <tt class="docutils literal"><span class="pre">reversible_ptr_container</span></tt>).</p> <p><strong>Hierarchy:</strong></p> <ul class="simple"> <li><a class="reference" href="reversible_ptr_container.html">reversible_ptr_container</a><ul> <li><tt class="docutils literal"><span class="pre">associative_ptr_container</span></tt><ul> <li><a class="reference" href="ptr_set_adapter.html">ptr_set_adapter</a></li> <li><a class="reference" href="ptr_multiset_adapter.html">ptr_multiset_adapter</a></li> <li><a class="reference" href="ptr_map_adapter.html">ptr_map_adapter</a></li> <li><a class="reference" href="ptr_multimap_adapter.html">ptr_multi_map_adapter</a><ul> <li><a class="reference" href="ptr_set.html">ptr_set</a></li> <li><a class="reference" href="ptr_multiset.html">ptr_multi_set</a></li> <li><a class="reference" href="ptr_map.html">ptr_map</a></li> <li><a class="reference" href="ptr_multimap.html">ptr_multimap</a></li> </ul> </li> </ul> </li> </ul> </li> </ul> <p><strong>See also:</strong></p> <ul class="simple"> <li><a class="reference" href="http://www.boost.org/libs/range/doc/utility_class.html#iter_range">iterator_range</a></li> </ul> <p><strong>Navigate:</strong></p> <ul class="simple"> <li><a class="reference" href="ptr_container.html">home</a></li> <li><a class="reference" href="reference.html">reference</a></li> </ul> <p><strong>Synopsis:</strong></p> <pre class="literal-block"> namespace boost { template &lt; class Key, class CloneAllocator = heap_clone_allocator &gt; class associative_ptr_container { public: // <a class="reference" href="#typedefs">typedefs</a> typedef ... key_type; typedef ... key_compare; typedef ... value_compare; public: // <a class="reference" href="#observers">observers</a> key_compare key_comp() const; value_compare value_comp() const; public: // <a class="reference" href="#modifiers">modifiers</a> template&lt; typename InputIterator &gt; void insert( InputIterator first, InputIterator last ); template&lt; class InputRange &gt; void insert( const InputRange&amp; r ); void erase( iterator position ); size_type erase( const key_type&amp; x ); template&lt; class Range &gt; void erase( const Range&amp; r ); void erase( iterator first, iterator last ); public: // <a class="reference" href="#algorithms">algorithms</a> iterator find( const key_type&amp; x ); const_iterator find( const key_type&amp; x ) const; size_type count( const key_type&amp; x ) const; iterator lower_bound( const key_type&amp; x ); const_iterator lower_bound( const key_type&amp; x ) const; iterator upper_bound( const key_type&amp; x ); const_iterator upper_bound( const key_type&amp; x ) const; iterator_range&lt;iterator&gt; equal_range( const key_type&amp; x ); iterator_range&lt;const_iterator&gt; equal_range( const key_type&amp; x ) const; }; // class 'associative_ptr_container' } // namespace 'boost' </pre> </div> <div class="section"> <h1><a id="semantics" name="semantics">Semantics</a></h1> <div class="section"> <h2><a id="semantics-typedefs" name="semantics-typedefs"><span id="typedefs"></span>Semantics: typedefs</a></h2> <ul> <li><p class="first"><tt class="docutils literal"><span class="pre">typedef</span> <span class="pre">...</span> <span class="pre">key_type;</span></tt></p> <blockquote> <ul class="simple"> <li>if we are dealing with a map, then simply the key type</li> <li>if we are dealing with a set, then the <em>indirected</em> key type, that is, given <tt class="docutils literal"><span class="pre">ptr_set&lt;T&gt;</span></tt>, <tt class="docutils literal"><span class="pre">key_type*</span></tt> will be <tt class="docutils literal"><span class="pre">T*</span></tt>.</li> </ul> </blockquote> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">typedef</span> <span class="pre">...</span> <span class="pre">key_compare;</span></tt></p> <blockquote> <ul class="simple"> <li>comparison object type that determines the order of elements in the container</li> </ul> </blockquote> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">typedef</span> <span class="pre">...</span> <span class="pre">value_compare;</span></tt></p> <blockquote> <ul class="simple"> <li>comparison object type that determines the order of elements in the container</li> <li>if we are dealing with a map, then this comparison simply forwards to the <tt class="docutils literal"><span class="pre">key_compare</span></tt> comparison operation</li> </ul> </blockquote> </li> </ul> </div> <div class="section"> <h2><a id="semantics-observers" name="semantics-observers"><span id="observers"></span>Semantics: observers</a></h2> <ul> <li><p class="first"><tt class="docutils literal"><span class="pre">key_compare</span> <span class="pre">key_comp()</span> <span class="pre">const;</span></tt></p> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">value_compare</span> <span class="pre">value_comp()</span> <span class="pre">const;</span></tt></p> <blockquote> <ul class="simple"> <li>returns copies of objects used to determine the order of elements</li> </ul> </blockquote> </li> </ul> </div> <div class="section"> <h2><a id="semantics-modifiers" name="semantics-modifiers"><span id="modifiers"></span>Semantics: modifiers</a></h2> <ul> <li><p class="first"><tt class="docutils literal"><span class="pre">template&lt;</span> <span class="pre">typename</span> <span class="pre">InputIterator</span> <span class="pre">&gt;</span> <span class="pre">void</span> <span class="pre">insert(</span> <span class="pre">InputIterator</span> <span class="pre">first,</span> <span class="pre">InputIterator</span> <span class="pre">last</span> <span class="pre">);</span></tt></p> <blockquote> <ul class="simple"> <li>Requirements: <tt class="docutils literal"><span class="pre">[first,last)</span></tt> is a valid range</li> <li>Effects: Inserts a cloned range</li> <li>Exception safety: Basic guarantee</li> </ul> </blockquote> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">template&lt;</span> <span class="pre">class</span> <span class="pre">InputRange</span> <span class="pre">&gt;</span> <span class="pre">void</span> <span class="pre">insert(</span> <span class="pre">const</span> <span class="pre">InputRange&amp;</span> <span class="pre">r</span> <span class="pre">);</span></tt></p> <blockquote> <ul class="simple"> <li>Effects: <tt class="docutils literal"><span class="pre">insert(</span> <span class="pre">boost::begin(r),</span> <span class="pre">boost::end(r)</span> <span class="pre">);</span></tt></li> </ul> </blockquote> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">void</span> <span class="pre">erase(</span> <span class="pre">iterator</span> <span class="pre">position</span> <span class="pre">);</span></tt></p> <blockquote> <ul class="simple"> <li>Requirements: <tt class="docutils literal"><span class="pre">position</span></tt> is a valid iterator from the container</li> <li>Effects: Removes the element defined by <tt class="docutils literal"><span class="pre">position</span></tt>.</li> <li>Throws: Nothing</li> </ul> </blockquote> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">size_type</span> <span class="pre">erase(</span> <span class="pre">const</span> <span class="pre">key_type&amp;</span> <span class="pre">x</span> <span class="pre">);</span></tt></p> <blockquote> <ul class="simple"> <li>Effects: Removes all the elements in the container with a key equivalent to <tt class="docutils literal"><span class="pre">x</span></tt> and returns the number of erased elements.</li> <li>Throws: Nothing</li> </ul> </blockquote> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">void</span> <span class="pre">erase(</span> <span class="pre">iterator</span> <span class="pre">first,</span> <span class="pre">iterator</span> <span class="pre">last</span> <span class="pre">);</span></tt></p> <blockquote> <ul class="simple"> <li>Requirements: <tt class="docutils literal"><span class="pre">[first,last)</span></tt> is a valid range</li> <li>Effects: Removes the range of elements defined by <tt class="docutils literal"><span class="pre">[first,last)</span></tt>.</li> <li>Throws: Nothing</li> </ul> </blockquote> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">template&lt;</span> <span class="pre">class</span> <span class="pre">Range</span> <span class="pre">&gt;</span> <span class="pre">void</span> <span class="pre">erase(</span> <span class="pre">const</span> <span class="pre">Range&amp;</span> <span class="pre">r</span> <span class="pre">);</span></tt></p> <blockquote> <ul class="simple"> <li>Effects: <tt class="docutils literal"><span class="pre">erase(</span> <span class="pre">boost::begin(r),</span> <span class="pre">boost::end(r)</span> <span class="pre">);</span></tt></li> </ul> </blockquote> </li> </ul> </div> <div class="section"> <h2><a id="semantics-algorithms" name="semantics-algorithms"><span id="algorithms"></span>Semantics: algorithms</a></h2> <ul> <li><p class="first"><tt class="docutils literal"><span class="pre">iterator</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="pre">find(</span> <span class="pre">const</span> <span class="pre">Key&amp;</span> <span class="pre">x</span> <span class="pre">);</span></tt></p> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">const_iterator</span> <span class="pre">find(</span> <span class="pre">const</span> <span class="pre">Key&amp;</span> <span class="pre">x</span> <span class="pre">)</span> <span class="pre">const;</span></tt></p> <blockquote> <ul class="simple"> <li>Effects: Searches for the key and returns <tt class="docutils literal"><span class="pre">end()</span></tt> on failure.</li> <li>Complexity: Logarithmic</li> </ul> </blockquote> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">size_type</span> <span class="pre">count(</span> <span class="pre">const</span> <span class="pre">Key&amp;</span> <span class="pre">x</span> <span class="pre">)</span> <span class="pre">const;</span></tt></p> <blockquote> <ul class="simple"> <li>Effects: Counts the elements with a key equivalent to <tt class="docutils literal"><span class="pre">x</span></tt></li> <li>Complexity: Logarithmic</li> </ul> </blockquote> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">iterator</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="pre">lower_bound(</span> <span class="pre">const</span> <span class="pre">Key&amp;</span> <span class="pre">x</span> <span class="pre">);</span></tt></p> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">const_iterator</span> <span class="pre">lower_bound(</span> <span class="pre">const</span> <span class="pre">Key&amp;</span> <span class="pre">x</span> <span class="pre">)</span> <span class="pre">const;</span></tt></p> <blockquote> <ul class="simple"> <li>Effects: Returns an iterator pointing to the first element with a key not less than <tt class="docutils literal"><span class="pre">x</span></tt></li> <li>Complexity: Logarithmic</li> </ul> </blockquote> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">iterator</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="pre">upper_bound(</span> <span class="pre">const</span> <span class="pre">Key&amp;</span> <span class="pre">x</span> <span class="pre">);</span></tt></p> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">const_iterator</span> <span class="pre">upper_bound(</span> <span class="pre">const</span> <span class="pre">Key&amp;</span> <span class="pre">x</span> <span class="pre">)</span> <span class="pre">const;</span></tt></p> <blockquote> <ul class="simple"> <li>Effects: Returns an iterator pointing to the first element with a key greater than <tt class="docutils literal"><span class="pre">x</span></tt></li> <li>Complexity: Logarithmic</li> </ul> </blockquote> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">iterator_range&lt;iterator&gt;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="pre">equal_range(</span> <span class="pre">const</span> <span class="pre">Key&amp;</span> <span class="pre">x</span> <span class="pre">);</span></tt></p> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">iterator_range&lt;const_iterator&gt;</span> <span class="pre">equal_range(</span> <span class="pre">const</span> <span class="pre">Key&amp;</span> <span class="pre">x</span> <span class="pre">)</span> <span class="pre">const;</span></tt></p> <blockquote> <ul class="simple"> <li>Effects: <tt class="docutils literal"><span class="pre">return</span> <span class="pre">boost::make_iterator_range(</span> <span class="pre">lower_bound(</span> <span class="pre">x</span> <span class="pre">),</span> <span class="pre">upper_bound(</span> <span class="pre">x</span> <span class="pre">)</span> <span class="pre">);</span></tt></li> <li>Complexity: Logarithmic</li> </ul> </blockquote> </li> </ul> <!-- - ``reference at( const key_type& key );`` - ``const_reference at( const key_type& key ) const;`` - Requirements: the key exists - Effects: returns the object with key ``key`` - Throws: ``bad_ptr_container_operation`` if the key does not exist --> <hr><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field"><th class="field-name">Copyright:</th><td class="field-body">Thorsten Ottosen 2004-2006. Use, modification and distribution is subject to the Boost Software License, Version 1.0 (see <a class="reference" href="http://www.boost.org/LICENSE_1_0.txt">LICENSE_1_0.txt</a>).</td> </tr> </tbody> </table> </div> </div> </div> </body> </html>
djsedulous/namecoind
libs/boost_1_50_0/libs/ptr_container/doc/associative_ptr_container.html
HTML
mit
20,720
--- layout: default permalink: /404.html --- <style type="text/css" media="screen"> .container { margin: 10px auto; max-width: 600px; text-align: center; } h1 { margin: 30px 0; font-size: 4em; line-height: 1; letter-spacing: -1px; } </style> <div class="container"> <h1>404</h1> <p><strong>Page not found :(</strong></p> <p>The requested page could not be found.</p> </div>
readytostart/organiza-eventos-frontend
src/jekyll/_pages/404.html
HTML
mit
419
<body onload="runTest()"> <script src="../../resources/js-test.js"></script> <script> function runTest() { if (!window.testRunner) return; testRunner.dumpEditingCallbacks(); testRunner.dumpAsText(); shouldBe("first.selectionStart", "12"); shouldBe("first.selectionEnd", "19"); eventSender.keyDown("\t"); shouldBe("first.selectionStart", "0"); shouldBe("first.selectionEnd", "19"); shouldBe("second.selectionStart", "11"); shouldBe("second.selectionEnd", "18"); eventSender.keyDown("J", "accessKey"); shouldBe("second.selectionStart", "11"); shouldBe("second.selectionEnd", "18"); shouldBe("third.selectionStart", "11"); shouldBe("third.selectionEnd", "18"); third.focus(); shouldBe("third.selectionStart", "11"); shouldBe("third.selectionEnd", "18"); shouldBe("fourth.selectionStart", "12"); shouldBe("fourth.selectionEnd", "19"); eventSender.mouseMoveTo(fourth.offsetLeft + 4, fourth.offsetTop + 4); eventSender.mouseDown(); eventSender.mouseUp(); shouldBe("fourth.selectionStart", "0"); shouldBe("fourth.selectionEnd", "0"); shouldBe("fifth.selectionStart", "11"); shouldBe("fifth.selectionEnd", "18"); var fifthLabel = document.getElementById("fifthLabel"); eventSender.mouseMoveTo(fifthLabel.offsetLeft + 4, fifthLabel.offsetTop + 4); eventSender.mouseDown(); eventSender.mouseUp(); shouldBe("fifth.selectionStart", "11"); shouldBe("fifth.selectionEnd", "18"); shouldBe("sixth.selectionStart", "12"); shouldBe("sixth.selectionEnd", "19"); eventSender.keyDown("U", "accessKey"); shouldBe("sixth.selectionStart", "0"); shouldBe("sixth.selectionEnd", "19"); shouldBe("seventh.selectionStart", "11"); shouldBe("seventh.selectionEnd", "18"); var seventLabel = document.getElementById("seventhLabel"); seventhLabel.focus(); shouldBe("seventh.selectionStart", "11"); shouldBe("seventh.selectionEnd", "18"); shouldBe("eighth.selectionStart", "11"); shouldBe("eighth.selectionEnd", "18"); var eighthLegend = document.getElementById("eighthLegend"); eighthLegend.focus(); shouldBe("eighth.selectionStart", "11"); shouldBe("eighth.selectionEnd", "18"); shouldBe("ninth.selectionStart", "11"); shouldBe("ninth.selectionEnd", "18"); eventSender.keyDown("I", "accessKey"); shouldBe("ninth.selectionStart", "11"); shouldBe("ninth.selectionEnd", "18"); } </script> <h2>&lt;input type="text"&gt; focus selection</h2> <p>This test checks whether the selection is restored, cleared, or set to the full range when using different ways to focus a text field. These results all match Mozilla, except test 6, which selects the whole field contents to match all other cases of keyboard focus. When running manually, please follow the steps below. In the test harness, the test runs automatically.</p> 1) Hit tab, the whole phrase "SUCCESS and SUCCESS" should be selected: <input type="text" id="first" value="SUCCESS and SUCCESS"> <script> var first = document.getElementById("first"); first.focus(); first.setSelectionRange(12, 19); first.blur(); </script> <br> 2) Hit Ctrl-Option-J (or Alt-J on Windows), the whole phrase "SUCCESS and SUCCESS" should be selected: <input type="text" id="second" accesskey="j" value="SUCCESS and SUCCESS"> <script> var second = document.getElementById("second"); second.focus(); second.setSelectionRange(12, 19); second.blur(); </script> <br> 3) <input type="button" onclick="document.getElementById('third').focus()" value="Click this button">, only the word "SUCCESS" should be selected: <input type="text" id="third" value="FAILURE or SUCCESS"> <script> var third = document.getElementById("third"); third.focus(); third.setSelectionRange(11, 18); third.blur(); </script> <br> 4) Click in the input field, nothing should be selected: <input type="text" id="fourth" value="FAILURE and FAILURE"> <script> var fourth = document.getElementById("fourth"); fourth.focus(); fourth.setSelectionRange(12, 19); fourth.blur(); </script> <br> 5) <label id="fifthLabel" for="fifth" style="color: blue">Click this label, only the word "SUCCESS" should be selected:</label> <input type="text" id="fifth" value="FAILURE or SUCCESS"> <script> var second = document.getElementById("fifth"); fifth.focus(); fifth.setSelectionRange(11, 18); fifth.blur(); </script> <br> 6) <label id="sixthLabel" for="sixth" accesskey="u">Hit Ctrl-Option-U (or Alt-U on Windows), the whole phrase "SUCCESS and SUCCESS" should be selected:</label> <input type="text" id="sixth" value="SUCCESS and SUCCESS"> <script> var sixth = document.getElementById("sixth"); sixth.focus(); sixth.setSelectionRange(12, 19); sixth.blur(); </script> <br> 7) <input type="button" onclick="document.getElementById('seventhLabel').focus()" value="Click this button"><label id="seventhLabel" for="seventh">, only the word "SUCCESS" should be selected:</label> <input type="text" id="seventh" value="FAILURE or SUCCESS"> <script> var seventh = document.getElementById("seventh"); seventh.focus(); seventh.setSelectionRange(11, 18); seventh.blur(); </script> <br> 8) <input type="button" onclick="document.getElementById('eighthLegend').focus()" value="Click this button"> <fieldset> <legend id="eighthLegend">, only the word "SUCCESS" should be selected:</legend> <input type="text" id="eighth" value="FAILURE or SUCCESS"> <script> var eighth = document.getElementById("eighth"); eighth.focus(); eighth.setSelectionRange(11, 18); eighth.blur(); </script> </fieldset> <br> 9) <fieldset> <legend id="ninthLegend" accesskey="i">Hit Ctrl-Option-I (or Alt-I on Windows), only the word "SUCCESS" should be selected:</legend> <input type="text" id="ninth" value="FAILURE or SUCCESS"> <script> var ninth = document.getElementById("ninth"); ninth.focus(); ninth.setSelectionRange(11, 18); ninth.blur(); </script> </fieldset> <br> <p id="description"></p> <div id="console"></div> </body>
scheib/chromium
third_party/blink/web_tests/fast/forms/focus-selection-input.html
HTML
bsd-3-clause
6,142
<img src="http://devtools.test:8000/inspector-protocol/resources/img.png" />
scheib/chromium
third_party/blink/web_tests/http/tests/inspector-protocol/resources/mixed-content-img.html
HTML
bsd-3-clause
77
<!DOCTYPE html> <html> <body> <ul role="tree"> <li role="treeitem" aria-expanded="false"> Major </li> <li id="node" role="treeitem" aria-expanded="false"> Minor </li> <ul id="subtree" role="group" hidden> <li role="treeitem"> Minor Seventh </li> <li role="treeitem"> Minor Ninth </li> </ul> </ul> <script> function go() { var node = document.getElementById('node'); var subtree = document.getElementById('subtree'); node.setAttribute('aria-expanded', 'true'); subtree.hidden = false; } </script> </body> </html>
scheib/chromium
content/test/data/accessibility/event/aria-tree-expand.html
HTML
bsd-3-clause
580
<!DOCTYPE html> <!-- Copyright (c) 2013 Samsung Electronics Co., Ltd. Licensed 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. Authors: Lukasz Bardeli <[email protected]> --> <html> <head> <title>MessageStorage_email_findMessages_type_with_errorCallback</title> <meta charset="utf-8"/> <script type="text/javascript" src="support/unitcommon.js"></script> <script type="text/javascript" src="support/messaging_common.js"></script> </head> <body> <div id="log"></div> <script> //==== TEST: MessageStorage_email_findMessages_type_with_errorCallback //==== LABEL Check if MessageStorage.findMessages method works properly for filter by type (email) //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html //==== ONLOAD_DELAY 300 //==== TIMEOUT 300 //==== TEST_CRITERIA MOA setup({timeout: 300000}); var t = async_test(document.title, {timeout: 300000}), serviceSuccess, serviceError, service, message, filter, messageFound = false, addDraftSuccess, addDraftError, findSuccess, findError, i; t.step(function () { findSuccess = t.step_func(function (messages) { assert_type(messages, "array", "Not an array"); assert_greater_than(messages.length, 0, "Received empty messages array"); for (i = 0; i < messages.length; i++) { assert_true(messages[i] instanceof tizen.Message, "Not a Message"); assert_equals(messages[i].type, message.type, "returned type is not equal"); if (messages[i].id === message.id) { messageFound = true; } } assert_true(messageFound, "expected message wasn't found"); t.done(); }); findError = t.step_func(function (error) { assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message); }); addDraftSuccess = t.step_func(function () { filter = new tizen.AttributeFilter("type", "EXACTLY", message.type); service.messageStorage.findMessages(filter, findSuccess, findError); }); addDraftError = t.step_func(function (error) { assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message); }); serviceSuccess = t.step_func(function (emailService) { service = emailService; message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2); service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError); }); serviceError = t.step_func(function (error) { assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message); }); getEmailService(t, serviceSuccess, serviceError); }); </script> </body> </html>
XiaosongWei/crosswalk-test-suite
webapi/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_type_with_errorCallback.html
HTML
bsd-3-clause
3,300
<!DOCTYPE html> <html> <body> <input role="combobox" type="search" aria-expanded="true" aria-haspopup="true" aria-autocomplete="list" aria-activedescendant="option2" aria-owns="list"> <ul id="list" role="listbox"> <li id="option1" role="option">Apple</li> <li id="option2" role="option">Orange</li> <li id="option3" role="option">Banana</li> </ul> <script> document.querySelector('input').focus(); function go() { var combo_box = document.querySelector('input'); combo_box.setAttribute('aria-activedescendant', ''); combo_box.setAttribute('aria-expanded', 'false'); } </script> </body> </html>
scheib/chromium
content/test/data/accessibility/event/aria-combo-box-collapse.html
HTML
bsd-3-clause
616
<!DOCTYPE html> <script src="../resources/text-based-repaint.js"></script> <div id="scroller" style="writing-mode: vertical-rl; width: 400px; height: 400px; overflow-x: auto; will-change: transform"> <div id="target" style="width: 10000px; height:200px; background: red"></div> </div> <script> // Tests that flipped-blocks writing mode paint invalidation and culling works correctly for a composited scroller. // The result should be a green rectangle across the screen, and a scrollbar moved all the way to the left. onload = runRepaintAndPixelTest; function repaintTest() { target.style.background = "green"; scroller.scrollLeft = -9600; } </script>
scheib/chromium
third_party/blink/web_tests/paint/invalidation/scroll/flipped-blocks-writing-mode-scroll.html
HTML
bsd-3-clause
658
<!DOCTYPE html> <script src="../../resources/run-after-layout-and-paint.js"></script> <style> .a { } #f { position: absolute; left: 120px; top: 120px; width: 250px; height: 250px; border: 0; outline: 100px solid #fc8; } </style> <div class="a"></div> <iframe id="f" srcdoc=" <style> body { will-change: transform; } #b { height: 200px; background: blue; } </style> <div id=b></div>"></iframe> <script> if (window.testRunner) testRunner.waitUntilDone(); onload = () => { var a = document.querySelector(".a"); var f = document.querySelector("#f"); var b = f.contentWindow.document.querySelector("#b"); runAfterLayoutAndPaint(() => { // Invalidate main frame lifecycle without affecting compositing. a.className = ""; // Invalidate child frame compositing state. b.style.opacity = "0.2"; }, true); }; </script>
scheib/chromium
third_party/blink/web_tests/compositing/iframes/layer-position-with-outline.html
HTML
bsd-3-clause
871
<!DOCTYPE html><html><body><xyz:abc></xyz:abc>
guhelski/tnsfpg
node_modules/zombie/node_modules/html5/data/tree-construction/tests14.dat-0/input.html
HTML
mit
47
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="../includes/main.css" type="text/css"> <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"> <title>Apache CloudStack | The Power Behind Your Cloud</title> </head> <body> <div id="insidetopbg"> <div id="inside_wrapper"> <div class="uppermenu_panel"> <div class="uppermenu_box"></div> </div> <div id="main_master"> <div id="inside_header"> <div class="header_top"> <a class="cloud_logo" href="http://cloudstack.org"></a> <div class="mainemenu_panel"></div> </div> </div> <div id="main_content"> <div class="inside_apileftpanel"> <div class="inside_contentpanel" style="width:930px;"> <div class="api_titlebox"> <div class="api_titlebox_left"> <span> Apache CloudStack v4.5.0 Domain Admin API Reference </span> <p></p> <h1>listInternalLoadBalancerElements</h1> <p>Lists all available Internal Load Balancer elements.</p> </div> <div class="api_titlebox_right"> <a class="api_backbutton" href="../TOC_Domain_Admin.html"></a> </div> </div> <div class="api_tablepanel"> <h2>Request parameters</h2> <table class="apitable"> <tr class="hed"> <td style="width:200px;"><strong>Parameter Name</strong></td><td style="width:500px;">Description</td><td style="width:180px;">Required</td> </tr> <tr> <td style="width:200px;"><i>enabled</i></td><td style="width:500px;"><i>list internal load balancer elements by enabled state</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>id</i></td><td style="width:500px;"><i>list internal load balancer elements by id</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>keyword</i></td><td style="width:500px;"><i>List by keyword</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>nspid</i></td><td style="width:500px;"><i>list internal load balancer elements by network service provider id</i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>page</i></td><td style="width:500px;"><i></i></td><td style="width:180px;"><i>false</i></td> </tr> <tr> <td style="width:200px;"><i>pagesize</i></td><td style="width:500px;"><i></i></td><td style="width:180px;"><i>false</i></td> </tr> </table> </div> <div class="api_tablepanel"> <h2>Response Tags</h2> <table class="apitable"> <tr class="hed"> <td style="width:200px;"><strong>Response Name</strong></td><td style="width:500px;">Description</td> </tr> <tr> <td style="width:200px;"><strong>id</strong></td><td style="width:500px;">the id of the internal load balancer element</td> </tr> <tr> <td style="width:200px;"><strong>enabled</strong></td><td style="width:500px;">Enabled/Disabled the element</td> </tr> <tr> <td style="width:200px;"><strong>nspid</strong></td><td style="width:500px;">the physical network service provider id of the element</td> </tr> </table> </div> </div> </div> </div> </div> <div id="footer"> <div id="footer_mainmaster"> <p>Copyright &copy; 2015 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0.</a> <br> Apache, CloudStack, Apache CloudStack, the Apache CloudStack logo, the CloudMonkey logo and the Apache feather logo are trademarks of The Apache Software Foundation.</p> </div> </div> </div> </div> </body> </html>
resmo/cloudstack-www
source/api/apidocs-4.5/domain_admin/listInternalLoadBalancerElements.html
HTML
apache-2.0
3,605
<html> <head> <link rel="stylesheet" type="text/css" href="css/tips.css"> </head> <body> <p> You can use the <span class="">Extract Variable</span> refactoring even on incomplete statements. Just select the necessary block in the editor and press <span class="shortcut">&shortcut:IntroduceVariable;</span>.</p> <p class="image"><img src="images/extract_variable_incomplete.png"></p> </body> </html>
erawtfos/pycharm_zh_cn
tips/IntroduceVariableIncompleteCode.html
HTML
apache-2.0
442
<!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"/> <link href="coqdoc.css" rel="stylesheet" type="text/css"/> <title>StlcProp: Properties of STLC</title> <script type="text/javascript" src="jquery-1.8.3.js"></script> <script type="text/javascript" src="main.js"></script> </head> <body> <div id="page"> <div id="header"> </div> <div id="main"> <h1 class="libtitle">StlcProp<span class="subtitle">Properties of STLC</span></h1> <div class="code code-tight"> </div> <div class="doc"> </div> <div class="code code-tight"> <br/> <span class="id" type="keyword">Require</span> <span class="id" type="keyword">Export</span> <span class="id" type="var">Stlc</span>.<br/> <br/> <span class="id" type="keyword">Module</span> <span class="id" type="var">STLCProp</span>.<br/> <span class="id" type="keyword">Import</span> <span class="id" type="var">STLC</span>.<br/> <br/> </div> <div class="doc"> In this chapter, we develop the fundamental theory of the Simply Typed Lambda Calculus &mdash; in particular, the type safety theorem. </div> <div class="code code-tight"> <br/> </div> <div class="doc"> <a name="lab681"></a><h1 class="section">Canonical Forms</h1> </div> <div class="code code-space"> <br/> <span class="id" type="keyword">Lemma</span> <span class="id" type="var">canonical_forms_bool</span> : <span style="font-family: arial;">&forall;</span><span class="id" type="var">t</span>,<br/> &nbsp;&nbsp;<span class="id" type="var">empty</span> <span style="font-family: arial;">&#8866;</span> <span class="id" type="var">t</span> &#x2208; <span class="id" type="var">TBool</span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;<span class="id" type="var">value</span> <span class="id" type="var">t</span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;(<span class="id" type="var">t</span> = <span class="id" type="var">ttrue</span>) <span style="font-family: arial;">&or;</span> (<span class="id" type="var">t</span> = <span class="id" type="var">tfalse</span>).<br/> <span class="id" type="keyword">Proof</span>.<br/> &nbsp;&nbsp;<span class="id" type="tactic">intros</span> <span class="id" type="var">t</span> <span class="id" type="var">HT</span> <span class="id" type="var">HVal</span>.<br/> &nbsp;&nbsp;<span class="id" type="tactic">inversion</span> <span class="id" type="var">HVal</span>; <span class="id" type="tactic">intros</span>; <span class="id" type="tactic">subst</span>; <span class="id" type="tactic">try</span> <span class="id" type="tactic">inversion</span> <span class="id" type="var">HT</span>; <span class="id" type="tactic">auto</span>.<br/> <span class="id" type="keyword">Qed</span>.<br/> <br/> <span class="id" type="keyword">Lemma</span> <span class="id" type="var">canonical_forms_fun</span> : <span style="font-family: arial;">&forall;</span><span class="id" type="var">t</span> <span class="id" type="var">T<sub>1</sub></span> <span class="id" type="var">T<sub>2</sub></span>,<br/> &nbsp;&nbsp;<span class="id" type="var">empty</span> <span style="font-family: arial;">&#8866;</span> <span class="id" type="var">t</span> &#x2208; (<span class="id" type="var">TArrow</span> <span class="id" type="var">T<sub>1</sub></span> <span class="id" type="var">T<sub>2</sub></span>) <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;<span class="id" type="var">value</span> <span class="id" type="var">t</span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;<span style="font-family: arial;">&exist;</span><span class="id" type="var">x</span> <span class="id" type="var">u</span>, <span class="id" type="var">t</span> = <span class="id" type="var">tabs</span> <span class="id" type="var">x</span> <span class="id" type="var">T<sub>1</sub></span> <span class="id" type="var">u</span>.<br/> <span class="id" type="keyword">Proof</span>.<br/> &nbsp;&nbsp;<span class="id" type="tactic">intros</span> <span class="id" type="var">t</span> <span class="id" type="var">T<sub>1</sub></span> <span class="id" type="var">T<sub>2</sub></span> <span class="id" type="var">HT</span> <span class="id" type="var">HVal</span>.<br/> &nbsp;&nbsp;<span class="id" type="tactic">inversion</span> <span class="id" type="var">HVal</span>; <span class="id" type="tactic">intros</span>; <span class="id" type="tactic">subst</span>; <span class="id" type="tactic">try</span> <span class="id" type="tactic">inversion</span> <span class="id" type="var">HT</span>; <span class="id" type="tactic">subst</span>; <span class="id" type="tactic">auto</span>.<br/> &nbsp;&nbsp;<span style="font-family: arial;">&exist;</span><span class="id" type="var">x0</span>. <span style="font-family: arial;">&exist;</span><span class="id" type="var">t0</span>. <span class="id" type="tactic">auto</span>.<br/> <span class="id" type="keyword">Qed</span>.<br/> <br/> </div> <div class="doc"> <a name="lab682"></a><h1 class="section">Progress</h1> <div class="paragraph"> </div> As before, the <i>progress</i> theorem tells us that closed, well-typed terms are not stuck: either a well-typed term is a value, or it can take an evaluation step. The proof is a relatively straightforward extension of the progress proof we saw in the <span class="inlinecode"><span class="id" type="keyword">Types</span></span> chapter. </div> <div class="code code-tight"> <br/> <span class="id" type="keyword">Theorem</span> <span class="id" type="tactic">progress</span> : <span style="font-family: arial;">&forall;</span><span class="id" type="var">t</span> <span class="id" type="var">T</span>, <br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">empty</span> <span style="font-family: arial;">&#8866;</span> <span class="id" type="var">t</span> &#x2208; <span class="id" type="var">T</span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">value</span> <span class="id" type="var">t</span> <span style="font-family: arial;">&or;</span> <span style="font-family: arial;">&exist;</span><span class="id" type="var">t'</span>, <span class="id" type="var">t</span> <span style="font-family: arial;">&rArr;</span> <span class="id" type="var">t'</span>.<br/> <br/> </div> <div class="doc"> <i>Proof</i>: by induction on the derivation of <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T</span></span>. <div class="paragraph"> </div> <ul class="doclist"> <li> The last rule of the derivation cannot be <span class="inlinecode"><span class="id" type="var">T_Var</span></span>, since a variable is never well typed in an empty context. <div class="paragraph"> </div> </li> <li> The <span class="inlinecode"><span class="id" type="var">T_True</span></span>, <span class="inlinecode"><span class="id" type="var">T_False</span></span>, and <span class="inlinecode"><span class="id" type="var">T_Abs</span></span> cases are trivial, since in each of these cases we know immediately that <span class="inlinecode"><span class="id" type="var">t</span></span> is a value. <div class="paragraph"> </div> </li> <li> If the last rule of the derivation was <span class="inlinecode"><span class="id" type="var">T_App</span></span>, then <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span>, and we know that <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> and <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> are also well typed in the empty context; in particular, there exists a type <span class="inlinecode"><span class="id" type="var">T<sub>2</sub></span></span> such that <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T<sub>2</sub></span></span> <span class="inlinecode"><span style="font-family: arial;">&rarr;</span></span> <span class="inlinecode"><span class="id" type="var">T</span></span> and <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T<sub>2</sub></span></span>. By the induction hypothesis, either <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> is a value or it can take an evaluation step. <div class="paragraph"> </div> <ul class="doclist"> <li> If <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> is a value, we now consider <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span>, which by the other induction hypothesis must also either be a value or take an evaluation step. <div class="paragraph"> </div> <ul class="doclist"> <li> Suppose <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> is a value. Since <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> is a value with an arrow type, it must be a lambda abstraction; hence <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> can take a step by <span class="inlinecode"><span class="id" type="var">ST_AppAbs</span></span>. <div class="paragraph"> </div> </li> <li> Otherwise, <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> can take a step, and hence so can <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> by <span class="inlinecode"><span class="id" type="var">ST_App2</span></span>. <div class="paragraph"> </div> </li> </ul> </li> <li> If <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> can take a step, then so can <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> by <span class="inlinecode"><span class="id" type="var">ST_App1</span></span>. <div class="paragraph"> </div> </li> </ul> </li> <li> If the last rule of the derivation was <span class="inlinecode"><span class="id" type="var">T_If</span></span>, then <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span class="id" type="keyword">if</span></span> <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="keyword">then</span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> <span class="inlinecode"><span class="id" type="keyword">else</span></span> <span class="inlinecode"><span class="id" type="var">t<sub>3</sub></span></span>, where <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> has type <span class="inlinecode"><span class="id" type="var">Bool</span></span>. By the IH, <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> either is a value or takes a step. <div class="paragraph"> </div> <ul class="doclist"> <li> If <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> is a value, then since it has type <span class="inlinecode"><span class="id" type="var">Bool</span></span> it must be either <span class="inlinecode"><span class="id" type="var">true</span></span> or <span class="inlinecode"><span class="id" type="var">false</span></span>. If it is <span class="inlinecode"><span class="id" type="var">true</span></span>, then <span class="inlinecode"><span class="id" type="var">t</span></span> steps to <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span>; otherwise it steps to <span class="inlinecode"><span class="id" type="var">t<sub>3</sub></span></span>. <div class="paragraph"> </div> </li> <li> Otherwise, <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> takes a step, and therefore so does <span class="inlinecode"><span class="id" type="var">t</span></span> (by <span class="inlinecode"><span class="id" type="var">ST_If</span></span>). </li> </ul> </li> </ul> </div> <div class="code code-tight"> <br/> <div class="togglescript" id="proofcontrol1" onclick="toggleDisplay('proof1');toggleDisplay('proofcontrol1')"><span class="show"></span></div> <div class="proofscript" id="proof1" onclick="toggleDisplay('proof1');toggleDisplay('proofcontrol1')"> <span class="id" type="keyword">Proof</span> <span class="id" type="keyword">with</span> <span class="id" type="tactic">eauto</span>.<br/> &nbsp;&nbsp;<span class="id" type="tactic">intros</span> <span class="id" type="var">t</span> <span class="id" type="var">T</span> <span class="id" type="var">Ht</span>.<br/> &nbsp;&nbsp;<span class="id" type="var">remember</span> (@<span class="id" type="var">empty</span> <span class="id" type="var">ty</span>) <span class="id" type="keyword">as</span> <span style="font-family: serif; font-size:85%;">&Gamma;</span>.<br/> &nbsp;&nbsp;<span class="id" type="var">has_type_cases</span> (<span class="id" type="tactic">induction</span> <span class="id" type="var">Ht</span>) <span class="id" type="var">Case</span>; <span class="id" type="tactic">subst</span> <span style="font-family: serif; font-size:85%;">&Gamma;</span>...<br/> &nbsp;&nbsp;<span class="id" type="var">Case</span> "T_Var".<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">(*&nbsp;contradictory:&nbsp;variables&nbsp;cannot&nbsp;be&nbsp;typed&nbsp;in&nbsp;an&nbsp;<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;empty&nbsp;context&nbsp;*)</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">inversion</span> <span class="id" type="var">H</span>.<br/> <br/> &nbsp;&nbsp;<span class="id" type="var">Case</span> "T_App".<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">(*&nbsp;<span class="inlinecode"><span class="id" type="var">t</span></span>&nbsp;=&nbsp;<span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span>.&nbsp;&nbsp;Proceed&nbsp;by&nbsp;cases&nbsp;on&nbsp;whether&nbsp;<span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span>&nbsp;is&nbsp;a&nbsp;<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value&nbsp;or&nbsp;steps...&nbsp;*)</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">right</span>. <span class="id" type="tactic">destruct</span> <span class="id" type="var">IHHt1</span>...<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">SCase</span> "t<sub>1</sub> is a value".<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">destruct</span> <span class="id" type="var">IHHt2</span>...<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">SSCase</span> "t<sub>2</sub> is also a value".<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">assert</span> (<span style="font-family: arial;">&exist;</span><span class="id" type="var">x0</span> <span class="id" type="var">t0</span>, <span class="id" type="var">t<sub>1</sub></span> = <span class="id" type="var">tabs</span> <span class="id" type="var">x0</span> <span class="id" type="var">T<sub>11</sub></span> <span class="id" type="var">t0</span>).<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">eapply</span> <span class="id" type="var">canonical_forms_fun</span>; <span class="id" type="tactic">eauto</span>.<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">destruct</span> <span class="id" type="var">H1</span> <span class="id" type="keyword">as</span> [<span class="id" type="var">x0</span> [<span class="id" type="var">t0</span> <span class="id" type="var">Heq</span>]]. <span class="id" type="tactic">subst</span>.<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family: arial;">&exist;</span>([<span class="id" type="var">x0</span>:=<span class="id" type="var">t<sub>2</sub></span>]<span class="id" type="var">t0</span>)...<br/> <br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">SSCase</span> "t<sub>2</sub> steps".<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">inversion</span> <span class="id" type="var">H0</span> <span class="id" type="keyword">as</span> [<span class="id" type="var">t<sub>2</sub>'</span> <span class="id" type="var">Hstp</span>]. <span style="font-family: arial;">&exist;</span>(<span class="id" type="var">tapp</span> <span class="id" type="var">t<sub>1</sub></span> <span class="id" type="var">t<sub>2</sub>'</span>)...<br/> <br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">SCase</span> "t<sub>1</sub> steps".<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">inversion</span> <span class="id" type="var">H</span> <span class="id" type="keyword">as</span> [<span class="id" type="var">t<sub>1</sub>'</span> <span class="id" type="var">Hstp</span>]. <span style="font-family: arial;">&exist;</span>(<span class="id" type="var">tapp</span> <span class="id" type="var">t<sub>1</sub>'</span> <span class="id" type="var">t<sub>2</sub></span>)...<br/> <br/> &nbsp;&nbsp;<span class="id" type="var">Case</span> "T_If".<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">right</span>. <span class="id" type="tactic">destruct</span> <span class="id" type="var">IHHt1</span>...<br/> <br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">SCase</span> "t<sub>1</sub> is a value".<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">destruct</span> (<span class="id" type="var">canonical_forms_bool</span> <span class="id" type="var">t<sub>1</sub></span>); <span class="id" type="tactic">subst</span>; <span class="id" type="tactic">eauto</span>.<br/> <br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">SCase</span> "t<sub>1</sub> also steps".<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">inversion</span> <span class="id" type="var">H</span> <span class="id" type="keyword">as</span> [<span class="id" type="var">t<sub>1</sub>'</span> <span class="id" type="var">Hstp</span>]. <span style="font-family: arial;">&exist;</span>(<span class="id" type="var">tif</span> <span class="id" type="var">t<sub>1</sub>'</span> <span class="id" type="var">t<sub>2</sub></span> <span class="id" type="var">t<sub>3</sub></span>)...<br/> <span class="id" type="keyword">Qed</span>.<br/> </div> <br/> </div> <div class="doc"> <a name="lab683"></a><h4 class="section">Exercise: 3 stars, optional (progress_from_term_ind)</h4> Show that progress can also be proved by induction on terms instead of induction on typing derivations. </div> <div class="code code-tight"> <br/> <span class="id" type="keyword">Theorem</span> <span class="id" type="var">progress'</span> : <span style="font-family: arial;">&forall;</span><span class="id" type="var">t</span> <span class="id" type="var">T</span>,<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">empty</span> <span style="font-family: arial;">&#8866;</span> <span class="id" type="var">t</span> &#x2208; <span class="id" type="var">T</span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">value</span> <span class="id" type="var">t</span> <span style="font-family: arial;">&or;</span> <span style="font-family: arial;">&exist;</span><span class="id" type="var">t'</span>, <span class="id" type="var">t</span> <span style="font-family: arial;">&rArr;</span> <span class="id" type="var">t'</span>.<br/> <span class="id" type="keyword">Proof</span>.<br/> &nbsp;&nbsp;<span class="id" type="tactic">intros</span> <span class="id" type="var">t</span>.<br/> &nbsp;&nbsp;<span class="id" type="var">t_cases</span> (<span class="id" type="tactic">induction</span> <span class="id" type="var">t</span>) <span class="id" type="var">Case</span>; <span class="id" type="tactic">intros</span> <span class="id" type="var">T</span> <span class="id" type="var">Ht</span>; <span class="id" type="tactic">auto</span>.<br/> &nbsp;&nbsp;<span class="comment">(*&nbsp;FILL&nbsp;IN&nbsp;HERE&nbsp;*)</span> <span class="id" type="var">Admitted</span>.<br/> </div> <div class="doc"> <font size=-2>&#9744;</font> </div> <div class="code code-tight"> <br/> </div> <div class="doc"> <a name="lab684"></a><h1 class="section">Preservation</h1> <div class="paragraph"> </div> The other half of the type soundness property is the preservation of types during reduction. For this, we need to develop some technical machinery for reasoning about variables and substitution. Working from top to bottom (the high-level property we are actually interested in to the lowest-level technical lemmas that are needed by various cases of the more interesting proofs), the story goes like this: <div class="paragraph"> </div> <ul class="doclist"> <li> The <i>preservation theorem</i> is proved by induction on a typing derivation, pretty much as we did in the <span class="inlinecode"><span class="id" type="keyword">Types</span></span> chapter. The one case that is significantly different is the one for the <span class="inlinecode"><span class="id" type="var">ST_AppAbs</span></span> rule, which is defined using the substitution operation. To see that this step preserves typing, we need to know that the substitution itself does. So we prove a... <div class="paragraph"> </div> </li> <li> <i>substitution lemma</i>, stating that substituting a (closed) term <span class="inlinecode"><span class="id" type="var">s</span></span> for a variable <span class="inlinecode"><span class="id" type="var">x</span></span> in a term <span class="inlinecode"><span class="id" type="var">t</span></span> preserves the type of <span class="inlinecode"><span class="id" type="var">t</span></span>. The proof goes by induction on the form of <span class="inlinecode"><span class="id" type="var">t</span></span> and requires looking at all the different cases in the definition of substitition. This time, the tricky cases are the ones for variables and for function abstractions. In both cases, we discover that we need to take a term <span class="inlinecode"><span class="id" type="var">s</span></span> that has been shown to be well-typed in some context <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> and consider the same term <span class="inlinecode"><span class="id" type="var">s</span></span> in a slightly different context <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span></span>. For this we prove a... <div class="paragraph"> </div> </li> <li> <i>context invariance</i> lemma, showing that typing is preserved under "inessential changes" to the context <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> &mdash; in particular, changes that do not affect any of the free variables of the term. For this, we need a careful definition of <div class="paragraph"> </div> </li> <li> the <i>free variables</i> of a term &mdash; i.e., the variables occuring in the term that are not in the scope of a function abstraction that binds them. </li> </ul> </div> <div class="code code-tight"> <br/> </div> <div class="doc"> <a name="lab685"></a><h2 class="section">Free Occurrences</h2> <div class="paragraph"> </div> A variable <span class="inlinecode"><span class="id" type="var">x</span></span> <i>appears free in</i> a term <i>t</i> if <span class="inlinecode"><span class="id" type="var">t</span></span> contains some occurrence of <span class="inlinecode"><span class="id" type="var">x</span></span> that is not under an abstraction labeled <span class="inlinecode"><span class="id" type="var">x</span></span>. For example: <div class="paragraph"> </div> <ul class="doclist"> <li> <span class="inlinecode"><span class="id" type="var">y</span></span> appears free, but <span class="inlinecode"><span class="id" type="var">x</span></span> does not, in <span class="inlinecode">\<span class="id" type="var">x</span>:<span class="id" type="var">T</span><span style="font-family: arial;">&rarr;</span><span class="id" type="var">U</span>.</span> <span class="inlinecode"><span class="id" type="var">x</span></span> <span class="inlinecode"><span class="id" type="var">y</span></span> </li> <li> both <span class="inlinecode"><span class="id" type="var">x</span></span> and <span class="inlinecode"><span class="id" type="var">y</span></span> appear free in <span class="inlinecode">(\<span class="id" type="var">x</span>:<span class="id" type="var">T</span><span style="font-family: arial;">&rarr;</span><span class="id" type="var">U</span>.</span> <span class="inlinecode"><span class="id" type="var">x</span></span> <span class="inlinecode"><span class="id" type="var">y</span>)</span> <span class="inlinecode"><span class="id" type="var">x</span></span> </li> <li> no variables appear free in <span class="inlinecode">\<span class="id" type="var">x</span>:<span class="id" type="var">T</span><span style="font-family: arial;">&rarr;</span><span class="id" type="var">U</span>.</span> <span class="inlinecode">\<span class="id" type="var">y</span>:<span class="id" type="var">T</span>.</span> <span class="inlinecode"><span class="id" type="var">x</span></span> <span class="inlinecode"><span class="id" type="var">y</span></span> </li> </ul> </div> <div class="code code-tight"> <br/> <span class="id" type="keyword">Inductive</span> <span class="id" type="var">appears_free_in</span> : <span class="id" type="var">id</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">tm</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="keyword">Prop</span> :=<br/> &nbsp;&nbsp;| <span class="id" type="var">afi_var</span> : <span style="font-family: arial;">&forall;</span><span class="id" type="var">x</span>,<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">appears_free_in</span> <span class="id" type="var">x</span> (<span class="id" type="var">tvar</span> <span class="id" type="var">x</span>)<br/> &nbsp;&nbsp;| <span class="id" type="var">afi_app1</span> : <span style="font-family: arial;">&forall;</span><span class="id" type="var">x</span> <span class="id" type="var">t<sub>1</sub></span> <span class="id" type="var">t<sub>2</sub></span>,<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">appears_free_in</span> <span class="id" type="var">x</span> <span class="id" type="var">t<sub>1</sub></span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">appears_free_in</span> <span class="id" type="var">x</span> (<span class="id" type="var">tapp</span> <span class="id" type="var">t<sub>1</sub></span> <span class="id" type="var">t<sub>2</sub></span>)<br/> &nbsp;&nbsp;| <span class="id" type="var">afi_app2</span> : <span style="font-family: arial;">&forall;</span><span class="id" type="var">x</span> <span class="id" type="var">t<sub>1</sub></span> <span class="id" type="var">t<sub>2</sub></span>,<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">appears_free_in</span> <span class="id" type="var">x</span> <span class="id" type="var">t<sub>2</sub></span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">appears_free_in</span> <span class="id" type="var">x</span> (<span class="id" type="var">tapp</span> <span class="id" type="var">t<sub>1</sub></span> <span class="id" type="var">t<sub>2</sub></span>)<br/> &nbsp;&nbsp;| <span class="id" type="var">afi_abs</span> : <span style="font-family: arial;">&forall;</span><span class="id" type="var">x</span> <span class="id" type="var">y</span> <span class="id" type="var">T<sub>11</sub></span> <span class="id" type="var">t<sub>12</sub></span>,<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">y</span> ≠ <span class="id" type="var">x</span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">appears_free_in</span> <span class="id" type="var">x</span> <span class="id" type="var">t<sub>12</sub></span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">appears_free_in</span> <span class="id" type="var">x</span> (<span class="id" type="var">tabs</span> <span class="id" type="var">y</span> <span class="id" type="var">T<sub>11</sub></span> <span class="id" type="var">t<sub>12</sub></span>)<br/> &nbsp;&nbsp;| <span class="id" type="var">afi_if1</span> : <span style="font-family: arial;">&forall;</span><span class="id" type="var">x</span> <span class="id" type="var">t<sub>1</sub></span> <span class="id" type="var">t<sub>2</sub></span> <span class="id" type="var">t<sub>3</sub></span>,<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">appears_free_in</span> <span class="id" type="var">x</span> <span class="id" type="var">t<sub>1</sub></span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">appears_free_in</span> <span class="id" type="var">x</span> (<span class="id" type="var">tif</span> <span class="id" type="var">t<sub>1</sub></span> <span class="id" type="var">t<sub>2</sub></span> <span class="id" type="var">t<sub>3</sub></span>)<br/> &nbsp;&nbsp;| <span class="id" type="var">afi_if2</span> : <span style="font-family: arial;">&forall;</span><span class="id" type="var">x</span> <span class="id" type="var">t<sub>1</sub></span> <span class="id" type="var">t<sub>2</sub></span> <span class="id" type="var">t<sub>3</sub></span>,<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">appears_free_in</span> <span class="id" type="var">x</span> <span class="id" type="var">t<sub>2</sub></span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">appears_free_in</span> <span class="id" type="var">x</span> (<span class="id" type="var">tif</span> <span class="id" type="var">t<sub>1</sub></span> <span class="id" type="var">t<sub>2</sub></span> <span class="id" type="var">t<sub>3</sub></span>)<br/> &nbsp;&nbsp;| <span class="id" type="var">afi_if3</span> : <span style="font-family: arial;">&forall;</span><span class="id" type="var">x</span> <span class="id" type="var">t<sub>1</sub></span> <span class="id" type="var">t<sub>2</sub></span> <span class="id" type="var">t<sub>3</sub></span>,<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">appears_free_in</span> <span class="id" type="var">x</span> <span class="id" type="var">t<sub>3</sub></span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">appears_free_in</span> <span class="id" type="var">x</span> (<span class="id" type="var">tif</span> <span class="id" type="var">t<sub>1</sub></span> <span class="id" type="var">t<sub>2</sub></span> <span class="id" type="var">t<sub>3</sub></span>).<br/> <div class="togglescript" id="proofcontrol2" onclick="toggleDisplay('proof2');toggleDisplay('proofcontrol2')"><span class="show"></span></div> <div class="proofscript" id="proof2" onclick="toggleDisplay('proof2');toggleDisplay('proofcontrol2')"> <br/> <span class="id" type="keyword">Tactic Notation</span> "afi_cases" <span class="id" type="var">tactic</span>(<span class="id" type="var">first</span>) <span class="id" type="var">ident</span>(<span class="id" type="var">c</span>) :=<br/> &nbsp;&nbsp;<span class="id" type="var">first</span>;<br/> &nbsp;&nbsp;[ <span class="id" type="var">Case_aux</span> <span class="id" type="var">c</span> "afi_var"<br/> &nbsp;&nbsp;| <span class="id" type="var">Case_aux</span> <span class="id" type="var">c</span> "afi_app1" | <span class="id" type="var">Case_aux</span> <span class="id" type="var">c</span> "afi_app2" <br/> &nbsp;&nbsp;| <span class="id" type="var">Case_aux</span> <span class="id" type="var">c</span> "afi_abs" <br/> &nbsp;&nbsp;| <span class="id" type="var">Case_aux</span> <span class="id" type="var">c</span> "afi_if1" | <span class="id" type="var">Case_aux</span> <span class="id" type="var">c</span> "afi_if2" <br/> &nbsp;&nbsp;| <span class="id" type="var">Case_aux</span> <span class="id" type="var">c</span> "afi_if3" ].<br/> <br/> <span class="id" type="keyword">Hint</span> <span class="id" type="var">Constructors</span> <span class="id" type="var">appears_free_in</span>.<br/> </div> <br/> </div> <div class="doc"> A term in which no variables appear free is said to be <i>closed</i>. </div> <div class="code code-tight"> <br/> <span class="id" type="keyword">Definition</span> <span class="id" type="var">closed</span> (<span class="id" type="var">t</span>:<span class="id" type="var">tm</span>) :=<br/> &nbsp;&nbsp;<span style="font-family: arial;">&forall;</span><span class="id" type="var">x</span>, ¬ <span class="id" type="var">appears_free_in</span> <span class="id" type="var">x</span> <span class="id" type="var">t</span>.<br/> <br/> </div> <div class="doc"> <a name="lab686"></a><h2 class="section">Substitution</h2> <div class="paragraph"> </div> We first need a technical lemma connecting free variables and typing contexts. If a variable <span class="inlinecode"><span class="id" type="var">x</span></span> appears free in a term <span class="inlinecode"><span class="id" type="var">t</span></span>, and if we know <span class="inlinecode"><span class="id" type="var">t</span></span> is well typed in context <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span>, then it must be the case that <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> assigns a type to <span class="inlinecode"><span class="id" type="var">x</span></span>. </div> <div class="code code-tight"> <br/> <span class="id" type="keyword">Lemma</span> <span class="id" type="var">free_in_context</span> : <span style="font-family: arial;">&forall;</span><span class="id" type="var">x</span> <span class="id" type="var">t</span> <span class="id" type="var">T</span> <span style="font-family: serif; font-size:85%;">&Gamma;</span>,<br/> &nbsp;&nbsp;&nbsp;<span class="id" type="var">appears_free_in</span> <span class="id" type="var">x</span> <span class="id" type="var">t</span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;&nbsp;<span style="font-family: serif; font-size:85%;">&Gamma;</span> <span style="font-family: arial;">&#8866;</span> <span class="id" type="var">t</span> &#x2208; <span class="id" type="var">T</span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;&nbsp;<span style="font-family: arial;">&exist;</span><span class="id" type="var">T'</span>, <span style="font-family: serif; font-size:85%;">&Gamma;</span> <span class="id" type="var">x</span> = <span class="id" type="var">Some</span> <span class="id" type="var">T'</span>.<br/> <br/> </div> <div class="doc"> <i>Proof</i>: We show, by induction on the proof that <span class="inlinecode"><span class="id" type="var">x</span></span> appears free in <span class="inlinecode"><span class="id" type="var">t</span></span>, that, for all contexts <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span>, if <span class="inlinecode"><span class="id" type="var">t</span></span> is well typed under <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span>, then <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> assigns some type to <span class="inlinecode"><span class="id" type="var">x</span></span>. <div class="paragraph"> </div> <ul class="doclist"> <li> If the last rule used was <span class="inlinecode"><span class="id" type="var">afi_var</span></span>, then <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span class="id" type="var">x</span></span>, and from the assumption that <span class="inlinecode"><span class="id" type="var">t</span></span> is well typed under <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> we have immediately that <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> assigns a type to <span class="inlinecode"><span class="id" type="var">x</span></span>. <div class="paragraph"> </div> </li> <li> If the last rule used was <span class="inlinecode"><span class="id" type="var">afi_app1</span></span>, then <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> and <span class="inlinecode"><span class="id" type="var">x</span></span> appears free in <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span>. Since <span class="inlinecode"><span class="id" type="var">t</span></span> is well typed under <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span>, we can see from the typing rules that <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> must also be, and the IH then tells us that <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> assigns <span class="inlinecode"><span class="id" type="var">x</span></span> a type. <div class="paragraph"> </div> </li> <li> Almost all the other cases are similar: <span class="inlinecode"><span class="id" type="var">x</span></span> appears free in a subterm of <span class="inlinecode"><span class="id" type="var">t</span></span>, and since <span class="inlinecode"><span class="id" type="var">t</span></span> is well typed under <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span>, we know the subterm of <span class="inlinecode"><span class="id" type="var">t</span></span> in which <span class="inlinecode"><span class="id" type="var">x</span></span> appears is well typed under <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> as well, and the IH gives us exactly the conclusion we want. <div class="paragraph"> </div> </li> <li> The only remaining case is <span class="inlinecode"><span class="id" type="var">afi_abs</span></span>. In this case <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">=</span> <span class="inlinecode">\<span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub>.t<sub>12</sub></span></span>, and <span class="inlinecode"><span class="id" type="var">x</span></span> appears free in <span class="inlinecode"><span class="id" type="var">t<sub>12</sub></span></span>; we also know that <span class="inlinecode"><span class="id" type="var">x</span></span> is different from <span class="inlinecode"><span class="id" type="var">y</span></span>. The difference from the previous cases is that whereas <span class="inlinecode"><span class="id" type="var">t</span></span> is well typed under <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span>, its body <span class="inlinecode"><span class="id" type="var">t<sub>12</sub></span></span> is well typed under <span class="inlinecode">(<span style="font-family: serif; font-size:85%;">&Gamma;</span>,</span> <span class="inlinecode"><span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span>)</span>, so the IH allows us to conclude that <span class="inlinecode"><span class="id" type="var">x</span></span> is assigned some type by the extended context <span class="inlinecode">(<span style="font-family: serif; font-size:85%;">&Gamma;</span>,</span> <span class="inlinecode"><span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span>)</span>. To conclude that <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> assigns a type to <span class="inlinecode"><span class="id" type="var">x</span></span>, we appeal to lemma <span class="inlinecode"><span class="id" type="var">extend_neq</span></span>, noting that <span class="inlinecode"><span class="id" type="var">x</span></span> and <span class="inlinecode"><span class="id" type="var">y</span></span> are different variables. </li> </ul> </div> <div class="code code-tight"> <br/> <div class="togglescript" id="proofcontrol3" onclick="toggleDisplay('proof3');toggleDisplay('proofcontrol3')"><span class="show"></span></div> <div class="proofscript" id="proof3" onclick="toggleDisplay('proof3');toggleDisplay('proofcontrol3')"> <span class="id" type="keyword">Proof</span>.<br/> &nbsp;&nbsp;<span class="id" type="tactic">intros</span> <span class="id" type="var">x</span> <span class="id" type="var">t</span> <span class="id" type="var">T</span> <span style="font-family: serif; font-size:85%;">&Gamma;</span> <span class="id" type="var">H</span> <span class="id" type="var">H0</span>. <span class="id" type="tactic">generalize</span> <span class="id" type="tactic">dependent</span> <span style="font-family: serif; font-size:85%;">&Gamma;</span>.<br/> &nbsp;&nbsp;<span class="id" type="tactic">generalize</span> <span class="id" type="tactic">dependent</span> <span class="id" type="var">T</span>.<br/> &nbsp;&nbsp;<span class="id" type="var">afi_cases</span> (<span class="id" type="tactic">induction</span> <span class="id" type="var">H</span>) <span class="id" type="var">Case</span>; <br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">intros</span>; <span class="id" type="tactic">try</span> <span class="id" type="var">solve</span> [<span class="id" type="tactic">inversion</span> <span class="id" type="var">H0</span>; <span class="id" type="tactic">eauto</span>].<br/> &nbsp;&nbsp;<span class="id" type="var">Case</span> "afi_abs".<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">inversion</span> <span class="id" type="var">H1</span>; <span class="id" type="tactic">subst</span>.<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">apply</span> <span class="id" type="var">IHappears_free_in</span> <span class="id" type="keyword">in</span> <span class="id" type="var">H7</span>.<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">rewrite</span> <span class="id" type="var">extend_neq</span> <span class="id" type="keyword">in</span> <span class="id" type="var">H7</span>; <span class="id" type="tactic">assumption</span>.<br/> <span class="id" type="keyword">Qed</span>.<br/> </div> <br/> </div> <div class="doc"> Next, we'll need the fact that any term <span class="inlinecode"><span class="id" type="var">t</span></span> which is well typed in the empty context is closed &mdash; that is, it has no free variables. <div class="paragraph"> </div> <a name="lab687"></a><h4 class="section">Exercise: 2 stars, optional (typable_empty__closed)</h4> </div> <div class="code code-space"> <span class="id" type="keyword">Corollary</span> <span class="id" type="var">typable_empty__closed</span> : <span style="font-family: arial;">&forall;</span><span class="id" type="var">t</span> <span class="id" type="var">T</span>, <br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">empty</span> <span style="font-family: arial;">&#8866;</span> <span class="id" type="var">t</span> &#x2208; <span class="id" type="var">T</span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">closed</span> <span class="id" type="var">t</span>.<br/> <span class="id" type="keyword">Proof</span>.<br/> &nbsp;&nbsp;<span class="comment">(*&nbsp;FILL&nbsp;IN&nbsp;HERE&nbsp;*)</span> <span class="id" type="var">Admitted</span>.<br/> </div> <div class="doc"> <font size=-2>&#9744;</font> <div class="paragraph"> </div> Sometimes, when we have a proof <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">:</span> <span class="inlinecode"><span class="id" type="var">T</span></span>, we will need to replace <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> by a different context <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span></span>. When is it safe to do this? Intuitively, it must at least be the case that <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span></span> assigns the same types as <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> to all the variables that appear free in <span class="inlinecode"><span class="id" type="var">t</span></span>. In fact, this is the only condition that is needed. </div> <div class="code code-tight"> <br/> <span class="id" type="keyword">Lemma</span> <span class="id" type="var">context_invariance</span> : <span style="font-family: arial;">&forall;</span><span style="font-family: serif; font-size:85%;">&Gamma;</span> <span style="font-family: serif; font-size:85%;">&Gamma;'</span> <span class="id" type="var">t</span> <span class="id" type="var">T</span>,<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family: serif; font-size:85%;">&Gamma;</span> <span style="font-family: arial;">&#8866;</span> <span class="id" type="var">t</span> &#x2208; <span class="id" type="var">T</span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(<span style="font-family: arial;">&forall;</span><span class="id" type="var">x</span>, <span class="id" type="var">appears_free_in</span> <span class="id" type="var">x</span> <span class="id" type="var">t</span> <span style="font-family: arial;">&rarr;</span> <span style="font-family: serif; font-size:85%;">&Gamma;</span> <span class="id" type="var">x</span> = <span style="font-family: serif; font-size:85%;">&Gamma;'</span> <span class="id" type="var">x</span>) <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family: serif; font-size:85%;">&Gamma;'</span> <span style="font-family: arial;">&#8866;</span> <span class="id" type="var">t</span> &#x2208; <span class="id" type="var">T</span>.<br/> <br/> </div> <div class="doc"> <i>Proof</i>: By induction on the derivation of <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T</span></span>. <div class="paragraph"> </div> <ul class="doclist"> <li> If the last rule in the derivation was <span class="inlinecode"><span class="id" type="var">T_Var</span></span>, then <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span class="id" type="var">x</span></span> and <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> <span class="inlinecode"><span class="id" type="var">x</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span class="id" type="var">T</span></span>. By assumption, <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span></span> <span class="inlinecode"><span class="id" type="var">x</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span class="id" type="var">T</span></span> as well, and hence <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T</span></span> by <span class="inlinecode"><span class="id" type="var">T_Var</span></span>. <div class="paragraph"> </div> </li> <li> If the last rule was <span class="inlinecode"><span class="id" type="var">T_Abs</span></span>, then <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">=</span> <span class="inlinecode">\<span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span>.</span> <span class="inlinecode"><span class="id" type="var">t<sub>12</sub></span></span>, with <span class="inlinecode"><span class="id" type="var">T</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span class="id" type="var">T<sub>11</sub></span></span> <span class="inlinecode"><span style="font-family: arial;">&rarr;</span></span> <span class="inlinecode"><span class="id" type="var">T<sub>12</sub></span></span> and <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span>,</span> <span class="inlinecode"><span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t<sub>12</sub></span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T<sub>12</sub></span></span>. The induction hypothesis is that for any context <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;''</span></span>, if <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span>,</span> <span class="inlinecode"><span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span></span> and <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;''</span></span> assign the same types to all the free variables in <span class="inlinecode"><span class="id" type="var">t<sub>12</sub></span></span>, then <span class="inlinecode"><span class="id" type="var">t<sub>12</sub></span></span> has type <span class="inlinecode"><span class="id" type="var">T<sub>12</sub></span></span> under <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;''</span></span>. Let <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span></span> be a context which agrees with <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> on the free variables in <span class="inlinecode"><span class="id" type="var">t</span></span>; we must show <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode">\<span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span>.</span> <span class="inlinecode"><span class="id" type="var">t<sub>12</sub></span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T<sub>11</sub></span></span> <span class="inlinecode"><span style="font-family: arial;">&rarr;</span></span> <span class="inlinecode"><span class="id" type="var">T<sub>12</sub></span></span>. <div class="paragraph"> </div> By <span class="inlinecode"><span class="id" type="var">T_Abs</span></span>, it suffices to show that <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span>,</span> <span class="inlinecode"><span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t<sub>12</sub></span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T<sub>12</sub></span></span>. By the IH (setting <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;''</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span>,</span> <span class="inlinecode"><span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span></span>), it suffices to show that <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span>,</span> <span class="inlinecode"><span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span></span> and <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span>,</span> <span class="inlinecode"><span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span></span> agree on all the variables that appear free in <span class="inlinecode"><span class="id" type="var">t<sub>12</sub></span></span>. <div class="paragraph"> </div> Any variable occurring free in <span class="inlinecode"><span class="id" type="var">t<sub>12</sub></span></span> must either be <span class="inlinecode"><span class="id" type="var">y</span></span>, or some other variable. <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span>,</span> <span class="inlinecode"><span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span></span> and <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span>,</span> <span class="inlinecode"><span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span></span> clearly agree on <span class="inlinecode"><span class="id" type="var">y</span></span>. Otherwise, we note that any variable other than <span class="inlinecode"><span class="id" type="var">y</span></span> which occurs free in <span class="inlinecode"><span class="id" type="var">t<sub>12</sub></span></span> also occurs free in <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">=</span> <span class="inlinecode">\<span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span>.</span> <span class="inlinecode"><span class="id" type="var">t<sub>12</sub></span></span>, and by assumption <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> and <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span></span> agree on all such variables, and hence so do <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span>,</span> <span class="inlinecode"><span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span></span> and <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span>,</span> <span class="inlinecode"><span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span></span>. <div class="paragraph"> </div> </li> <li> If the last rule was <span class="inlinecode"><span class="id" type="var">T_App</span></span>, then <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span>, with <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T<sub>2</sub></span></span> <span class="inlinecode"><span style="font-family: arial;">&rarr;</span></span> <span class="inlinecode"><span class="id" type="var">T</span></span> and <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T<sub>2</sub></span></span>. One induction hypothesis states that for all contexts <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span></span>, if <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span></span> agrees with <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> on the free variables in <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span>, then <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> has type <span class="inlinecode"><span class="id" type="var">T<sub>2</sub></span></span> <span class="inlinecode"><span style="font-family: arial;">&rarr;</span></span> <span class="inlinecode"><span class="id" type="var">T</span></span> under <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span></span>; there is a similar IH for <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span>. We must show that <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> also has type <span class="inlinecode"><span class="id" type="var">T</span></span> under <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span></span>, given the assumption that <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span></span> agrees with <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> on all the free variables in <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span>. By <span class="inlinecode"><span class="id" type="var">T_App</span></span>, it suffices to show that <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> and <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> each have the same type under <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span></span> as under <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span>. However, we note that all free variables in <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> are also free in <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span>, and similarly for free variables in <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span>; hence the desired result follows by the two IHs. </li> </ul> </div> <div class="code code-tight"> <br/> <div class="togglescript" id="proofcontrol4" onclick="toggleDisplay('proof4');toggleDisplay('proofcontrol4')"><span class="show"></span></div> <div class="proofscript" id="proof4" onclick="toggleDisplay('proof4');toggleDisplay('proofcontrol4')"> <span class="id" type="keyword">Proof</span> <span class="id" type="keyword">with</span> <span class="id" type="tactic">eauto</span>.<br/> &nbsp;&nbsp;<span class="id" type="tactic">intros</span>.<br/> &nbsp;&nbsp;<span class="id" type="tactic">generalize</span> <span class="id" type="tactic">dependent</span> <span style="font-family: serif; font-size:85%;">&Gamma;'</span>.<br/> &nbsp;&nbsp;<span class="id" type="var">has_type_cases</span> (<span class="id" type="tactic">induction</span> <span class="id" type="var">H</span>) <span class="id" type="var">Case</span>; <span class="id" type="tactic">intros</span>; <span class="id" type="tactic">auto</span>.<br/> &nbsp;&nbsp;<span class="id" type="var">Case</span> "T_Var".<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">apply</span> <span class="id" type="var">T_Var</span>. <span class="id" type="tactic">rewrite</span> <span style="font-family: arial;">&larr;</span> <span class="id" type="var">H0</span>...<br/> &nbsp;&nbsp;<span class="id" type="var">Case</span> "T_Abs".<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">apply</span> <span class="id" type="var">T_Abs</span>.<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">apply</span> <span class="id" type="var">IHhas_type</span>. <span class="id" type="tactic">intros</span> <span class="id" type="var">x1</span> <span class="id" type="var">Hafi</span>.<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">(*&nbsp;the&nbsp;only&nbsp;tricky&nbsp;step...&nbsp;the&nbsp;<span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span></span>&nbsp;we&nbsp;use&nbsp;to&nbsp;<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;instantiate&nbsp;is&nbsp;<span class="inlinecode"><span class="id" type="var">extend</span></span> <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> <span class="inlinecode"><span class="id" type="var">x</span></span> <span class="inlinecode"><span class="id" type="var">T<sub>11</sub></span></span>&nbsp;*)</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">unfold</span> <span class="id" type="var">extend</span>. <span class="id" type="tactic">destruct</span> (<span class="id" type="var">eq_id_dec</span> <span class="id" type="var">x0</span> <span class="id" type="var">x1</span>)...<br/> &nbsp;&nbsp;<span class="id" type="var">Case</span> "T_App".<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">apply</span> <span class="id" type="var">T_App</span> <span class="id" type="keyword">with</span> <span class="id" type="var">T<sub>11</sub></span>...<br/> <span class="id" type="keyword">Qed</span>.<br/> </div> <br/> </div> <div class="doc"> Now we come to the conceptual heart of the proof that reduction preserves types &mdash; namely, the observation that <i>substitution</i> preserves types. <div class="paragraph"> </div> Formally, the so-called <i>Substitution Lemma</i> says this: suppose we have a term <span class="inlinecode"><span class="id" type="var">t</span></span> with a free variable <span class="inlinecode"><span class="id" type="var">x</span></span>, and suppose we've been able to assign a type <span class="inlinecode"><span class="id" type="var">T</span></span> to <span class="inlinecode"><span class="id" type="var">t</span></span> under the assumption that <span class="inlinecode"><span class="id" type="var">x</span></span> has some type <span class="inlinecode"><span class="id" type="var">U</span></span>. Also, suppose that we have some other term <span class="inlinecode"><span class="id" type="var">v</span></span> and that we've shown that <span class="inlinecode"><span class="id" type="var">v</span></span> has type <span class="inlinecode"><span class="id" type="var">U</span></span>. Then, since <span class="inlinecode"><span class="id" type="var">v</span></span> satisfies the assumption we made about <span class="inlinecode"><span class="id" type="var">x</span></span> when typing <span class="inlinecode"><span class="id" type="var">t</span></span>, we should be able to substitute <span class="inlinecode"><span class="id" type="var">v</span></span> for each of the occurrences of <span class="inlinecode"><span class="id" type="var">x</span></span> in <span class="inlinecode"><span class="id" type="var">t</span></span> and obtain a new term that still has type <span class="inlinecode"><span class="id" type="var">T</span></span>. <div class="paragraph"> </div> <i>Lemma</i>: If <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span>,<span class="id" type="var">x</span>:<span class="id" type="var">U</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T</span></span> and <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">v</span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">U</span></span>, then <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode">[<span class="id" type="var">x</span>:=<span class="id" type="var">v</span>]<span class="id" type="var">t</span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T</span></span>. </div> <div class="code code-tight"> <br/> <span class="id" type="keyword">Lemma</span> <span class="id" type="var">substitution_preserves_typing</span> : <span style="font-family: arial;">&forall;</span><span style="font-family: serif; font-size:85%;">&Gamma;</span> <span class="id" type="var">x</span> <span class="id" type="var">U</span> <span class="id" type="var">t</span> <span class="id" type="var">v</span> <span class="id" type="var">T</span>,<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">extend</span> <span style="font-family: serif; font-size:85%;">&Gamma;</span> <span class="id" type="var">x</span> <span class="id" type="var">U</span> <span style="font-family: arial;">&#8866;</span> <span class="id" type="var">t</span> &#x2208; <span class="id" type="var">T</span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">empty</span> <span style="font-family: arial;">&#8866;</span> <span class="id" type="var">v</span> &#x2208; <span class="id" type="var">U</span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family: serif; font-size:85%;">&Gamma;</span> <span style="font-family: arial;">&#8866;</span> [<span class="id" type="var">x</span>:=<span class="id" type="var">v</span>]<span class="id" type="var">t</span> &#x2208; <span class="id" type="var">T</span>.<br/> <br/> </div> <div class="doc"> One technical subtlety in the statement of the lemma is that we assign <span class="inlinecode"><span class="id" type="var">v</span></span> the type <span class="inlinecode"><span class="id" type="var">U</span></span> in the <i>empty</i> context &mdash; in other words, we assume <span class="inlinecode"><span class="id" type="var">v</span></span> is closed. This assumption considerably simplifies the <span class="inlinecode"><span class="id" type="var">T_Abs</span></span> case of the proof (compared to assuming <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">v</span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">U</span></span>, which would be the other reasonable assumption at this point) because the context invariance lemma then tells us that <span class="inlinecode"><span class="id" type="var">v</span></span> has type <span class="inlinecode"><span class="id" type="var">U</span></span> in any context at all &mdash; we don't have to worry about free variables in <span class="inlinecode"><span class="id" type="var">v</span></span> clashing with the variable being introduced into the context by <span class="inlinecode"><span class="id" type="var">T_Abs</span></span>. <div class="paragraph"> </div> <i>Proof</i>: We prove, by induction on <span class="inlinecode"><span class="id" type="var">t</span></span>, that, for all <span class="inlinecode"><span class="id" type="var">T</span></span> and <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span>, if <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span>,<span class="id" type="var">x</span>:<span class="id" type="var">U</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T</span></span> and <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">v</span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">U</span></span>, then <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode">[<span class="id" type="var">x</span>:=<span class="id" type="var">v</span>]<span class="id" type="var">t</span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T</span></span>. <div class="paragraph"> </div> <ul class="doclist"> <li> If <span class="inlinecode"><span class="id" type="var">t</span></span> is a variable, there are two cases to consider, depending on whether <span class="inlinecode"><span class="id" type="var">t</span></span> is <span class="inlinecode"><span class="id" type="var">x</span></span> or some other variable. <div class="paragraph"> </div> <ul class="doclist"> <li> If <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span class="id" type="var">x</span></span>, then from the fact that <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span>,</span> <span class="inlinecode"><span class="id" type="var">x</span>:<span class="id" type="var">U</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">x</span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T</span></span> we conclude that <span class="inlinecode"><span class="id" type="var">U</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span class="id" type="var">T</span></span>. We must show that <span class="inlinecode">[<span class="id" type="var">x</span>:=<span class="id" type="var">v</span>]<span class="id" type="var">x</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span class="id" type="var">v</span></span> has type <span class="inlinecode"><span class="id" type="var">T</span></span> under <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span>, given the assumption that <span class="inlinecode"><span class="id" type="var">v</span></span> has type <span class="inlinecode"><span class="id" type="var">U</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span class="id" type="var">T</span></span> under the empty context. This follows from context invariance: if a closed term has type <span class="inlinecode"><span class="id" type="var">T</span></span> in the empty context, it has that type in any context. <div class="paragraph"> </div> </li> <li> If <span class="inlinecode"><span class="id" type="var">t</span></span> is some variable <span class="inlinecode"><span class="id" type="var">y</span></span> that is not equal to <span class="inlinecode"><span class="id" type="var">x</span></span>, then we need only note that <span class="inlinecode"><span class="id" type="var">y</span></span> has the same type under <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span>,</span> <span class="inlinecode"><span class="id" type="var">x</span>:<span class="id" type="var">U</span></span> as under <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span>. <div class="paragraph"> </div> </li> </ul> </li> <li> If <span class="inlinecode"><span class="id" type="var">t</span></span> is an abstraction <span class="inlinecode">\<span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span>.</span> <span class="inlinecode"><span class="id" type="var">t<sub>12</sub></span></span>, then the IH tells us, for all <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span></span> and <span class="inlinecode"><span class="id" type="var">T'</span></span>, that if <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span>,<span class="id" type="var">x</span>:<span class="id" type="var">U</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t<sub>12</sub></span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T'</span></span> and <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">v</span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">U</span></span>, then <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;'</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode">[<span class="id" type="var">x</span>:=<span class="id" type="var">v</span>]<span class="id" type="var">t<sub>12</sub></span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T'</span></span>. <div class="paragraph"> </div> The substitution in the conclusion behaves differently, depending on whether <span class="inlinecode"><span class="id" type="var">x</span></span> and <span class="inlinecode"><span class="id" type="var">y</span></span> are the same variable name. <div class="paragraph"> </div> First, suppose <span class="inlinecode"><span class="id" type="var">x</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span class="id" type="var">y</span></span>. Then, by the definition of substitution, <span class="inlinecode">[<span class="id" type="var">x</span>:=<span class="id" type="var">v</span>]<span class="id" type="var">t</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span class="id" type="var">t</span></span>, so we just need to show <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T</span></span>. But we know <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span>,<span class="id" type="var">x</span>:<span class="id" type="var">U</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">:</span> <span class="inlinecode"><span class="id" type="var">T</span></span>, and since the variable <span class="inlinecode"><span class="id" type="var">y</span></span> does not appear free in <span class="inlinecode">\<span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span>.</span> <span class="inlinecode"><span class="id" type="var">t<sub>12</sub></span></span>, the context invariance lemma yields <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T</span></span>. <div class="paragraph"> </div> Second, suppose <span class="inlinecode"><span class="id" type="var">x</span></span> <span class="inlinecode">≠</span> <span class="inlinecode"><span class="id" type="var">y</span></span>. We know <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span>,<span class="id" type="var">x</span>:<span class="id" type="var">U</span>,<span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t<sub>12</sub></span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T<sub>12</sub></span></span> by inversion of the typing relation, and <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span>,<span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span>,<span class="id" type="var">x</span>:<span class="id" type="var">U</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t<sub>12</sub></span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T<sub>12</sub></span></span> follows from this by the context invariance lemma, so the IH applies, giving us <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span>,<span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode">[<span class="id" type="var">x</span>:=<span class="id" type="var">v</span>]<span class="id" type="var">t<sub>12</sub></span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T<sub>12</sub></span></span>. By <span class="inlinecode"><span class="id" type="var">T_Abs</span></span>, <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode">\<span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span>.</span> <span class="inlinecode">[<span class="id" type="var">x</span>:=<span class="id" type="var">v</span>]<span class="id" type="var">t<sub>12</sub></span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T<sub>11</sub></span><span style="font-family: arial;">&rarr;</span><span class="id" type="var">T<sub>12</sub></span></span>, and by the definition of substitution (noting that <span class="inlinecode"><span class="id" type="var">x</span></span> <span class="inlinecode">≠</span> <span class="inlinecode"><span class="id" type="var">y</span></span>), <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode">\<span class="id" type="var">y</span>:<span class="id" type="var">T<sub>11</sub></span>.</span> <span class="inlinecode">[<span class="id" type="var">x</span>:=<span class="id" type="var">v</span>]<span class="id" type="var">t<sub>12</sub></span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T<sub>11</sub></span><span style="font-family: arial;">&rarr;</span><span class="id" type="var">T<sub>12</sub></span></span> as required. <div class="paragraph"> </div> </li> <li> If <span class="inlinecode"><span class="id" type="var">t</span></span> is an application <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span>, the result follows straightforwardly from the definition of substitution and the induction hypotheses. <div class="paragraph"> </div> </li> <li> The remaining cases are similar to the application case. </li> </ul> <div class="paragraph"> </div> Another technical note: This proof is a rare case where an induction on terms, rather than typing derivations, yields a simpler argument. The reason for this is that the assumption <span class="inlinecode"><span class="id" type="var">extend</span></span> <span class="inlinecode"><span style="font-family: serif; font-size:85%;">&Gamma;</span></span> <span class="inlinecode"><span class="id" type="var">x</span></span> <span class="inlinecode"><span class="id" type="var">U</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T</span></span> is not completely generic, in the sense that one of the "slots" in the typing relation &mdash; namely the context &mdash; is not just a variable, and this means that Coq's native induction tactic does not give us the induction hypothesis that we want. It is possible to work around this, but the needed generalization is a little tricky. The term <span class="inlinecode"><span class="id" type="var">t</span></span>, on the other hand, <i>is</i> completely generic. </div> <div class="code code-tight"> <br/> <div class="togglescript" id="proofcontrol5" onclick="toggleDisplay('proof5');toggleDisplay('proofcontrol5')"><span class="show"></span></div> <div class="proofscript" id="proof5" onclick="toggleDisplay('proof5');toggleDisplay('proofcontrol5')"> <span class="id" type="keyword">Proof</span> <span class="id" type="keyword">with</span> <span class="id" type="tactic">eauto</span>.<br/> &nbsp;&nbsp;<span class="id" type="tactic">intros</span> <span style="font-family: serif; font-size:85%;">&Gamma;</span> <span class="id" type="var">x</span> <span class="id" type="var">U</span> <span class="id" type="var">t</span> <span class="id" type="var">v</span> <span class="id" type="var">T</span> <span class="id" type="var">Ht</span> <span class="id" type="var">Ht'</span>.<br/> &nbsp;&nbsp;<span class="id" type="tactic">generalize</span> <span class="id" type="tactic">dependent</span> <span style="font-family: serif; font-size:85%;">&Gamma;</span>. <span class="id" type="tactic">generalize</span> <span class="id" type="tactic">dependent</span> <span class="id" type="var">T</span>.<br/> &nbsp;&nbsp;<span class="id" type="var">t_cases</span> (<span class="id" type="tactic">induction</span> <span class="id" type="var">t</span>) <span class="id" type="var">Case</span>; <span class="id" type="tactic">intros</span> <span class="id" type="var">T</span> <span style="font-family: serif; font-size:85%;">&Gamma;</span> <span class="id" type="var">H</span>;<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">(*&nbsp;in&nbsp;each&nbsp;case,&nbsp;we'll&nbsp;want&nbsp;to&nbsp;get&nbsp;at&nbsp;the&nbsp;derivation&nbsp;of&nbsp;H&nbsp;*)</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">inversion</span> <span class="id" type="var">H</span>; <span class="id" type="tactic">subst</span>; <span class="id" type="tactic">simpl</span>...<br/> &nbsp;&nbsp;<span class="id" type="var">Case</span> "tvar".<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">rename</span> <span class="id" type="var">i</span> <span class="id" type="var">into</span> <span class="id" type="var">y</span>. <span class="id" type="tactic">destruct</span> (<span class="id" type="var">eq_id_dec</span> <span class="id" type="var">x</span> <span class="id" type="var">y</span>).<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">SCase</span> "x=y".<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">subst</span>.<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">rewrite</span> <span class="id" type="var">extend_eq</span> <span class="id" type="keyword">in</span> <span class="id" type="var">H2</span>.<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">inversion</span> <span class="id" type="var">H2</span>; <span class="id" type="tactic">subst</span>. <span class="id" type="tactic">clear</span> <span class="id" type="var">H2</span>.<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">eapply</span> <span class="id" type="var">context_invariance</span>... <span class="id" type="tactic">intros</span> <span class="id" type="var">x</span> <span class="id" type="var">Hcontra</span>.<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">destruct</span> (<span class="id" type="var">free_in_context</span> <span class="id" type="var">_</span> <span class="id" type="var">_</span> <span class="id" type="var">T</span> <span class="id" type="var">empty</span> <span class="id" type="var">Hcontra</span>) <span class="id" type="keyword">as</span> [<span class="id" type="var">T'</span> <span class="id" type="var">HT'</span>]...<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">inversion</span> <span class="id" type="var">HT'</span>.<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">SCase</span> "x≠y".<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">apply</span> <span class="id" type="var">T_Var</span>. <span class="id" type="tactic">rewrite</span> <span class="id" type="var">extend_neq</span> <span class="id" type="keyword">in</span> <span class="id" type="var">H2</span>...<br/> &nbsp;&nbsp;<span class="id" type="var">Case</span> "tabs".<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">rename</span> <span class="id" type="var">i</span> <span class="id" type="var">into</span> <span class="id" type="var">y</span>. <span class="id" type="tactic">apply</span> <span class="id" type="var">T_Abs</span>.<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">destruct</span> (<span class="id" type="var">eq_id_dec</span> <span class="id" type="var">x</span> <span class="id" type="var">y</span>).<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">SCase</span> "x=y".<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">eapply</span> <span class="id" type="var">context_invariance</span>...<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">subst</span>.<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">intros</span> <span class="id" type="var">x</span> <span class="id" type="var">Hafi</span>. <span class="id" type="tactic">unfold</span> <span class="id" type="var">extend</span>.<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">destruct</span> (<span class="id" type="var">eq_id_dec</span> <span class="id" type="var">y</span> <span class="id" type="var">x</span>)...<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">SCase</span> "x≠y".<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">apply</span> <span class="id" type="var">IHt</span>. <span class="id" type="tactic">eapply</span> <span class="id" type="var">context_invariance</span>...<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">intros</span> <span class="id" type="var">z</span> <span class="id" type="var">Hafi</span>. <span class="id" type="tactic">unfold</span> <span class="id" type="var">extend</span>.<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">destruct</span> (<span class="id" type="var">eq_id_dec</span> <span class="id" type="var">y</span> <span class="id" type="var">z</span>)...<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">subst</span>. <span class="id" type="tactic">rewrite</span> <span class="id" type="var">neq_id</span>...<br/> <span class="id" type="keyword">Qed</span>.<br/> </div> <br/> </div> <div class="doc"> The substitution lemma can be viewed as a kind of "commutation" property. Intuitively, it says that substitution and typing can be done in either order: we can either assign types to the terms <span class="inlinecode"><span class="id" type="var">t</span></span> and <span class="inlinecode"><span class="id" type="var">v</span></span> separately (under suitable contexts) and then combine them using substitution, or we can substitute first and then assign a type to <span class="inlinecode"></span> <span class="inlinecode">[<span class="id" type="var">x</span>:=<span class="id" type="var">v</span>]</span> <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode"></span> &mdash; the result is the same either way. </div> <div class="code code-tight"> <br/> </div> <div class="doc"> <a name="lab688"></a><h2 class="section">Main Theorem</h2> <div class="paragraph"> </div> We now have the tools we need to prove preservation: if a closed term <span class="inlinecode"><span class="id" type="var">t</span></span> has type <span class="inlinecode"><span class="id" type="var">T</span></span>, and takes an evaluation step to <span class="inlinecode"><span class="id" type="var">t'</span></span>, then <span class="inlinecode"><span class="id" type="var">t'</span></span> is also a closed term with type <span class="inlinecode"><span class="id" type="var">T</span></span>. In other words, the small-step evaluation relation preserves types. </div> <div class="code code-tight"> <br/> <span class="id" type="keyword">Theorem</span> <span class="id" type="var">preservation</span> : <span style="font-family: arial;">&forall;</span><span class="id" type="var">t</span> <span class="id" type="var">t'</span> <span class="id" type="var">T</span>,<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">empty</span> <span style="font-family: arial;">&#8866;</span> <span class="id" type="var">t</span> &#x2208; <span class="id" type="var">T</span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">t</span> <span style="font-family: arial;">&rArr;</span> <span class="id" type="var">t'</span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">empty</span> <span style="font-family: arial;">&#8866;</span> <span class="id" type="var">t'</span> &#x2208; <span class="id" type="var">T</span>.<br/> <br/> </div> <div class="doc"> <i>Proof</i>: by induction on the derivation of <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T</span></span>. <div class="paragraph"> </div> <ul class="doclist"> <li> We can immediately rule out <span class="inlinecode"><span class="id" type="var">T_Var</span></span>, <span class="inlinecode"><span class="id" type="var">T_Abs</span></span>, <span class="inlinecode"><span class="id" type="var">T_True</span></span>, and <span class="inlinecode"><span class="id" type="var">T_False</span></span> as the final rules in the derivation, since in each of these cases <span class="inlinecode"><span class="id" type="var">t</span></span> cannot take a step. <div class="paragraph"> </div> </li> <li> If the last rule in the derivation was <span class="inlinecode"><span class="id" type="var">T_App</span></span>, then <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span>. There are three cases to consider, one for each rule that could have been used to show that <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> takes a step to <span class="inlinecode"><span class="id" type="var">t'</span></span>. <div class="paragraph"> </div> <ul class="doclist"> <li> If <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> takes a step by <span class="inlinecode"><span class="id" type="var">ST_App1</span></span>, with <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> stepping to <span class="inlinecode"><span class="id" type="var">t<sub>1</sub>'</span></span>, then by the IH <span class="inlinecode"><span class="id" type="var">t<sub>1</sub>'</span></span> has the same type as <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span>, and hence <span class="inlinecode"><span class="id" type="var">t<sub>1</sub>'</span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> has the same type as <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span>. <div class="paragraph"> </div> </li> <li> The <span class="inlinecode"><span class="id" type="var">ST_App2</span></span> case is similar. <div class="paragraph"> </div> </li> <li> If <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> takes a step by <span class="inlinecode"><span class="id" type="var">ST_AppAbs</span></span>, then <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode">=</span> <span class="inlinecode">\<span class="id" type="var">x</span>:<span class="id" type="var">T<sub>11</sub>.t<sub>12</sub></span></span> and <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> steps to <span class="inlinecode">[<span class="id" type="var">x</span>:=<span class="id" type="var">t<sub>2</sub></span>]<span class="id" type="var">t<sub>12</sub></span></span>; the desired result now follows from the fact that substitution preserves types. <div class="paragraph"> </div> </li> </ul> </li> <li> If the last rule in the derivation was <span class="inlinecode"><span class="id" type="var">T_If</span></span>, then <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">=</span> <span class="inlinecode"><span class="id" type="keyword">if</span></span> <span class="inlinecode"><span class="id" type="var">t<sub>1</sub></span></span> <span class="inlinecode"><span class="id" type="keyword">then</span></span> <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> <span class="inlinecode"><span class="id" type="keyword">else</span></span> <span class="inlinecode"><span class="id" type="var">t<sub>3</sub></span></span>, and there are again three cases depending on how <span class="inlinecode"><span class="id" type="var">t</span></span> steps. <div class="paragraph"> </div> <ul class="doclist"> <li> If <span class="inlinecode"><span class="id" type="var">t</span></span> steps to <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> or <span class="inlinecode"><span class="id" type="var">t<sub>3</sub></span></span>, the result is immediate, since <span class="inlinecode"><span class="id" type="var">t<sub>2</sub></span></span> and <span class="inlinecode"><span class="id" type="var">t<sub>3</sub></span></span> have the same type as <span class="inlinecode"><span class="id" type="var">t</span></span>. <div class="paragraph"> </div> </li> <li> Otherwise, <span class="inlinecode"><span class="id" type="var">t</span></span> steps by <span class="inlinecode"><span class="id" type="var">ST_If</span></span>, and the desired conclusion follows directly from the induction hypothesis. </li> </ul> </li> </ul> </div> <div class="code code-tight"> <br/> <div class="togglescript" id="proofcontrol6" onclick="toggleDisplay('proof6');toggleDisplay('proofcontrol6')"><span class="show"></span></div> <div class="proofscript" id="proof6" onclick="toggleDisplay('proof6');toggleDisplay('proofcontrol6')"> <span class="id" type="keyword">Proof</span> <span class="id" type="keyword">with</span> <span class="id" type="tactic">eauto</span>.<br/> &nbsp;&nbsp;<span class="id" type="var">remember</span> (@<span class="id" type="var">empty</span> <span class="id" type="var">ty</span>) <span class="id" type="keyword">as</span> <span style="font-family: serif; font-size:85%;">&Gamma;</span>.<br/> &nbsp;&nbsp;<span class="id" type="tactic">intros</span> <span class="id" type="var">t</span> <span class="id" type="var">t'</span> <span class="id" type="var">T</span> <span class="id" type="var">HT</span>. <span class="id" type="tactic">generalize</span> <span class="id" type="tactic">dependent</span> <span class="id" type="var">t'</span>.<br/> &nbsp;&nbsp;<span class="id" type="var">has_type_cases</span> (<span class="id" type="tactic">induction</span> <span class="id" type="var">HT</span>) <span class="id" type="var">Case</span>;<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">intros</span> <span class="id" type="var">t'</span> <span class="id" type="var">HE</span>; <span class="id" type="tactic">subst</span> <span style="font-family: serif; font-size:85%;">&Gamma;</span>; <span class="id" type="tactic">subst</span>; <br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">try</span> <span class="id" type="var">solve</span> [<span class="id" type="tactic">inversion</span> <span class="id" type="var">HE</span>; <span class="id" type="tactic">subst</span>; <span class="id" type="tactic">auto</span>].<br/> &nbsp;&nbsp;<span class="id" type="var">Case</span> "T_App".<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">inversion</span> <span class="id" type="var">HE</span>; <span class="id" type="tactic">subst</span>...<br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">(*&nbsp;Most&nbsp;of&nbsp;the&nbsp;cases&nbsp;are&nbsp;immediate&nbsp;by&nbsp;induction,&nbsp;<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and&nbsp;<span class="inlinecode"><span class="id" type="tactic">eauto</span></span>&nbsp;takes&nbsp;care&nbsp;of&nbsp;them&nbsp;*)</span><br/> &nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="var">SCase</span> "ST_AppAbs".<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">apply</span> <span class="id" type="var">substitution_preserves_typing</span> <span class="id" type="keyword">with</span> <span class="id" type="var">T<sub>11</sub></span>...<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="id" type="tactic">inversion</span> <span class="id" type="var">HT1</span>...<br/> <span class="id" type="keyword">Qed</span>.<br/> </div> <br/> </div> <div class="doc"> <a name="lab689"></a><h4 class="section">Exercise: 2 stars (subject_expansion_stlc)</h4> An exercise in the <span class="inlinecode"><span class="id" type="keyword">Types</span></span> chapter asked about the subject expansion property for the simple language of arithmetic and boolean expressions. Does this property hold for STLC? That is, is it always the case that, if <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode"><span style="font-family: arial;">&rArr;</span></span> <span class="inlinecode"><span class="id" type="var">t'</span></span> and <span class="inlinecode"><span class="id" type="var">has_type</span></span> <span class="inlinecode"><span class="id" type="var">t'</span></span> <span class="inlinecode"><span class="id" type="var">T</span></span>, then <span class="inlinecode"><span class="id" type="var">empty</span></span> <span class="inlinecode"><span style="font-family: arial;">&#8866;</span></span> <span class="inlinecode"><span class="id" type="var">t</span></span> <span class="inlinecode">&#x2208;</span> <span class="inlinecode"><span class="id" type="var">T</span></span>? If so, prove it. If not, give a counter-example not involving conditionals. <div class="paragraph"> </div> <span class="comment">(*&nbsp;FILL&nbsp;IN&nbsp;HERE&nbsp;*)</span><br/> <font size=-2>&#9744;</font> </div> <div class="code code-tight"> <br/> </div> <div class="doc"> <a name="lab690"></a><h1 class="section">Type Soundness</h1> <div class="paragraph"> </div> <a name="lab691"></a><h4 class="section">Exercise: 2 stars, optional (type_soundness)</h4> <div class="paragraph"> </div> Put progress and preservation together and show that a well-typed term can <i>never</i> reach a stuck state. </div> <div class="code code-tight"> <br/> <span class="id" type="keyword">Definition</span> <span class="id" type="var">stuck</span> (<span class="id" type="var">t</span>:<span class="id" type="var">tm</span>) : <span class="id" type="keyword">Prop</span> :=<br/> &nbsp;&nbsp;(<span class="id" type="var">normal_form</span> <span class="id" type="var">step</span>) <span class="id" type="var">t</span> <span style="font-family: arial;">&and;</span> ¬ <span class="id" type="var">value</span> <span class="id" type="var">t</span>.<br/> <br/> <span class="id" type="keyword">Corollary</span> <span class="id" type="var">soundness</span> : <span style="font-family: arial;">&forall;</span><span class="id" type="var">t</span> <span class="id" type="var">t'</span> <span class="id" type="var">T</span>,<br/> &nbsp;&nbsp;<span class="id" type="var">empty</span> <span style="font-family: arial;">&#8866;</span> <span class="id" type="var">t</span> &#x2208; <span class="id" type="var">T</span> <span style="font-family: arial;">&rarr;</span> <br/> &nbsp;&nbsp;<span class="id" type="var">t</span> <span style="font-family: arial;">&rArr;*</span> <span class="id" type="var">t'</span> <span style="font-family: arial;">&rarr;</span><br/> &nbsp;&nbsp;~(<span class="id" type="var">stuck</span> <span class="id" type="var">t'</span>).<br/> <span class="id" type="keyword">Proof</span>.<br/> &nbsp;&nbsp;<span class="id" type="tactic">intros</span> <span class="id" type="var">t</span> <span class="id" type="var">t'</span> <span class="id" type="var">T</span> <span class="id" type="var">Hhas_type</span> <span class="id" type="var">Hmulti</span>. <span class="id" type="tactic">unfold</span> <span class="id" type="var">stuck</span>.<br/> &nbsp;&nbsp;<span class="id" type="tactic">intros</span> [<span class="id" type="var">Hnf</span> <span class="id" type="var">Hnot_val</span>]. <span class="id" type="tactic">unfold</span> <span class="id" type="var">normal_form</span> <span class="id" type="keyword">in</span> <span class="id" type="var">Hnf</span>.<br/> &nbsp;&nbsp;<span class="id" type="tactic">induction</span> <span class="id" type="var">Hmulti</span>.<br/> &nbsp;&nbsp;<span class="comment">(*&nbsp;FILL&nbsp;IN&nbsp;HERE&nbsp;*)</span> <span class="id" type="var">Admitted</span>.<br/> <br/> </div> <div class="doc"> <a name="lab692"></a><h1 class="section">Uniqueness of Types</h1> <div class="paragraph"> </div> <a name="lab693"></a><h4 class="section">Exercise: 3 stars (types_unique)</h4> Another pleasant property of the STLC is that types are unique: a given term (in a given context) has at most one type. Formalize this statement and prove it. </div> <div class="code code-tight"> <br/> <span class="comment">(*&nbsp;FILL&nbsp;IN&nbsp;HERE&nbsp;*)</span><br/> </div> <div class="doc"> <font size=-2>&#9744;</font> </div> <div class="code code-tight"> <br/> </div> <div class="doc"> <a name="lab694"></a><h1 class="section">Additional Exercises</h1> <div class="paragraph"> </div> <a name="lab695"></a><h4 class="section">Exercise: 1 star (progress_preservation_statement)</h4> Without peeking, write down the progress and preservation theorems for the simply typed lambda-calculus. <font size=-2>&#9744;</font> <div class="paragraph"> </div> <a name="lab696"></a><h4 class="section">Exercise: 2 stars (stlc_variation1)</h4> Suppose we add a new term <span class="inlinecode"><span class="id" type="var">zap</span></span> with the following reduction rule: <center><table class="infrule"> <tr class="infruleassumption"> <td class="infrule">&nbsp;&nbsp;</td> <td class="infrulenamecol" rowspan="3"> (ST_Zap) &nbsp; </td></tr> <tr class="infrulemiddle"> <td class="infrule"><hr /></td> </tr> <tr class="infruleassumption"> <td class="infrule">t&nbsp;<span style="font-family: arial;">&rArr;</span>&nbsp;zap</td> <td></td> </td> </table></center>and the following typing rule: <center><table class="infrule"> <tr class="infruleassumption"> <td class="infrule">&nbsp;&nbsp;</td> <td class="infrulenamecol" rowspan="3"> (T_Zap) &nbsp; </td></tr> <tr class="infrulemiddle"> <td class="infrule"><hr /></td> </tr> <tr class="infruleassumption"> <td class="infrule"><span style="font-family: serif; font-size:85%;">&Gamma;</span>&nbsp;<span style="font-family: arial;">&#8866;</span>&nbsp;zap&nbsp;:&nbsp;T</td> <td></td> </td> </table></center> Which of the following properties of the STLC remain true in the presence of this rule? For each one, write either "remains true" or else "becomes false." If a property becomes false, give a counterexample. <div class="paragraph"> </div> <ul class="doclist"> <li> Determinism of <span class="inlinecode"><span class="id" type="var">step</span></span> <div class="paragraph"> </div> </li> <li> Progress <div class="paragraph"> </div> </li> <li> Preservation </li> </ul> <div class="paragraph"> </div> <font size=-2>&#9744;</font> <div class="paragraph"> </div> <a name="lab697"></a><h4 class="section">Exercise: 2 stars (stlc_variation2)</h4> Suppose instead that we add a new term <span class="inlinecode"><span class="id" type="var">foo</span></span> with the following reduction rules: <center><table class="infrule"> <tr class="infruleassumption"> <td class="infrule">&nbsp;&nbsp;</td> <td class="infrulenamecol" rowspan="3"> (ST_Foo1) &nbsp; </td></tr> <tr class="infrulemiddle"> <td class="infrule"><hr /></td> </tr> <tr class="infruleassumption"> <td class="infrule">(\x:A.&nbsp;x)&nbsp;<span style="font-family: arial;">&rArr;</span>&nbsp;foo</td> <td></td> </td> </table></center><center><table class="infrule"> <tr class="infruleassumption"> <td class="infrule">&nbsp;&nbsp;</td> <td class="infrulenamecol" rowspan="3"> (ST_Foo2) &nbsp; </td></tr> <tr class="infrulemiddle"> <td class="infrule"><hr /></td> </tr> <tr class="infruleassumption"> <td class="infrule">foo&nbsp;<span style="font-family: arial;">&rArr;</span>&nbsp;true</td> <td></td> </td> </table></center> Which of the following properties of the STLC remain true in the presence of this rule? For each one, write either "remains true" or else "becomes false." If a property becomes false, give a counterexample. <div class="paragraph"> </div> <ul class="doclist"> <li> Determinism of <span class="inlinecode"><span class="id" type="var">step</span></span> <div class="paragraph"> </div> </li> <li> Progress <div class="paragraph"> </div> </li> <li> Preservation </li> </ul> <div class="paragraph"> </div> <font size=-2>&#9744;</font> <div class="paragraph"> </div> <a name="lab698"></a><h4 class="section">Exercise: 2 stars (stlc_variation3)</h4> Suppose instead that we remove the rule <span class="inlinecode"><span class="id" type="var">ST_App1</span></span> from the <span class="inlinecode"><span class="id" type="var">step</span></span> relation. Which of the following properties of the STLC remain true in the presence of this rule? For each one, write either "remains true" or else "becomes false." If a property becomes false, give a counterexample. <div class="paragraph"> </div> <ul class="doclist"> <li> Determinism of <span class="inlinecode"><span class="id" type="var">step</span></span> <div class="paragraph"> </div> </li> <li> Progress <div class="paragraph"> </div> </li> <li> Preservation </li> </ul> <div class="paragraph"> </div> <font size=-2>&#9744;</font> <div class="paragraph"> </div> <a name="lab699"></a><h4 class="section">Exercise: 2 stars, optional (stlc_variation4)</h4> Suppose instead that we add the following new rule to the reduction relation: <center><table class="infrule"> <tr class="infruleassumption"> <td class="infrule">&nbsp;&nbsp;</td> <td class="infrulenamecol" rowspan="3"> (ST_FunnyIfTrue) &nbsp; </td></tr> <tr class="infrulemiddle"> <td class="infrule"><hr /></td> </tr> <tr class="infruleassumption"> <td class="infrule">(if&nbsp;true&nbsp;then&nbsp;t<sub>1</sub>&nbsp;else&nbsp;t<sub>2</sub>)&nbsp;<span style="font-family: arial;">&rArr;</span>&nbsp;true</td> <td></td> </td> </table></center> Which of the following properties of the STLC remain true in the presence of this rule? For each one, write either "remains true" or else "becomes false." If a property becomes false, give a counterexample. <div class="paragraph"> </div> <ul class="doclist"> <li> Determinism of <span class="inlinecode"><span class="id" type="var">step</span></span> <div class="paragraph"> </div> </li> <li> Progress <div class="paragraph"> </div> </li> <li> Preservation </li> </ul> <div class="paragraph"> </div> <div class="paragraph"> </div> <a name="lab700"></a><h4 class="section">Exercise: 2 stars, optional (stlc_variation5)</h4> Suppose instead that we add the following new rule to the typing relation: <center><table class="infrule"> <tr class="infruleassumption"> <td class="infrule"><span style="font-family: serif; font-size:85%;">&Gamma;</span>&nbsp;<span style="font-family: arial;">&#8866;</span>&nbsp;t<sub>1</sub>&nbsp;&#x2208;&nbsp;Bool->Bool->Bool</td> <td></td> </td> <tr class="infruleassumption"> <td class="infrule"><span style="font-family: serif; font-size:85%;">&Gamma;</span>&nbsp;<span style="font-family: arial;">&#8866;</span>&nbsp;t<sub>2</sub>&nbsp;&#x2208;&nbsp;Bool</td> <td class="infrulenamecol" rowspan="3"> (T_FunnyApp) &nbsp; </td></tr> <tr class="infrulemiddle"> <td class="infrule"><hr /></td> </tr> <tr class="infruleassumption"> <td class="infrule"><span style="font-family: serif; font-size:85%;">&Gamma;</span>&nbsp;<span style="font-family: arial;">&#8866;</span>&nbsp;t<sub>1</sub>&nbsp;t<sub>2</sub>&nbsp;&#x2208;&nbsp;Bool</td> <td></td> </td> </table></center> Which of the following properties of the STLC remain true in the presence of this rule? For each one, write either "remains true" or else "becomes false." If a property becomes false, give a counterexample. <div class="paragraph"> </div> <ul class="doclist"> <li> Determinism of <span class="inlinecode"><span class="id" type="var">step</span></span> <div class="paragraph"> </div> </li> <li> Progress <div class="paragraph"> </div> </li> <li> Preservation </li> </ul> <div class="paragraph"> </div> <div class="paragraph"> </div> <a name="lab701"></a><h4 class="section">Exercise: 2 stars, optional (stlc_variation6)</h4> Suppose instead that we add the following new rule to the typing relation: <center><table class="infrule"> <tr class="infruleassumption"> <td class="infrule"><span style="font-family: serif; font-size:85%;">&Gamma;</span>&nbsp;<span style="font-family: arial;">&#8866;</span>&nbsp;t<sub>1</sub>&nbsp;&#x2208;&nbsp;Bool</td> <td></td> </td> <tr class="infruleassumption"> <td class="infrule"><span style="font-family: serif; font-size:85%;">&Gamma;</span>&nbsp;<span style="font-family: arial;">&#8866;</span>&nbsp;t<sub>2</sub>&nbsp;&#x2208;&nbsp;Bool</td> <td class="infrulenamecol" rowspan="3"> (T_FunnyApp') &nbsp; </td></tr> <tr class="infrulemiddle"> <td class="infrule"><hr /></td> </tr> <tr class="infruleassumption"> <td class="infrule"><span style="font-family: serif; font-size:85%;">&Gamma;</span>&nbsp;<span style="font-family: arial;">&#8866;</span>&nbsp;t<sub>1</sub>&nbsp;t<sub>2</sub>&nbsp;&#x2208;&nbsp;Bool</td> <td></td> </td> </table></center> Which of the following properties of the STLC remain true in the presence of this rule? For each one, write either "remains true" or else "becomes false." If a property becomes false, give a counterexample. <div class="paragraph"> </div> <ul class="doclist"> <li> Determinism of <span class="inlinecode"><span class="id" type="var">step</span></span> <div class="paragraph"> </div> </li> <li> Progress <div class="paragraph"> </div> </li> <li> Preservation </li> </ul> <div class="paragraph"> </div> <div class="paragraph"> </div> <a name="lab702"></a><h4 class="section">Exercise: 2 stars, optional (stlc_variation7)</h4> Suppose we add the following new rule to the typing relation of the STLC: <center><table class="infrule"> <tr class="infruleassumption"> <td class="infrule">&nbsp;&nbsp;</td> <td class="infrulenamecol" rowspan="3"> (T_FunnyAbs) &nbsp; </td></tr> <tr class="infrulemiddle"> <td class="infrule"><hr /></td> </tr> <tr class="infruleassumption"> <td class="infrule"><span style="font-family: arial;">&#8866;</span>&nbsp;\x:Bool.t&nbsp;&#x2208;&nbsp;Bool</td> <td></td> </td> </table></center> Which of the following properties of the STLC remain true in the presence of this rule? For each one, write either "remains true" or else "becomes false." If a property becomes false, give a counterexample. <div class="paragraph"> </div> <ul class="doclist"> <li> Determinism of <span class="inlinecode"><span class="id" type="var">step</span></span> <div class="paragraph"> </div> </li> <li> Progress <div class="paragraph"> </div> </li> <li> Preservation </li> </ul> <div class="paragraph"> </div> <font size=-2>&#9744;</font> </div> <div class="code code-tight"> <br/> <span class="id" type="keyword">End</span> <span class="id" type="var">STLCProp</span>.<br/> <br/> </div> <div class="doc"> <a name="lab703"></a><h2 class="section">Exercise: STLC with Arithmetic</h2> <div class="paragraph"> </div> To see how the STLC might function as the core of a real programming language, let's extend it with a concrete base type of numbers and some constants and primitive operators. </div> <div class="code code-tight"> <br/> <span class="id" type="keyword">Module</span> <span class="id" type="var">STLCArith</span>.<br/> <br/> </div> <div class="doc"> To types, we add a base type of natural numbers (and remove booleans, for brevity) </div> <div class="code code-tight"> <br/> <span class="id" type="keyword">Inductive</span> <span class="id" type="var">ty</span> : <span class="id" type="keyword">Type</span> :=<br/> &nbsp;&nbsp;| <span class="id" type="var">TArrow</span> : <span class="id" type="var">ty</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">ty</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">ty</span><br/> &nbsp;&nbsp;| <span class="id" type="var">TNat</span> : <span class="id" type="var">ty</span>.<br/> <br/> </div> <div class="doc"> To terms, we add natural number constants, along with successor, predecessor, multiplication, and zero-testing... </div> <div class="code code-tight"> <br/> <span class="id" type="keyword">Inductive</span> <span class="id" type="var">tm</span> : <span class="id" type="keyword">Type</span> :=<br/> &nbsp;&nbsp;| <span class="id" type="var">tvar</span> : <span class="id" type="var">id</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">tm</span><br/> &nbsp;&nbsp;| <span class="id" type="var">tapp</span> : <span class="id" type="var">tm</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">tm</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">tm</span><br/> &nbsp;&nbsp;| <span class="id" type="var">tabs</span> : <span class="id" type="var">id</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">ty</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">tm</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">tm</span><br/> &nbsp;&nbsp;| <span class="id" type="var">tnat</span> : <span class="id" type="var">nat</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">tm</span><br/> &nbsp;&nbsp;| <span class="id" type="var">tsucc</span> : <span class="id" type="var">tm</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">tm</span><br/> &nbsp;&nbsp;| <span class="id" type="var">tpred</span> : <span class="id" type="var">tm</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">tm</span><br/> &nbsp;&nbsp;| <span class="id" type="var">tmult</span> : <span class="id" type="var">tm</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">tm</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">tm</span><br/> &nbsp;&nbsp;| <span class="id" type="var">tif0</span> : <span class="id" type="var">tm</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">tm</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">tm</span> <span style="font-family: arial;">&rarr;</span> <span class="id" type="var">tm</span>.<br/> <br/> <div class="togglescript" id="proofcontrol7" onclick="toggleDisplay('proof7');toggleDisplay('proofcontrol7')"><span class="show"></span></div> <div class="proofscript" id="proof7" onclick="toggleDisplay('proof7');toggleDisplay('proofcontrol7')"> <span class="id" type="keyword">Tactic Notation</span> "t_cases" <span class="id" type="var">tactic</span>(<span class="id" type="var">first</span>) <span class="id" type="var">ident</span>(<span class="id" type="var">c</span>) :=<br/> &nbsp;&nbsp;<span class="id" type="var">first</span>;<br/> &nbsp;&nbsp;[ <span class="id" type="var">Case_aux</span> <span class="id" type="var">c</span> "tvar" | <span class="id" type="var">Case_aux</span> <span class="id" type="var">c</span> "tapp" <br/> &nbsp;&nbsp;| <span class="id" type="var">Case_aux</span> <span class="id" type="var">c</span> "tabs" | <span class="id" type="var">Case_aux</span> <span class="id" type="var">c</span> "tnat" <br/> &nbsp;&nbsp;| <span class="id" type="var">Case_aux</span> <span class="id" type="var">c</span> "tsucc" | <span class="id" type="var">Case_aux</span> <span class="id" type="var">c</span> "tpred"<br/> &nbsp;&nbsp;| <span class="id" type="var">Case_aux</span> <span class="id" type="var">c</span> "tmult" | <span class="id" type="var">Case_aux</span> <span class="id" type="var">c</span> "tif0" ].<br/> </div> <br/> </div> <div class="doc"> <a name="lab704"></a><h4 class="section">Exercise: 4 stars (stlc_arith)</h4> Finish formalizing the definition and properties of the STLC extended with arithmetic. Specifically: <div class="paragraph"> </div> <ul class="doclist"> <li> Copy the whole development of STLC that we went through above (from the definition of values through the Progress theorem), and paste it into the file at this point. <div class="paragraph"> </div> </li> <li> Extend the definitions of the <span class="inlinecode"><span class="id" type="tactic">subst</span></span> operation and the <span class="inlinecode"><span class="id" type="var">step</span></span> relation to include appropriate clauses for the arithmetic operators. <div class="paragraph"> </div> </li> <li> Extend the proofs of all the properties (up to <span class="inlinecode"><span class="id" type="var">soundness</span></span>) of the original STLC to deal with the new syntactic forms. Make sure Coq accepts the whole file. </li> </ul> </div> <div class="code code-tight"> <br/> <span class="comment">(*&nbsp;FILL&nbsp;IN&nbsp;HERE&nbsp;*)</span><br/> </div> <div class="doc"> <font size=-2>&#9744;</font> </div> <div class="code code-tight"> <br/> <span class="id" type="keyword">End</span> <span class="id" type="var">STLCArith</span>.<br/> <br/> </div> <div class="doc"> </div> <div class="code code-tight"> <br/> </div> </div> <div id="footer"> <hr/><a href="coqindex.html">Index</a></div> </div> </body> </html>
zchn/software-foundations-solutions
sf/StlcProp.html
HTML
cc0-1.0
123,457
<!doctype html> <html> <head> <title>Test setTargetAtTime Approach to Limit</title> <script src="../resources/js-test.js"></script> <script src="resources/compatibility.js"></script> <script src="resources/audio-testing.js"></script> <script src="resources/audioparam-testing.js"></script> </head> <body> <script> description("Test setTargetAtTime Approach to Limit"); window.jsTestIsAsync = true; var audit = Audit.createTaskRunner(); audit.defineTask("approach 1", function(done) { var sampleRate = 48000; // A really short time constant so that setTargetAtTime approaches the limiting value well // before the end of the test. var timeConstant = 0.001; // Find the time where setTargetAtTime is close enough to the limit. Since we're // approaching 1, use a value of eps smaller than kSetTargetThreshold (5e-7) in // AudioParamTimeline.cpp. This is to account for round-off in the actual implementation // (which uses a filter and not the formula.) var limitThreshold = 1e-7; runTest({ sampleRate: sampleRate, v0: 0, v1: 1, timeConstant: timeConstant, eps: limitThreshold, // Experimentally determined threshold: 2.4e-5 }).then(done); }) audit.defineTask("approach 0", function(done) { // Use the equation for setTargetAtTime to figure out when we are close to 0: // // v(t) = exp(-t/tau) // // So find t such that exp(-t/tau) <= eps. Thus t >= - tau * log(eps). // // For eps, use 1e-20 (kSetTargetZeroThreshold in AudioParamTimeline.cpp). var sampleRate = 48000; // A really short time constant so that setTargetAtTime approaches the limiting value well // before the end of the test. var timeConstant = 0.001; // Find the time where setTargetAtTime is close enough to the limit. Since we're // approaching 0, use a value of eps smaller than kSetTargetZeroThreshold (1e-20) in // AudioParamTimeline.cpp. This is to account for round-off in the actual implementation // (which uses a filter and not the formula.) var limitThreshold = 1e-21; runTest({ sampleRate: sampleRate, v0: 1, v1: 0, timeConstant: timeConstant, eps: limitThreshold, // Experimentally determined threshold: 1.3e-7 }).then(done); }); function findLimitTime(v0, v1, timeConstant, eps) { // Find the time at which the setTargetAtTime is close enough to the target value |v1| where // we can consider the curve to have reached its limiting value. // // If v1 = 0, |eps| is the absolute error between the actual value and // |v1|. Otherwise, |eps| is the relative error between the actual value and |v1|. // // The curve is // // v(t) = v1 - (v1 - v0) * exp(-t/timeConstant) // // If v1 = 0, // // v(t) = v0 * exp(-t/timeConstant) // // Solve this for when |v(t)| <= eps: // // t >= timeConstant * log(v0/eps) // // For v1 not zero, we want |v(t) - v1|/|v1| <= eps: // // t >= timeConstant * log(abs(v1-v0)/eps/v1) if (v1) return timeConstant * Math.log(Math.abs(v1-v0)/eps/v1); else return timeConstant * Math.log(v0/eps); } function runTest(options) { var renderLength = 1; var context = new OfflineAudioContext(1, renderLength * sampleRate, options.sampleRate); // A constant source var source = context.createBufferSource(); source.buffer = createConstantBuffer(context, 1, 1); source.loop = true; var gain = context.createGain(); gain.gain.setValueAtTime(options.v0, 0); gain.gain.setTargetAtTime(options.v1, 0, options.timeConstant); source.connect(gain); gain.connect(context.destination); source.start(); return context.startRendering().then(function (resultBuffer) { var actual = resultBuffer.getChannelData(0); var expected = createExponentialApproachArray(0, renderLength, options.v0, options.v1, options.sampleRate, options.timeConstant); var message = "setTargetAtTime(" + options.v1 + ", 0, " + options.timeConstant + ")"; // Determine where the tail of the curve begins. (Where the curve has basically reached // the limit value.) var tailTime = findLimitTime(options.v0, options.v1, options.timeConstant, options.eps); var tailFrame = Math.ceil(tailTime * options.sampleRate); var success = true; success = Should("Initial output of " + tailFrame + " samples for " + message, actual.slice(0, tailFrame), { numberOfArrayLog: 8 }) .beCloseToArray(expected.slice(0, tailFrame), options.threshold) && success; success = Should("Tail output for " + message, actual.slice(tailFrame)) .containValues([options.v1]) && success; if (success) testPassed(message + " had the expected values.\n"); else testFailed(message + " did not have the expected values.\n"); }); } audit.defineTask("finish", function (done) { finishJSTest(); done(); }); audit.runTasks(); </script> </body> </html>
axinging/chromium-crosswalk
third_party/WebKit/LayoutTests/webaudio/audioparam-setTargetAtTime-limit.html
HTML
bsd-3-clause
5,678
<!-- Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> <!-- HTML template for the body tag of index.html. It is rendered dynamically in brackets.js with Mustache and localized with the i18n RequireJS plugin. LOCALIZATION NOTE: All display text for this file must use templating so the text can be localized. English text goes in src/nls/root/strings.js. All other translations go in the strings.js file for the specific local in the nls folder. If a translation is missing for a specific key English is used as a fallback Strings should be referenced using the double brackets syntax. Example: {{keyname}}. Note, all strings are HTML escaped unless the form {{&keyname}} is used. --> <!-- Main UI: horizontal set of sidebar, main content vertical stack, and vertical toolbar --> <div class="main-view"> <div id="sidebar" class="sidebar panel quiet-scrollbars horz-resizable right-resizer collapsible" data-minsize="0" data-maxsize="80%" data-forceleft=".content"> <div class="working-set-splitview-btn btn-alt-quiet"></div> <div class="working-set-option-btn btn-alt-quiet"></div> <div id="working-set-list-container"> </div> <div id="project-files-header"> <span id="project-title" class="title"></span> </div> <div id="project-files-container"> <!-- This will contain a dynamically generated <ul> hierarchy at runtime --> </div> </div> <!-- Vertical stack of titlebar (in-browser), editor, bottom panels, status bar (status bar is injected later - see StatusBar.init()). Note: all children must be in a vertical stack with heights explicitly set in a fixed unit such as px (not percent/em/auto). If you change the height later, you must call WorkspaceManager.recomputeLayout() each time. Otherwise the layout will not get set correctly. Use WorkspaceManager to have this managed for you automatically. --> <div class="content"> <!-- Horizontal titlebar containing menus & filename when inBrowser --> <div id="titlebar" class="toolbar no-focus"> <!-- Menu bar --> <ul class="nav" data-dropdown="dropdown"> </ul> <!-- Filename label --> <div class="title-wrapper"> <span class="title"></span>&nbsp;<span class='dirty-dot' style="visibility:hidden;">•</span> </div> </div> <div id="editor-holder" {{#shouldAddAA}}class="subpixel-aa"{{/shouldAddAA}}> <!-- View Panes are programatically created here --> </div> <!-- Bottom panels and status bar are programmatically created here --> </div> <!-- Vertical toolbar docked to right --> <div id="main-toolbar" class="toolbar no-focus collapsible"> <!-- Top-aligned buttons --> <div class="buttons"> <a id="toolbar-go-live" href="#"></a> <!-- tooltip for this is set in JS --> <a id="toolbar-extension-manager" title="{{Strings.EXTENSION_MANAGER_TITLE}}" href="#"></a> <a id="update-notification" title="{{Strings.UPDATE_NOTIFICATION_TOOLTIP}}" href="#" style="display: none"></a> </div> <div class="bottom-buttons"></div> </div> <!-- Hack to ensure that the code editor's web font is loaded early. --> <!-- For more info, see note in brackets.less for class .dummy-text, or issue 76 --> <div class="dummy-text">x</div> </div> <!-- Modal Windows --> <div id="context-menu-bar"> <ul data-dropdown="dropdown"></ul> </div> <div id="codehint-menu-bar"> <ul data-dropdown="dropdown"></ul> </div> <div id="hidden-editors"></div>
Rajat-dhyani/brackets
src/htmlContent/main-view.html
HTML
mit
5,196
<!-- /* ** Copyright (c) 2012 The Khronos Group Inc. ** ** Permission is hereby granted, free of charge, to any person obtaining a ** copy of this software and/or associated documentation files (the ** "Materials"), to deal in the Materials without restriction, including ** without limitation the rights to use, copy, modify, merge, publish, ** distribute, sublicense, and/or sell copies of the Materials, and to ** permit persons to whom the Materials are furnished to do so, subject to ** the following conditions: ** ** The above copyright notice and this permission notice shall be included ** in all copies or substantial portions of the Materials. ** ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ --> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>WebGL FBO Lost Context Test</title> <link rel="stylesheet" href="../resources/js-test-style.css"/> <script src="../../debug/webgl-debug.js"></script> <script src="../resources/js-test-pre.js"></script> <script src="../conformance/resources/webgl-test-utils.js"></script> </head> <body> <div id="description"></div> <div id="console"></div> <script id="vshader" type="x-shader/x-vertex"> attribute vec4 vPosition; attribute vec2 texCoord0; uniform mat4 world; varying vec2 texCoord; void main() { gl_Position = vPosition * world; texCoord = texCoord0; } </script> <script id="fshader" type="x-shader/x-fragment"> precision mediump float; uniform sampler2D tex; varying vec2 texCoord; void main() { gl_FragColor = texture2D(tex, texCoord); } </script> <canvas id="canvas" width="1024" height="1024"> </canvas> <script> "use strict"; description("This test is to help see if an WebGL app *can* get lost context."); debug(""); debug("Canvas.getContext"); var wtu = WebGLTestUtils; var g_worldLoc; var g_texLoc; var g_textures = []; var gl = wtu.create3DContext("canvas"); if (!gl) { testFailed("context does not exist"); } else { testPassed("context exists"); debug(""); debug("Checking for out of memory handling."); var program = wtu.setupProgram(["vshader", "fshader"], ["vPosition", "texCoord0"]); var size = gl.getParameter(gl.MAX_RENDERBUFFER_SIZE); debug("max render buffer size: " + size); size = size / 2; debug("size used: " + size); var allocateFramebuffers = true; var itervalId; var count = 0; gl = WebGLDebugUtils.makeDebugContext(gl, function(err, functionName, args) { window.clearInterval(intervalId); assertMsg(err == gl.OUT_OF_MEMORY, "correctly returns gl.OUT_OF_MEMORY when out of memory"); finish(); }); function createFBO() { var tex = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, tex); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE); gl.texImage2D(gl.TEXTURE_2D, 0, // level gl.RGBA, // internalFormat size, // width size, // height 0, // border gl.RGBA, // format gl.UNSIGNED_BYTE, // type null); // data var fb = gl.createFramebuffer(); gl.bindFramebuffer(gl.FRAMEBUFFER, fb); gl.framebufferTexture2D( gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, tex, 0); var status = gl.checkFramebufferStatus(gl.FRAMEBUFFER); if (status != gl.FRAMEBUFFER_COMPLETE) { testFailed("gl.checkFramebufferStatus() returned " + WebGLDebugUtils.glEnumToString(status)); } return { fb: fb, tex: tex }; } gl.disable(gl.DEPTH_TEST); var numFBOs = 32; for (var ii = 0; ii < numFBOs; ++ii) { createFBO(); var t = createFBO(); tex = t.tex; fb = t.fb; gl.bindFramebuffer(gl.FRAMEBUFFER, fb); gl.scissor(0, 0, size, size); gl.clearColor(0, ii / numFBOs, 1 - ii / numFBOs, 1); gl.clear(gl.COLOR_BUFFER_BIT); g_textures.push(tex); } gl.bindFramebuffer(gl.FRAMEBUFFER, null); var vertexObject = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, vertexObject); gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([ -1,1,0, 1,1,0, -1,-1,0, -1,-1,0, 1,1,0, 1,-1,0 ]), gl.STATIC_DRAW); gl.enableVertexAttribArray(0); gl.vertexAttribPointer(0, 3, gl.FLOAT, false, 0, 0); var vertexObject = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, vertexObject); gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([ 0,0, 1,0, 0,1, 0,1, 1,0, 1,1 ]), gl.STATIC_DRAW); gl.enableVertexAttribArray(1); gl.vertexAttribPointer(1, 2, gl.FLOAT, false, 0, 0); gl.bindTexture(gl.TEXTURE_2D, tex); g_texLoc = gl.getUniformLocation(gl.program, "tex"); gl.uniform1i(g_texLoc, 0); g_worldLoc = gl.getUniformLocation(gl.program, "world"); gl.uniformMatrix4fv(g_worldLoc, false, [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR); setInterval(render, 1000/60); } var g_angle = 0; var g_texIndex = 0; function render() { g_angle += 0.1; g_texIndex++; if (g_texIndex >= g_textures.length) { g_texIndex = 0; } gl.bindTexture(gl.TEXTURE_2D, g_textures[g_texIndex]); gl.uniformMatrix4fv(g_worldLoc, false, rotationZ(g_angle)); gl.clearColor(1,0,0,1); gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT); gl.drawArrays(gl.TRIANGLES, 0, 6); } /** * Creates a 4-by-4 matrix which rotates around the z-axis by the given angle. * @param {number} angle The angle by which to rotate (in radians). * @return {!o3djs.math.Matrix4} The rotation matrix. */ function rotationZ(angle) { var c = Math.cos(angle); var s = Math.sin(angle); return [ c, s, 0, 0, -s, c, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]; }; debug(""); var successfullyParsed = true; </script> <script> "use strict"; </script> </body> </html>
yhe39/crosswalk-test-suite
webapi/webapi-webgl-khronos-tests/webgl/khronos/extra/fbo-lost-context.html
HTML
bsd-3-clause
6,722
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns:rsf="http://ponder.org.uk/rsf"> <head> <title>Double List Selection</title> <link href="../css/tool-default.css" type="text/css" rel="stylesheet" media="all" rsf:id="scr=contribute-style"/> <link href="../css/tool.css" type="text/css" rel="stylesheet" media="all" rsf:id="scr=contribute-style"/> <!-- Comment out YAHOO logger defns for production --> <link type="text/css" rel="stylesheet" href="../yui/logger/assets/logger.css" rsf:id="scr=contribute-style"/> <script type="text/javascript" src="../yui/yahoo/yahoo.js" rsf:id="scr=contribute-script"></script> <script type="text/javascript" src="../yui/dom/dom.js" rsf:id="scr=contribute-script"></script> <script type="text/javascript" src="../yui/event/event.js" rsf:id="scr=contribute-script"></script> <script type="text/javascript" src="../yui/dragdrop/dragdrop.js" rsf:id="scr=contribute-script"></script> <script type="text/javascript" src="../yui/logger/logger.js" rsf:id="scr=contribute-script"></script> <script type="text/javascript" src="../js/double-list-select.js" rsf:id="scr=contribute-script"></script> </head> <body> <div class="portletBody"> <h1>Double List Selection</h1> <!-- <script> //<![CDATA[ window.setTimeout(function() { var myLogReader1 = new YAHOO.widget.LogReader(null,{width: "60em", verboseOutput: false}); myLogReader1.formatMsg = function(oLogMsg) { var category = oLogMsg.category; return "<p><span class='"+category+"'>"+category+"</span> "+ this.html2Text(oLogMsg.msg)+"</p>"; }}, 10 ); //]]> </script> --> <!-- Implementation of double list input control, markup taken from http://www-personal.umich.edu/~gsilver/sak-ui-elements/html/inputDoubleList.html --> <form> <div id="input-doublelist:" rsf:id="input-doublelist:"> <table class="inputDoubleList" summary="layout"> <tr> <th><label rsf:id="label1" for="input-doublelist:list1">Source pick list</label></th> <th></th> <th><label rsf:id="label2" for="input-doublelist:list2">Destination pick list</label></th> </tr> <tr> <td> <select multiple="multiple" size="10" rsf:id="list1" id="input-doublelist:list1-selection" name="list1"> <option value="1a">Option 1a</option> <option value="2a">Option 2a</option> <option value="3a">Option 3a</option> <option value="4a">Option 4a</option> <option value="5a">Option 5a</option> </select> </td> <td> <span style="display:block;text-align:center"> Move selected </span> <span style="display:block;text-align:center"> <input type="button" id="input-doublelist:move-left" rsf:id="move-left" title="Move selected" value="&lt;"></input> <input type="button" id="input-doublelist:move-right" rsf:id="move-right" title="Move selected" value="&gt;"></input> </span> <span style="display:block;text-align:center"> Move all </span> <span style="display:block;text-align:center"> <input type="button" id="input-doublelist:move-all-left" rsf:id="move-all-left" title="Move all" value="&lt;&lt;"></input> <input type="button" id="input-doublelist:move-all-right" rsf:id="move-all-right" title="Move all" value="&gt;&gt;"></input> </span> </td> <td> <select multiple="multiple" size="10" rsf:id="list2" id="input-doublelist:list2-selection"> <option value="1b">Option 1b</option> </select> </td> </tr> </table> <script rsf:id="init-select"> DoubleList.init_DoubleList("input-doublelist:"); </script> </div> <input type="submit" rsf:id="submitbutton" value="Submit" /></form> </div> </body> </html>
ern/rsf
rsf-web/templates/src/webapp/content/templates/double-list-select.html
HTML
bsd-3-clause
3,900
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <!-- Meta, title, CSS, favicons, etc. --> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Gentallela Alela! | </title> <!-- Bootstrap core CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="fonts/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.min.css" rel="stylesheet"> <!-- Custom styling plus plugins --> <link href="css/custom.css" rel="stylesheet"> <link href="css/icheck/flat/green.css" rel="stylesheet"> <script src="js/jquery.min.js"></script> <!--[if lt IE 9]> <script src="../assets/js/ie8-responsive-file-warning.js"></script> <![endif]--> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!--[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 class="nav-md"> <div class="container body"> <div class="main_container"> <div class="col-md-3 left_col"> <div class="left_col scroll-view"> <div class="navbar nav_title" style="border: 0;"> <a href="index.html" class="site_title"><i class="fa fa-paw"></i> <span>Gentellela Alela!</span></a> </div> <div class="clearfix"></div> <!-- menu prile quick info --> <div class="profile"> <div class="profile_pic"> <img src="images/img.jpg" alt="..." class="img-circle profile_img"> </div> <div class="profile_info"> <span>Welcome,</span> <h2>John Doe</h2> </div> </div> <!-- /menu prile quick info --> <br /> <!-- sidebar menu --> <div id="sidebar-menu" class="main_menu_side hidden-print main_menu"> <div class="menu_section"> <h3>General</h3> <ul class="nav side-menu"> <li><a><i class="fa fa-home"></i> Home <span class="fa fa-chevron-down"></span></a> <ul class="nav child_menu" style="display: none"> <li><a href="index.html">Dashboard</a> </li> <li><a href="index2.html">Dashboard2</a> </li> <li><a href="index3.html">Dashboard3</a> </li> </ul> </li> <li><a><i class="fa fa-edit"></i> Forms <span class="fa fa-chevron-down"></span></a> <ul class="nav child_menu" style="display: none"> <li><a href="form.html">General Form</a> </li> <li><a href="form_advanced.html">Advanced Components</a> </li> <li><a href="form_validation.html">Form Validation</a> </li> <li><a href="form_wizards.html">Form Wizard</a> </li> <li><a href="form_upload.html">Form Upload</a> </li> <li><a href="form_buttons.html">Form Buttons</a> </li> </ul> </li> <li><a><i class="fa fa-desktop"></i> UI Elements <span class="fa fa-chevron-down"></span></a> <ul class="nav child_menu" style="display: none"> <li><a href="general_elements.html">General Elements</a> </li> <li><a href="media_gallery.html">Media Gallery</a> </li> <li><a href="typography.html">Typography</a> </li> <li><a href="icons.html">Icons</a> </li> <li><a href="glyphicons.html">Glyphicons</a> </li> <li><a href="widgets.html">Widgets</a> </li> <li><a href="invoice.html">Invoice</a> </li> <li><a href="inbox.html">Inbox</a> </li> <li><a href="calender.html">Calender</a> </li> </ul> </li> <li><a><i class="fa fa-table"></i> Tables <span class="fa fa-chevron-down"></span></a> <ul class="nav child_menu" style="display: none"> <li><a href="tables.html">Tables</a> </li> <li><a href="tables_dynamic.html">Table Dynamic</a> </li> </ul> </li> <li><a><i class="fa fa-bar-chart-o"></i> Data Presentation <span class="fa fa-chevron-down"></span></a> <ul class="nav child_menu" style="display: none"> <li><a href="chartjs.html">Chart JS</a> </li> <li><a href="chartjs2.html">Chart JS2</a> </li> <li><a href="morisjs.html">Moris JS</a> </li> <li><a href="echarts.html">ECharts </a> </li> <li><a href="other_charts.html">Other Charts </a> </li> </ul> </li> </ul> </div> <div class="menu_section"> <h3>Live On</h3> <ul class="nav side-menu"> <li><a><i class="fa fa-bug"></i> Additional Pages <span class="fa fa-chevron-down"></span></a> <ul class="nav child_menu" style="display: none"> <li><a href="e_commerce.html">E-commerce</a> </li> <li><a href="projects.html">Projects</a> </li> <li><a href="project_detail.html">Project Detail</a> </li> <li><a href="contacts.html">Contacts</a> </li> <li><a href="profile.html">Profile</a> </li> </ul> </li> <li><a><i class="fa fa-windows"></i> Extras <span class="fa fa-chevron-down"></span></a> <ul class="nav child_menu" style="display: none"> <li><a href="page_404.html">404 Error</a> </li> <li><a href="page_500.html">500 Error</a> </li> <li><a href="plain_page.html">Plain Page</a> </li> <li><a href="login.html">Login Page</a> </li> <li><a href="pricing_tables.html">Pricing Tables</a> </li> </ul> </li> <li><a><i class="fa fa-laptop"></i> Landing Page <span class="label label-success pull-right">Coming Soon</span></a> </li> </ul> </div> </div> <!-- /sidebar menu --> <!-- /menu footer buttons --> <div class="sidebar-footer hidden-small"> <a data-toggle="tooltip" data-placement="top" title="Settings"> <span class="glyphicon glyphicon-cog" aria-hidden="true"></span> </a> <a data-toggle="tooltip" data-placement="top" title="FullScreen"> <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span> </a> <a data-toggle="tooltip" data-placement="top" title="Lock"> <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span> </a> <a data-toggle="tooltip" data-placement="top" title="Logout"> <span class="glyphicon glyphicon-off" aria-hidden="true"></span> </a> </div> <!-- /menu footer buttons --> </div> </div> <!-- top navigation --> <div class="top_nav"> <div class="nav_menu"> <nav class="" role="navigation"> <div class="nav toggle"> <a id="menu_toggle"><i class="fa fa-bars"></i></a> </div> <ul class="nav navbar-nav navbar-right"> <li class=""> <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> <img src="images/img.jpg" alt="">John Doe <span class=" fa fa-angle-down"></span> </a> <ul class="dropdown-menu dropdown-usermenu animated fadeInDown pull-right"> <li><a href="javascript:;"> Profile</a> </li> <li> <a href="javascript:;"> <span class="badge bg-red pull-right">50%</span> <span>Settings</span> </a> </li> <li> <a href="javascript:;">Help</a> </li> <li><a href="login.html"><i class="fa fa-sign-out pull-right"></i> Log Out</a> </li> </ul> </li> <li role="presentation" class="dropdown"> <a href="javascript:;" class="dropdown-toggle info-number" data-toggle="dropdown" aria-expanded="false"> <i class="fa fa-envelope-o"></i> <span class="badge bg-green">6</span> </a> <ul id="menu1" class="dropdown-menu list-unstyled msg_list animated fadeInDown" role="menu"> <li> <a> <span class="image"> <img src="images/img.jpg" alt="Profile Image" /> </span> <span> <span>John Smith</span> <span class="time">3 mins ago</span> </span> <span class="message"> Film festivals used to be do-or-die moments for movie makers. They were where... </span> </a> </li> <li> <a> <span class="image"> <img src="images/img.jpg" alt="Profile Image" /> </span> <span> <span>John Smith</span> <span class="time">3 mins ago</span> </span> <span class="message"> Film festivals used to be do-or-die moments for movie makers. They were where... </span> </a> </li> <li> <a> <span class="image"> <img src="images/img.jpg" alt="Profile Image" /> </span> <span> <span>John Smith</span> <span class="time">3 mins ago</span> </span> <span class="message"> Film festivals used to be do-or-die moments for movie makers. They were where... </span> </a> </li> <li> <a> <span class="image"> <img src="images/img.jpg" alt="Profile Image" /> </span> <span> <span>John Smith</span> <span class="time">3 mins ago</span> </span> <span class="message"> Film festivals used to be do-or-die moments for movie makers. They were where... </span> </a> </li> <li> <div class="text-center"> <a> <strong>See All Alerts</strong> <i class="fa fa-angle-right"></i> </a> </div> </li> </ul> </li> </ul> </nav> </div> </div> <!-- /top navigation --> <!-- page content --> <div class="right_col" role="main"> <div class=""> <div class="page-title"> <div class="title_left"> <h3>Projects <small>Listing design</small></h3> </div> <div class="title_right"> <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search for..."> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </div> </div> <div class="clearfix"></div> <div class="row"> <div class="col-md-12"> <div class="x_panel"> <div class="x_title"> <h2>Projects</h2> <ul class="nav navbar-right panel_toolbox"> <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a> <ul class="dropdown-menu" role="menu"> <li><a href="#">Settings 1</a> </li> <li><a href="#">Settings 2</a> </li> </ul> </li> <li><a class="close-link"><i class="fa fa-close"></i></a> </li> </ul> <div class="clearfix"></div> </div> <div class="x_content"> <p>Simple table with project listing with progress and editing options</p> <!-- start project list --> <table class="table table-striped projects"> <thead> <tr> <th style="width: 1%">#</th> <th style="width: 20%">Project Name</th> <th>Team Members</th> <th>Project Progress</th> <th>Status</th> <th style="width: 20%">#Edit</th> </tr> </thead> <tbody> <tr> <td>#</td> <td> <a>Pesamakini Backend UI</a> <br /> <small>Created 01.01.2015</small> </td> <td> <ul class="list-inline"> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> </ul> </td> <td class="project_progress"> <div class="progress progress_sm"> <div class="progress-bar bg-green" role="progressbar" data-transitiongoal="57"></div> </div> <small>57% Complete</small> </td> <td> <button type="button" class="btn btn-success btn-xs">Success</button> </td> <td> <a href="#" class="btn btn-primary btn-xs"><i class="fa fa-folder"></i> View </a> <a href="#" class="btn btn-info btn-xs"><i class="fa fa-pencil"></i> Edit </a> <a href="#" class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i> Delete </a> </td> </tr> <tr> <td>#</td> <td> <a>Pesamakini Backend UI</a> <br /> <small>Created 01.01.2015</small> </td> <td> <ul class="list-inline"> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> </ul> </td> <td class="project_progress"> <div class="progress progress_sm"> <div class="progress-bar bg-green" role="progressbar" data-transitiongoal="47"></div> </div> <small>47% Complete</small> </td> <td> <button type="button" class="btn btn-success btn-xs">Success</button> </td> <td> <a href="#" class="btn btn-primary btn-xs"><i class="fa fa-folder"></i> View </a> <a href="#" class="btn btn-info btn-xs"><i class="fa fa-pencil"></i> Edit </a> <a href="#" class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i> Delete </a> </td> </tr> <tr> <td>#</td> <td> <a>Pesamakini Backend UI</a> <br /> <small>Created 01.01.2015</small> </td> <td> <ul class="list-inline"> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> </ul> </td> <td class="project_progress"> <div class="progress progress_sm"> <div class="progress-bar bg-green" role="progressbar" data-transitiongoal="77"></div> </div> <small>77% Complete</small> </td> <td> <button type="button" class="btn btn-success btn-xs">Success</button> </td> <td> <a href="#" class="btn btn-primary btn-xs"><i class="fa fa-folder"></i> View </a> <a href="#" class="btn btn-info btn-xs"><i class="fa fa-pencil"></i> Edit </a> <a href="#" class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i> Delete </a> </td> </tr> <tr> <td>#</td> <td> <a>Pesamakini Backend UI</a> <br /> <small>Created 01.01.2015</small> </td> <td> <ul class="list-inline"> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> </ul> </td> <td class="project_progress"> <div class="progress progress_sm"> <div class="progress-bar bg-green" role="progressbar" data-transitiongoal="60"></div> </div> <small>60% Complete</small> </td> <td> <button type="button" class="btn btn-success btn-xs">Success</button> </td> <td> <a href="#" class="btn btn-primary btn-xs"><i class="fa fa-folder"></i> View </a> <a href="#" class="btn btn-info btn-xs"><i class="fa fa-pencil"></i> Edit </a> <a href="#" class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i> Delete </a> </td> </tr> <tr> <td>#</td> <td> <a>Pesamakini Backend UI</a> <br /> <small>Created 01.01.2015</small> </td> <td> <ul class="list-inline"> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> </ul> </td> <td class="project_progress"> <div class="progress progress_sm"> <div class="progress-bar bg-green" role="progressbar" data-transitiongoal="12"></div> </div> <small>12% Complete</small> </td> <td> <button type="button" class="btn btn-success btn-xs">Success</button> </td> <td> <a href="#" class="btn btn-primary btn-xs"><i class="fa fa-folder"></i> View </a> <a href="#" class="btn btn-info btn-xs"><i class="fa fa-pencil"></i> Edit </a> <a href="#" class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i> Delete </a> </td> </tr> <tr> <td>#</td> <td> <a>Pesamakini Backend UI</a> <br /> <small>Created 01.01.2015</small> </td> <td> <ul class="list-inline"> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> </ul> </td> <td class="project_progress"> <div class="progress progress_sm"> <div class="progress-bar bg-green" role="progressbar" data-transitiongoal="35"></div> </div> <small>35% Complete</small> </td> <td> <button type="button" class="btn btn-success btn-xs">Success</button> </td> <td> <a href="#" class="btn btn-primary btn-xs"><i class="fa fa-folder"></i> View </a> <a href="#" class="btn btn-info btn-xs"><i class="fa fa-pencil"></i> Edit </a> <a href="#" class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i> Delete </a> </td> </tr> <tr> <td>#</td> <td> <a>Pesamakini Backend UI</a> <br /> <small>Created 01.01.2015</small> </td> <td> <ul class="list-inline"> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> </ul> </td> <td class="project_progress"> <div class="progress progress_sm"> <div class="progress-bar bg-green" role="progressbar" data-transitiongoal="87"></div> </div> <small>87% Complete</small> </td> <td> <button type="button" class="btn btn-success btn-xs">Success</button> </td> <td> <a href="#" class="btn btn-primary btn-xs"><i class="fa fa-folder"></i> View </a> <a href="#" class="btn btn-info btn-xs"><i class="fa fa-pencil"></i> Edit </a> <a href="#" class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i> Delete </a> </td> </tr> <tr> <td>#</td> <td> <a>Pesamakini Backend UI</a> <br /> <small>Created 01.01.2015</small> </td> <td> <ul class="list-inline"> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> </ul> </td> <td class="project_progress"> <div class="progress progress_sm"> <div class="progress-bar bg-green" role="progressbar" data-transitiongoal="77"></div> </div> <small>77% Complete</small> </td> <td> <button type="button" class="btn btn-success btn-xs">Success</button> </td> <td> <a href="#" class="btn btn-primary btn-xs"><i class="fa fa-folder"></i> View </a> <a href="#" class="btn btn-info btn-xs"><i class="fa fa-pencil"></i> Edit </a> <a href="#" class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i> Delete </a> </td> </tr> <tr> <td>#</td> <td> <a>Pesamakini Backend UI</a> <br /> <small>Created 01.01.2015</small> </td> <td> <ul class="list-inline"> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> <li> <img src="images/user.png" class="avatar" alt="Avatar"> </li> </ul> </td> <td class="project_progress"> <div class="progress progress_sm"> <div class="progress-bar bg-green" role="progressbar" data-transitiongoal="77"></div> </div> <small>77% Complete</small> </td> <td> <button type="button" class="btn btn-success btn-xs">Success</button> </td> <td> <a href="#" class="btn btn-primary btn-xs"><i class="fa fa-folder"></i> View </a> <a href="#" class="btn btn-info btn-xs"><i class="fa fa-pencil"></i> Edit </a> <a href="#" class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i> Delete </a> </td> </tr> </tbody> </table> <!-- end project list --> </div> </div> </div> </div> </div> <!-- footer content --> <footer> <div class="copyright-info"> <p class="pull-right">Gentelella - Bootstrap Admin Template by <a href="https://colorlib.com">Colorlib</a> </p> </div> <div class="clearfix"></div> </footer> <!-- /footer content --> </div> <!-- /page content --> </div> </div> <div id="custom_notifications" class="custom-notifications dsp_none"> <ul class="list-unstyled notifications clearfix" data-tabbed_notifications="notif-group"> </ul> <div class="clearfix"></div> <div id="notif-group" class="tabbed_notifications"></div> </div> <script src="js/bootstrap.min.js"></script> <!-- bootstrap progress js --> <script src="js/progressbar/bootstrap-progressbar.min.js"></script> <script src="js/nicescroll/jquery.nicescroll.min.js"></script> <!-- icheck --> <script src="js/icheck/icheck.min.js"></script> <script src="js/custom.js"></script> <!-- pace --> <script src="js/pace/pace.min.js"></script> </body> </html>
bvaugusto/petadoption
template/gentelella/production/projects.html
HTML
mit
33,084
<!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" /> <title>Test</title> <!--[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]--> <script src="../../lib/jquery.min.js"></script> <link rel="stylesheet" href="../../lib/qunit.css"> <script src="../../lib/qunit.js"></script> <script src="../../../dist/browser/bootlint.js"></script> <script src="../generic-qunit.js"></script> </head> <body> <span class="glyphicon glyphicon-asterisk"><span id="bad-child"></span></span> <div id="qunit"></div> <ol id="bootlint"> <li data-lint="Glyphicon classes must only be used on elements that contain no text content and have no child elements."></li> </ol> </body> </html>
jmwenda/feedbunch
vendor/assets/bower_components/bootlint/test/fixtures/glyphicons/on-elem-with-child.html
HTML
mit
1,102
<html> <head><title>Image map example</title></head> <body> <map name="GraphPieChartMap"> <area shape="poly" coords="16,29,15,30,15,31,15,32,14,33,13,34,12,35,11,35,10,35,9,36,7,35,6,35,5,35,4,34,3,33,2,32,2,31,2,30,2,29,2,27,2,26,2,25,3,24,4,23,5,22,6,22,7,22,8,22,10,22,11,22,12,22,13,23,14,24,15,25,15,26,15,27" href="http://example.org/mozilla" alt="Mozilla" /> <area shape="poly" coords="17,22,78,22,78,36,17,36" href="http://example.org/mozilla" alt="Mozilla" /> <area shape="poly" coords="16,47,15,48,15,49,15,50,14,51,13,52,12,53,11,53,10,53,9,54,7,53,6,53,5,53,4,52,3,51,2,50,2,49,2,48,2,47,2,45,2,44,2,43,3,42,4,41,5,40,6,40,7,40,8,40,10,40,11,40,12,40,13,41,14,42,15,43,15,44,15,45" href="http://example.org/" alt="Explorer" /> <area shape="poly" coords="17,40,78,40,78,54,17,54" href="http://example.org/" alt="Explorer" /> <area shape="poly" coords="16,65,15,66,15,67,15,68,14,69,13,70,12,71,11,71,10,71,9,72,7,71,6,71,5,71,4,70,3,69,2,68,2,67,2,66,2,65,2,63,2,62,2,61,3,60,4,59,5,58,6,58,7,58,8,58,10,58,11,58,12,58,13,59,14,60,15,61,15,62,15,63" href="http://example.org/" alt="Opera" /> <area shape="poly" coords="17,58,78,58,78,72,17,72" href="http://example.org/" alt="Opera" /> <area shape="poly" coords="16,83,15,84,15,85,15,86,14,87,13,88,12,89,11,89,10,89,9,90,7,89,6,89,5,89,4,88,3,87,2,86,2,85,2,84,2,83,2,81,2,80,2,79,3,78,4,77,5,76,6,76,7,76,8,76,10,76,11,76,12,76,13,77,14,78,15,79,15,80,15,81" href="http://example.org/" alt="Safari" /> <area shape="poly" coords="17,76,78,76,78,90,17,90" href="http://example.org/" alt="Safari" /> <area shape="poly" coords="16,101,15,102,15,103,15,104,14,105,13,106,12,107,11,107,10,107,9,108,7,107,6,107,5,107,4,106,3,105,2,104,2,103,2,102,2,101,2,99,2,98,2,97,3,96,4,95,5,94,6,94,7,94,8,94,10,94,11,94,12,94,13,95,14,96,15,97,15,98,15,99" href="http://example.org/" alt="Konqueror" /> <area shape="poly" coords="17,94,78,94,78,108,17,108" href="http://example.org/" alt="Konqueror" /> <area shape="poly" coords="240,110,312,110,310,122,307,134,302,146,295,156,286,165,276,172,264,177,252,180,240,182,227,180,215,177,204,172,193,165,184,156,177,146,172,134,169,122,168,110,169,97,172,85,177,74,178,72" href="http://example.org/mozilla" alt="Mozilla" /> <area shape="poly" coords="80,178,206,178,206,196,80,196" href="http://example.org/mozilla" alt="Mozilla" /> <area shape="poly" coords="240,110,178,72,185,62,194,54,205,47,216,41,228,38,241,38,253,39,265,42,277,48,287,55,295,64,302,75,303,75" href="http://example.org/" alt="Explorer" /> <area shape="poly" coords="252,21,400,21,400,39,252,39" href="http://example.org/" alt="Explorer" /> <area shape="poly" coords="240,110,303,75,308,87,310,94" href="http://example.org/" alt="Opera" /> <area shape="poly" coords="326,72,400,72,400,90,326,90" href="http://example.org/" alt="Opera" /> <area shape="poly" coords="240,110,310,94,311,103" href="http://example.org/" alt="Safari" /> <area shape="poly" coords="331,90,400,90,400,108,331,108" href="http://example.org/" alt="Safari" /> <area shape="poly" coords="240,110,311,103,312,109" href="http://example.org/" alt="Konqueror" /> <area shape="poly" coords="331,108,400,108,400,126,331,126" href="http://example.org/" alt="Konqueror" /> </map> <img src="tutorial_example_29.png" width="400" height="200" usemap="#GraphPieChartMap" /> </body> </html>
oscartorresco/SIGivet
src/SIGivetBundle/Resources/public/Graph/docs/img/tutorial_reference_gd.html
HTML
mit
3,367
<div class="form-horizontal no-margin-top" name="keyForm" novalidate kc-read-only="!client.access.configure" data-ng-controller="ClientSignedJWTCtrl"> <div class="form-group"> <label class="col-md-2 control-label" for="tokenEndpointAuthSigningAlg">{{:: 'token-endpoint-auth-signing-alg' | translate}}</label> <div class="col-sm-6"> <div> <select class="form-control" id="tokenEndpointAuthSigningAlg" ng-model="tokenEndpointAuthSigningAlg"> <option value=""></option> <option ng-repeat="provider in serverInfo.listProviderIds('clientSignature')" value="{{provider}}">{{provider}}</option> </select> </div> </div> <kc-tooltip>{{:: 'token-endpoint-auth-signing-alg.tooltip' | translate}}</kc-tooltip> </div> <div class="form-group"> <label class="col-md-2 control-label"></label> <div class="col-sm-6"> <div class="row"> <div class="col-sm-12">{{:: 'need-to-configure-keys' | translate}}</div> </div> </div> </div> </div>
keycloak/keycloak
themes/src/main/resources/theme/base/admin/resources/partials/client-credentials-jwt.html
HTML
apache-2.0
1,165
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <html> <head> <script src="resources/SVGTestCase.js"></script> <script src="../../resources/js-test.js"></script> <script src="../../paint/invalidation/resources/text-based-repaint.js"></script> </head> <body onload="runRepaintTest()"> <h1>SVG 1.1 dynamic update tests</h1> <p id="description"></p> <div id="console"></div> <script src="script-tests/SVGLinearGradientElement-svgdom-x2-prop.js"></script> </body> </html>
scheib/chromium
third_party/blink/web_tests/svg/dynamic-updates/SVGLinearGradientElement-svgdom-x2-prop.html
HTML
bsd-3-clause
467
<!doctype html> <html lang="en" ng-csp> <head> <meta charset="UTF-8"> <title>Example - example-example.csp-production</title> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js"></script> <script src="script.js"></script> </head> <body ng-app="cspExample"> <div ng-controller="MainController as ctrl"> <div> <button ng-click="ctrl.inc()" id="inc">Increment</button> <span id="counter"> {{ctrl.counter}} </span> </div> <div> <button ng-click="ctrl.evil()" id="evil">Evil</button> <span id="evilError"> {{ctrl.evilError}} </span> </div> </div> </body> </html>
confapp/data_manager
vendor/angular-1.4.8/docs/examples/example-example.csp/index-production.html
HTML
mit
648
{% load comments i18n %} <form action="{% comment_form_target %}" method="post">{% csrf_token %} <input type="hidden" name="next" value="{{ request.path }}" /> {% for field in form %} {% if field.is_hidden %} {{ field }} {% else %} {% if field.errors %}{{ field.errors }}{% endif %} <p {% if field.errors %} class="error"{% endif %} {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}> {% ifequal field.name "comment" %} {{ field.label_tag }} {{ field }}{% endifequal %} </p> {% endif %} {% endfor %} <p class="submit"> <input type="submit" name="post" class="submit-post" value="{% trans "Post comment" %}" /> </p> </form>
alonisser/Open-Knesset
templates/comments/form.html
HTML
bsd-3-clause
724
<h1><code ng:non-bindable="">$interpolate</code> <span class="hint">(service in module <code ng:non-bindable="">ng</code> )</span> </h1> <div><a href="http://github.com/angular/angular.js/edit/master/src/ng/interpolate.js" class="improve-docs btn btn-primary">Improve this doc</a><h2 id="Description">Description</h2> <div class="description"><p>Compiles a string with markup into an interpolation function. This service is used by the HTML <a href="api/ng.$compile"><code>$compile</code></a> service for data binding. See <a href="api/ng.$interpolateProvider"><code>$interpolateProvider</code></a> for configuring the interpolation markup.</p> <pre><code> <pre class="prettyprint linenums"> var $interpolate = ...; // injected var exp = $interpolate('Hello {{name}}!'); expect(exp({name:'Angular'}).toEqual('Hello Angular!'); </pre> </code></pre></div> <h2 id="Dependencies">Dependencies</h2> <ul class="dependencies"><li><code ng:non-bindable=""><a href="api/ng.$parse">$parse</a></code> </li> </ul> <h2 id="Usage">Usage</h2> <div class="usage"><pre class="prettyprint linenums">$interpolate(text[, mustHaveExpression]);</pre> <h3 id="Parameters">Parameters</h3> <ul class="parameters"><li><code ng:non-bindable="">text – {string} – </code> <p>The text with markup to interpolate.</p></li> <li><code ng:non-bindable="">mustHaveExpression<i>(optional)</i> – {boolean=} – </code> <p>if set to true then the interpolation string must have embedded expression in order to return an interpolation function. Strings with no embedded expression will return null for the interpolation function.</p></li> </ul> <h3 id="Returns">Returns</h3> <div class="returns"><code ng:non-bindable="">{function(context)}</code> – <p>an interpolation function which is used to compute the interpolated string. The function has these parameters:</p> <ul> <li><code>context</code>: an object against which any expressions embedded in the strings are evaluated against.</li> </ul></div> </div> <div class="member method"><h2 id="Methods">Methods</h2> <ul class="methods"><li><h3 id="endSymbol">endSymbol()</h3> <div class="endsymbol"><p>Symbol to denote the end of expression in the interpolated string. Defaults to <code>}}</code>.</p> <p>Use <a href="api/ng.$interpolateProvider#endSymbol"><code>$interpolateProvider#endSymbol</code></a> to change the symbol.</p><h4 id="Returns">Returns</h4> <div class="returns"><code ng:non-bindable="">{string}</code> – <p>start symbol.</p></div> </div> </li> <li><h3 id="startSymbol">startSymbol()</h3> <div class="startsymbol"><p>Symbol to denote the start of expression in the interpolated string. Defaults to <code>{{</code>.</p> <p>Use <a href="api/ng.$interpolateProvider#startSymbol"><code>$interpolateProvider#startSymbol</code></a> to change the symbol.</p><h4 id="Returns">Returns</h4> <div class="returns"><code ng:non-bindable="">{string}</code> – <p>start symbol.</p></div> </div> </li> </ul> </div> </div>
kristenhazard/coaching-carousel-js
vendor/angular-1.0.7/docs/partials/api/ng.$interpolate.html
HTML
mit
2,988
@(title: String, pages: List[lila.wiki.Page])(body: Html)(implicit ctx: Context) @moreCss = { @cssTag("wiki.css") } @side = { <div class="sidebar"> @wiki.menu(pages) </div> } @base.layout( title = title, moreCss = moreCss, side = side.some) { <div id="wiki">@body</div> }
JimmyMow/lila
app/views/wiki/layout.scala.html
HTML
mit
277
<link rel="stylesheet" href="data:text/css,"> <embed id="plug-in" type="application/x-webkit-test-netscape" width=100 height=100></embed> <p id="result"> </p> <script> if (window.testRunner) testRunner.dumpAsText(); var plugIn = document.getElementById("plug-in"); document.getElementById("result").innerText = ("eventLoggingEnabled" in plugIn) ? "PASS: Plug-in instance available while waiting for style sheets to load" : "FAIL: Plug-in not instantiated on property access while waiting for style sheets to load"; </script>
nwjs/blink
LayoutTests/plugins/instance-available-before-stylesheets-loaded.html
HTML
bsd-3-clause
564
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Example - example-example97-debug</title> <script src="../../../angular.js"></script> </head> <body ng-app="customInterpolationApp"> <script> var customInterpolationApp = angular.module('customInterpolationApp', []); customInterpolationApp.config(function($interpolateProvider) { $interpolateProvider.startSymbol('//'); $interpolateProvider.endSymbol('//'); }); customInterpolationApp.controller('DemoController', function() { this.label = "This binding is brought you by // interpolation symbols."; }); </script> <div ng-app="App" ng-controller="DemoController as demo"> //demo.label// </div> </body> </html>
viral810/ngSimpleCMS
web/bundles/sunraangular/js/angular/angular-1.2.27/docs/examples/example-example97/index-debug.html
HTML
mit
729
<!DOCTYPE HTML> <!-- about:version template page --> <html id="t" i18n-values="dir:textdirection;"> <head> <title>About Version</title> <style>/* Copyright (c) 2012 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ body { background-color: white; color: black; font-family: Helvetica,Arial,sans-serif; margin: 0; } #outer { margin-left: auto; margin-right: auto; margin-top: 10px; width: 820px; } #inner { padding-top: 10px; width: 550px; } .label { -webkit-padding-end: 5px; font-size: 0.9em; font-weight: bold; text-align: end; white-space: nowrap; } .label:after { content: ':'; } #logo { float: right; margin-left: 40px; text-align: right; width: 200px; } #company { font-size: 0.7em; text-align: right; } #copyright { font-size: 0.7em; text-align: right; } .value { font-family: monospace; max-width: 430px; padding-left: 5px; } </style> </head> <body> <div id="outer"> <div id="logo"> <div id="company">Chromium Embedded Framework (CEF)</div> <div id="copyright">Copyright &copy; $$YEAR$$ The Chromium Embedded Framework Authors.<br/>All rights reserved.<br/><a href="chrome://license">license</a> | <a href="chrome://credits">credits</a></div> </div> <table id="inner" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="label" valign="top">CEF</td> <td class="value">$$CEF$$</td> </tr> <tr> <td class="label" valign="top">Chromium</td> <td class="value">$$CHROMIUM$$</td> </tr> <tr> <td class="label" valign="top">OS</td> <td class="value">$$OS$$</td> </tr> <tr> <td class="label" valign="top">WebKit</td> <td class="value">$$WEBKIT$$</td> </tr> <tr> <td class="label" valign="top">JavaScript</td> <td class="value">$$JAVASCRIPT$$</td> </tr> <tr><td class="label" valign="top">Flash</td> <td class="value" id="flash">$$FLASH$$</td> </tr> <tr> <td class="label" valign="top">User Agent</td> <td class="value">$$USERAGENT$$</td> </tr> <tr> <td class="label" valign="top">Command Line</td> <td class="value">$$COMMANDLINE$$</td> </tr> <tr> <td class="label" valign="top">Module Path</td> <td class="value">$$MODULEPATH$$</td> </tr> <tr> <td class="label" valign="top">Cache Path</td> <td class="value">$$CACHEPATH$$</td> </tr> </table> </div> </body> </html>
amikey/chromium
libcef/resources/about_version.html
HTML
bsd-3-clause
2,758
<!doctype html> <title>Testing if integer interpolation is rounded towards positive infinity</title> <link rel="author" title="Joonghun Park" href="[email protected]"> <link rel="help" href="https://drafts.csswg.org/css-values-4/#combine-integers"> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <style> #flex-container { display: flex; animation: anim-order 4s steps(4) forwards 1; animation-delay: -1s; animation-play-state: paused; } @keyframes anim-order { from { order: -2; } to { order: 0; } } </style> <div id="flex-container"></div> <script> var test_description = "Integer interpolation should be rounded towards positive infinity"; test( t => { const container = document.getElementById("flex-container"); const order_value = Number.parseFloat(getComputedStyle(container).getPropertyValue('order')); assert_equals(order_value, -1, "Interpolation result for order should be rounded towards positive infinity"); }, test_description ); </script>
scheib/chromium
third_party/blink/web_tests/external/wpt/css/css-values/integer_interpolation_round_half_towards_positive_infinity_order.html
HTML
bsd-3-clause
1,085
<!doctype html public "-//w3c//dtd html 4.0 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"> </head> <body> Codec to support Lucene 3.x indexes (readonly) </body> </html>
williamchengit/TestRepo
solr-4.9.0/lucene/core/src/java/org/apache/lucene/codecs/lucene3x/package.html
HTML
apache-2.0
1,007
<hr /> <ul> <li> <p>as if</p> </li> <li> <p>as if2</p> </li> </ul> <hr /> <ul> <li> <p>as if</p> </li> <li> <p>as if2</p> </li> </ul> <hr /> <ul> <li>as if non_code</li> <li>as if2</li> </ul> <p>Markdown</p> <ul> <li> <p>Python is ok</p> <ul> <li>Therefore i am</li> </ul> </li> <li> <p>Perl sucks big time</p> <ul> <li>But that's ok</li> </ul> </li> <li> <p>Python is ok Or not?</p> </li> </ul> <p>Here is a normal paragraph</p> <ol> <li>Another list with a bunch of items</li> <li> <p>Mostly fruits</p> <ol> <li>Apple</li> <li>Pare</li> </ol> </li> </ol> <p>asdfasdfasd</p> <pre><code># This is a code example import stuff Another code example * Lists and similar stuff &gt; Should be ignored </code></pre>
Situphen/Python-ZMarkdown
tests/misc/some-test.html
HTML
bsd-3-clause
726
<!DOCTYPE HTML> <link rel="stylesheet" href="resources/svg_tests.css"> <h2><a href="http://www.w3.org/html/wg/drafts/srcset/w3c-srcset">srcset</a> testcases for SVG</h2> <div class="test"> <h3>PNG with explicit dimensions - 4x</h3> <div class="expected">expected<br/> <img src="resources/srcset.png" width="100" height="50"> </div> <div class="actual">actual<br/> <img src="resources/srcset.png" width="100" height="50"> </div> This test should show a PNG image of size 100x50, and intrinsic/natural size 50x25. The left half of the image should be red and there should be a black circle in the center.<br/> <code class="stats" id="code8"></code> <br clear="all"/> </div> <script src="resources/print_img_failure.js"></script>
chromium/chromium
third_party/blink/web_tests/fast/hidpi/image-srcset-png-4-expected.html
HTML
bsd-3-clause
775
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>new (GData::Client::CaptchaError)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File lib/gdata/client.rb, line 33</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">token</span>, <span class="ruby-identifier">url</span>) <span class="ruby-ivar">@token</span> = <span class="ruby-identifier">token</span> <span class="ruby-ivar">@url</span> = <span class="ruby-identifier">url</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
ryandotsmith/gcal_push
lib/gdata/doc/classes/GData/Client/CaptchaError.src/M000001.html
HTML
mit
962
{% extends "account/base.html" %} {% load url from future %} {% load i18n %} {% load bootstrap %} {% block head_title %}{% trans "Account" %}{% endblock %} {% block account_nav_email %}active{% endblock %} {% block account_content %} {% if user.emailaddress_set.all %} <p>{% trans 'The following e-mail addresses are associated to your account:' %}</p> <form action="{% url 'account_email' %}" class="email_list uniForm" method="post"> {% csrf_token %} <table class="table"> <thead> <tr> <th> {% trans 'E-mail' %} </th> <th> {% trans 'Status' %} </th> </tr> </thead> <tbody> {% for emailaddress in user.emailaddress_set.all %} <tr> <td> <label class="radio" for="email_radio_{{forloop.counter}}" class="{% if emailaddress.primary %}primary_email{%endif%}"> <input id="email_radio_{{forloop.counter}}" type="radio" name="email" {% if emailaddress.primary %}checked="checked"{%endif %} value="{{emailaddress.email}}"/> {{ emailaddress.email }} </label> </td> <td> {% if emailaddress.verified %} <span class="label label-info">{% trans "Verified" %}</span> {% else %} <span class="label label-warning">{% trans "Unverified" %}</span> {% endif %} {% if emailaddress.primary %}<span class="label label-success">{% trans "Primary" %}</span>{% endif %} </td> </tr> {% endfor %} </tbody> </table> <div class="form-actions"> <button class="btn btn-success" type="submit" name="action_primary" >{% trans 'Make Primary' %}</button> <button class="btn" type="submit" name="action_send" >{% trans 'Re-send Verification' %}</button> <button class="btn btn-danger" type="submit" name="action_remove" >{% trans 'Remove' %}</button> </div> </fieldset> </form> {% else %} <p><strong>{% trans 'Warning:'%}</strong> {% trans "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %}</p> {% endif %} <h2>{% trans "Add E-mail Address" %}</h2> <form method="post" action=""> {% csrf_token %} {{ add_email_form|bootstrap }} <div class="form-actions"> <button class="btn btn-primary" name="action_add" type="submit">{% trans "Add E-mail" %}</button> </div> </form> {% endblock %} {% block extra_body %} <script type="text/javascript"> $(function(){ $("button[name='action_remove']").click(function(){ if (confirm("{% trans 'Do you really want to remove the selected e-mail address?' %}")) { return true; } return false; }); }); </script> {% endblock %}
fpytloun/waliki
waliki_project/waliki_project/templates/allauth/account/email.html
HTML
bsd-3-clause
2,682
<!DOCTYPE html> <html> <head> <title>Profile</title> <meta charset="utf-8"> </head> <body> <h1>Profile</h1> <img src="../static/image/profile.png" width="100" style="float: left; margin-right: 20px;"/> <p> <strong>ชื่อ</strong> จิตกร พิทักษ์เมธากุล <br/> jittagorn pitakmetagoon <br/> <br/> <strong>ชื่อเล่น</strong> เดียร์ <br/> <br/> <strong>อาชีพ</strong> โปรแกรมเมอร์ <br/> <br/> </p> <div style="clear: both;"></div> </body> </html>
jittagornp/cpe4235
htmlcssjs/src/main/webapp/introduce-html/example3.html
HTML
apache-2.0
781
<!DOCTYPE html > <html> <head> <title>TaskLocations - io.gearpump.streaming.appmaster.TaskRegistry.TaskLocations</title> <meta name="description" content="TaskLocations - io.gearpump.streaming.appmaster.TaskRegistry.TaskLocations" /> <meta name="keywords" content="TaskLocations io.gearpump.streaming.appmaster.TaskRegistry.TaskLocations" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <link href="../../../../lib/template.css" media="screen" type="text/css" rel="stylesheet" /> <link href="../../../../lib/diagrams.css" media="screen" type="text/css" rel="stylesheet" id="diagrams-css" /> <script type="text/javascript" src="../../../../lib/jquery.js" id="jquery-js"></script> <script type="text/javascript" src="../../../../lib/jquery-ui.js"></script> <script type="text/javascript" src="../../../../lib/template.js"></script> <script type="text/javascript" src="../../../../lib/tools.tooltip.js"></script> <script type="text/javascript"> if(top === self) { var url = '../../../../index.html'; var hash = 'io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations'; var anchor = window.location.hash; var anchor_opt = ''; if (anchor.length >= 1) anchor_opt = '@' + anchor.substring(1); window.location.href = url + '#' + hash + anchor_opt; } </script> </head> <body class="type"> <div id="definition"> <img src="../../../../lib/class_big.png" /> <p id="owner"><a href="../../../package.html" class="extype" name="io">io</a>.<a href="../../package.html" class="extype" name="io.gearpump">gearpump</a>.<a href="../package.html" class="extype" name="io.gearpump.streaming">streaming</a>.<a href="package.html" class="extype" name="io.gearpump.streaming.appmaster">appmaster</a>.<a href="TaskRegistry$.html" class="extype" name="io.gearpump.streaming.appmaster.TaskRegistry">TaskRegistry</a></p> <h1>TaskLocations</h1><h3><span class="morelinks"><div>Related Doc: <a href="TaskRegistry$.html" class="extype" name="io.gearpump.streaming.appmaster.TaskRegistry">package TaskRegistry</a> </div></span></h3><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> </div> <h4 id="signature" class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">case class</span> </span> <span class="symbol"> <span class="name">TaskLocations</span><span class="params">(<span name="locations">locations: <span class="extype" name="scala.Predef.Map">Map</span>[<a href="../../transport/HostPort.html" class="extype" name="io.gearpump.transport.HostPort">HostPort</a>, <span class="extype" name="scala.Predef.Set">Set</span>[<a href="../task/TaskId.html" class="extype" name="io.gearpump.streaming.task.TaskId">TaskId</a>]]</span>)</span><span class="result"> extends <span class="extype" name="scala.Product">Product</span> with <span class="extype" name="scala.Serializable">Serializable</span></span> </span> </h4> <div id="comment" class="fullcommenttop"><div class="toggleContainer block"> <span class="toggle">Linear Supertypes</span> <div class="superTypes hiddenContent"><span class="extype" name="scala.Serializable">Serializable</span>, <span class="extype" name="java.io.Serializable">Serializable</span>, <span class="extype" name="scala.Product">Product</span>, <span class="extype" name="scala.Equals">Equals</span>, <span class="extype" name="scala.AnyRef">AnyRef</span>, <span class="extype" name="scala.Any">Any</span></div> </div></div> <div id="mbrsel"> <div id="textfilter"><span class="pre"></span><span class="input"><input id="mbrsel-input" type="text" accesskey="/" /></span><span class="post"></span></div> <div id="order"> <span class="filtertype">Ordering</span> <ol> <li class="alpha in"><span>Alphabetic</span></li> <li class="inherit out"><span>By inheritance</span></li> </ol> </div> <div id="ancestors"> <span class="filtertype">Inherited<br /> </span> <ol id="linearization"> <li class="in" name="io.gearpump.streaming.appmaster.TaskRegistry.TaskLocations"><span>TaskLocations</span></li><li class="in" name="scala.Serializable"><span>Serializable</span></li><li class="in" name="java.io.Serializable"><span>Serializable</span></li><li class="in" name="scala.Product"><span>Product</span></li><li class="in" name="scala.Equals"><span>Equals</span></li><li class="in" name="scala.AnyRef"><span>AnyRef</span></li><li class="in" name="scala.Any"><span>Any</span></li> </ol> </div><div id="ancestors"> <span class="filtertype"></span> <ol> <li class="hideall out"><span>Hide All</span></li> <li class="showall in"><span>Show all</span></li> </ol> <a href="http://docs.scala-lang.org/overviews/scaladoc/usage.html#members" target="_blank">Learn more about member selection</a> </div> <div id="visbl"> <span class="filtertype">Visibility</span> <ol><li class="public in"><span>Public</span></li><li class="all out"><span>All</span></li></ol> </div> </div> <div id="template"> <div id="allMembers"> <div id="constructors" class="members"> <h3>Instance Constructors</h3> <ol><li name="io.gearpump.streaming.appmaster.TaskRegistry.TaskLocations#&lt;init&gt;" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped"> <a id="&lt;init&gt;(locations:Map[io.gearpump.transport.HostPort,Set[io.gearpump.streaming.task.TaskId]]):io.gearpump.streaming.appmaster.TaskRegistry.TaskLocations"></a> <a id="&lt;init&gt;:TaskLocations"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">new</span> </span> <span class="symbol"> <span class="name">TaskLocations</span><span class="params">(<span name="locations">locations: <span class="extype" name="scala.Predef.Map">Map</span>[<a href="../../transport/HostPort.html" class="extype" name="io.gearpump.transport.HostPort">HostPort</a>, <span class="extype" name="scala.Predef.Set">Set</span>[<a href="../task/TaskId.html" class="extype" name="io.gearpump.streaming.task.TaskId">TaskId</a>]]</span>)</span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@&lt;init&gt;(locations:Map[io.gearpump.transport.HostPort,Set[io.gearpump.streaming.task.TaskId]]):io.gearpump.streaming.appmaster.TaskRegistry.TaskLocations" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> </li></ol> </div> <div id="values" class="values members"> <h3>Value Members</h3> <ol><li name="scala.AnyRef#!=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="!=(x$1:Any):Boolean"></a> <a id="!=(Any):Boolean"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span title="gt4s: $bang$eq" class="name">!=</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@!=(x$1:Any):Boolean" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div> </li><li name="scala.AnyRef###" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="##():Int"></a> <a id="##():Int"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span title="gt4s: $hash$hash" class="name">##</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@##():Int" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div> </li><li name="scala.AnyRef#==" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="==(x$1:Any):Boolean"></a> <a id="==(Any):Boolean"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span title="gt4s: $eq$eq" class="name">==</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@==(x$1:Any):Boolean" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div> </li><li name="scala.Any#asInstanceOf" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="asInstanceOf[T0]:T0"></a> <a id="asInstanceOf[T0]:T0"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">asInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Any.asInstanceOf.T0">T0</span></span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@asInstanceOf[T0]:T0" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div> </li><li name="scala.AnyRef#clone" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="clone():Object"></a> <a id="clone():AnyRef"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">clone</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.AnyRef">AnyRef</span></span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@clone():Object" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a href="../../../../java$lang.html" class="extype" name="java.lang">java.lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd> <span class="name">@throws</span><span class="args">(<span> <span class="defval" name="classOf[java.lang.CloneNotSupportedException]">...</span> </span>)</span> </dd></dl></div> </li><li name="scala.AnyRef#eq" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="eq(x$1:AnyRef):Boolean"></a> <a id="eq(AnyRef):Boolean"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">eq</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@eq(x$1:AnyRef):Boolean" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div> </li><li name="scala.AnyRef#finalize" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="finalize():Unit"></a> <a id="finalize():Unit"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">finalize</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@finalize():Unit" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a href="../../../../java$lang.html" class="extype" name="java.lang">java.lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd> <span class="name">@throws</span><span class="args">(<span> <span class="symbol">classOf[java.lang.Throwable]</span> </span>)</span> </dd></dl></div> </li><li name="scala.AnyRef#getClass" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="getClass():Class[_]"></a> <a id="getClass():Class[_]"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">getClass</span><span class="params">()</span><span class="result">: <span class="extype" name="java.lang.Class">Class</span>[_]</span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@getClass():Class[_]" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div> </li><li name="scala.Any#isInstanceOf" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="isInstanceOf[T0]:Boolean"></a> <a id="isInstanceOf[T0]:Boolean"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">isInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@isInstanceOf[T0]:Boolean" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div> </li><li name="io.gearpump.streaming.appmaster.TaskRegistry.TaskLocations#locations" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped"> <a id="locations:Map[io.gearpump.transport.HostPort,Set[io.gearpump.streaming.task.TaskId]]"></a> <a id="locations:Map[HostPort,Set[TaskId]]"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier"></span> <span class="kind">val</span> </span> <span class="symbol"> <span class="name">locations</span><span class="result">: <span class="extype" name="scala.Predef.Map">Map</span>[<a href="../../transport/HostPort.html" class="extype" name="io.gearpump.transport.HostPort">HostPort</a>, <span class="extype" name="scala.Predef.Set">Set</span>[<a href="../task/TaskId.html" class="extype" name="io.gearpump.streaming.task.TaskId">TaskId</a>]]</span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@locations:Map[io.gearpump.transport.HostPort,Set[io.gearpump.streaming.task.TaskId]]" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> </li><li name="scala.AnyRef#ne" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="ne(x$1:AnyRef):Boolean"></a> <a id="ne(AnyRef):Boolean"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">ne</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@ne(x$1:AnyRef):Boolean" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div> </li><li name="scala.AnyRef#notify" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="notify():Unit"></a> <a id="notify():Unit"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">notify</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@notify():Unit" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div> </li><li name="scala.AnyRef#notifyAll" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="notifyAll():Unit"></a> <a id="notifyAll():Unit"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">notifyAll</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@notifyAll():Unit" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div> </li><li name="scala.AnyRef#synchronized" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="synchronized[T0](x$1:=&gt;T0):T0"></a> <a id="synchronized[T0](⇒T0):T0"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">synchronized</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="params">(<span name="arg0">arg0: ⇒ <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span>)</span><span class="result">: <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@synchronized[T0](x$1:=&gt;T0):T0" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div> </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="wait():Unit"></a> <a id="wait():Unit"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">wait</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@wait():Unit" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd> <span class="name">@throws</span><span class="args">(<span> <span class="defval" name="classOf[java.lang.InterruptedException]">...</span> </span>)</span> </dd></dl></div> </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="wait(x$1:Long,x$2:Int):Unit"></a> <a id="wait(Long,Int):Unit"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>, <span name="arg1">arg1: <span class="extype" name="scala.Int">Int</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@wait(x$1:Long,x$2:Int):Unit" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd> <span class="name">@throws</span><span class="args">(<span> <span class="defval" name="classOf[java.lang.InterruptedException]">...</span> </span>)</span> </dd></dl></div> </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped"> <a id="wait(x$1:Long):Unit"></a> <a id="wait(Long):Unit"></a> <h4 class="signature"> <span class="modifier_kind"> <span class="modifier">final </span> <span class="kind">def</span> </span> <span class="symbol"> <span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span> </span> </h4><span class="permalink"> <a href="../../../../index.html#io.gearpump.streaming.appmaster.TaskRegistry$$TaskLocations@wait(x$1:Long):Unit" title="Permalink" target="_top"> <img src="../../../../lib/permalink.png" /> </a> </span> <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd> <span class="name">@throws</span><span class="args">(<span> <span class="defval" name="classOf[java.lang.InterruptedException]">...</span> </span>)</span> </dd></dl></div> </li></ol> </div> </div> <div id="inheritedMembers"> <div class="parent" name="scala.Serializable"> <h3>Inherited from <span class="extype" name="scala.Serializable">Serializable</span></h3> </div><div class="parent" name="java.io.Serializable"> <h3>Inherited from <span class="extype" name="java.io.Serializable">Serializable</span></h3> </div><div class="parent" name="scala.Product"> <h3>Inherited from <span class="extype" name="scala.Product">Product</span></h3> </div><div class="parent" name="scala.Equals"> <h3>Inherited from <span class="extype" name="scala.Equals">Equals</span></h3> </div><div class="parent" name="scala.AnyRef"> <h3>Inherited from <span class="extype" name="scala.AnyRef">AnyRef</span></h3> </div><div class="parent" name="scala.Any"> <h3>Inherited from <span class="extype" name="scala.Any">Any</span></h3> </div> </div> <div id="groupedMembers"> <div class="group" name="Ungrouped"> <h3>Ungrouped</h3> </div> </div> </div> <div id="tooltip"></div> <div id="footer"> </div> </body> </html>
stanleyxu2005/gearpump.github.io
releases/0.7.6/api/scala/io/gearpump/streaming/appmaster/TaskRegistry$$TaskLocations.html
HTML
apache-2.0
27,107
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="it"> <head> <!-- Generated by javadoc (version 1.7.0_01) on Tue Feb 14 20:29:37 CET 2012 --> <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> <title>ch.lambdaj.proxy.nodefconstructor (lambdaj 2.4 Test API)</title> <meta name="date" content="2012-02-14"> <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="ch.lambdaj.proxy.nodefconstructor (lambdaj 2.4 Test API)"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li class="navBarCell1Rev">Package</li> <li>Class</li> <li><a href="package-use.html">Use</a></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="../../../../ch/lambdaj/mock/package-summary.html">Prev Package</a></li> <li><a href="../../../../ch/lambdaj/proxy/nodefconstructor/problem/package-summary.html">Next Package</a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?ch/lambdaj/proxy/nodefconstructor/package-summary.html" target="_top">Frames</a></li> <li><a href="package-summary.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> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h1 title="Package" class="title">Package&nbsp;ch.lambdaj.proxy.nodefconstructor</h1> </div> <div class="contentContainer"> <ul class="blockList"> <li class="blockList"> <table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation"> <caption><span>Class Summary</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Class</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="../../../../ch/lambdaj/proxy/nodefconstructor/ElementId.html" title="class in ch.lambdaj.proxy.nodefconstructor">ElementId</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../ch/lambdaj/proxy/nodefconstructor/ProxyNoDefaultConstructorTest.html" title="class in ch.lambdaj.proxy.nodefconstructor">ProxyNoDefaultConstructorTest</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../ch/lambdaj/proxy/nodefconstructor/RelationMetricResult.html" title="class in ch.lambdaj.proxy.nodefconstructor">RelationMetricResult</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li class="navBarCell1Rev">Package</li> <li>Class</li> <li><a href="package-use.html">Use</a></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="../../../../ch/lambdaj/mock/package-summary.html">Prev Package</a></li> <li><a href="../../../../ch/lambdaj/proxy/nodefconstructor/problem/package-summary.html">Next Package</a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?ch/lambdaj/proxy/nodefconstructor/package-summary.html" target="_top">Frames</a></li> <li><a href="package-summary.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> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright &#169; 2012. All Rights Reserved.</small></p> </body> </html>
deeplyloving/lambdaj
html/testapidocs/ch/lambdaj/proxy/nodefconstructor/package-summary.html
HTML
apache-2.0
5,533
{{template "header.html" .}} {{$g := .GraphOptions}} {{$gts := .GlobalTopicStats}} {{$firstTopic := index .TopicStats 0}} <ul class="breadcrumb"> <li><a href="/">Streams</a> <span class="divider">/</span></li> <li class="active">{{.Topic}}</li> </ul> <div class="row-fluid"> <div class="span6"> <blockquote> <p>Topic: <strong>{{.Topic}}</strong> </blockquote> </div> </div> <div class="row-fluid"> <div class="span2"> <form action="/empty_topic" method="POST"> <input type="hidden" name="topic" value="{{.Topic}}"> <button class="btn btn-medium btn-warning" type="submit">Empty Queue</button> </form> </div> <div class="span2"> <form action="/delete_topic" method="POST"> <input type="hidden" name="topic" value="{{.Topic}}"> <button class="btn btn-medium btn-danger" type="submit">Delete Topic</button> </form> </div> </div> <div class="row-fluid"> {{if not .TopicStats}} <div class="span6"> <h4>Topic Message Queue</h4> <div class="alert"> <h4>Notice</h4> No producers exist for this topic. <p>See <a href="/lookup">Lookup</a> for more information. </div> {{else}} <div class="span12"> <h4>Topic Message Queue</h4> <table class="table table-bordered table-condensed"> {{if $firstTopic.E2eProcessingLatency.Percentiles}} <tr> <th colspan="{{if $g.Enabled}}6{{else}}5{{end}}"></th> <th colspan="{{len $firstTopic.E2eProcessingLatency.Percentiles}}">E2E Processing Latency</th> </tr> {{end}} <tr> <th>NSQd Host</th> <th>Depth</th> <th>Memory + Disk</th> <th>Messages</th> {{if $g.Enabled}}<th>Rate</th>{{end}} <th>Channels</th> {{range $e2e := $firstTopic.E2eProcessingLatency.Percentiles}} <th>{{$e2e.quantile | floatToPercent}}<sup>{{$e2e.quantile | percSuffix}}</sup></th> {{end}} </tr> {{range $t := .TopicStats}} <tr> <td> <form class="form-inline" style="margin:0" action="/tombstone_topic_producer" method="POST"> <input type="hidden" name="rd" value="/topic/{{.TopicName}}"> <input type="hidden" name="topic" value="{{.TopicName}}"> <input type="hidden" name="node" value="{{.HostAddress}}"> <button class="btn btn-mini btn-link red" type="submit">✘</button> <a href="/node/{{.HostAddress}}">{{.HostAddress}}</a> </form> </td> <td> {{.Depth | commafy}}</td> <td>{{.MemoryDepth | commafy}} + {{.BackendDepth | commafy}}</td> <td>{{.MessageCount | commafy}}</td> {{if $g.Enabled}}<td class="bold rate" target="{{$g.Rate $t}}"></td> {{end}} <td>{{.ChannelCount}}</td> {{if $t.E2eProcessingLatency.Percentiles}} {{range $e2e := $t.E2eProcessingLatency.Percentiles}} <td> <span title="{{$e2e.quantile | floatToPercent}}: min = {{$e2e.min | nanotohuman}}, max = {{$e2e.max | nanotohuman}}">{{$e2e.average | nanotohuman}}</span> </td> {{end}} {{end}} </tr> {{if $g.Enabled}} <tr class="graph-row"> <td></td> <td><a href="{{$g.LargeGraph $t "depth"}}"><img width="120" src="{{$g.Sparkline $t "depth"}}"></a></td> <td></td> <td><a href="{{$g.LargeGraph $t "message_count"}}"><img width="120" src="{{$g.Sparkline $t "message_count"}}"></a></td> <td></td> <td></td> {{if $t.E2eProcessingLatency.Percentiles}} <td colspan="{{len $t.E2eProcessingLatency.Percentiles}}"> <a href="{{$g.LargeGraph $t.E2eProcessingLatency "e2e_processing_latency"}}"><img width="120" height="20" src="{{$g.Sparkline $t.E2eProcessingLatency "e2e_processing_latency"}}"></a> </td> {{end}} </tr> {{end}} {{end}} <tr class="info"> <td>Total:</td> <td> {{$gts.Depth | commafy}} </td> <td>{{$gts.MemoryDepth | commafy}} + {{$gts.BackendDepth | commafy}}</td> <td> {{$gts.MessageCount | commafy}} </td> {{if $g.Enabled}}<td class="bold rate" target="{{$g.Rate $gts}}"></td> {{end}} <td>{{$gts.ChannelCount}}</td> {{if $gts.E2eProcessingLatency.Percentiles}} {{range $e2e := $gts.E2eProcessingLatency.Percentiles}} <td> <span title="{{$e2e.quantile | floatToPercent}}: min = {{$e2e.min | nanotohuman}}, max = {{$e2e.max | nanotohuman}}">{{$e2e.average | nanotohuman}}</span> </td> {{end}} {{end}} </tr> {{if $g.Enabled}} <tr class="graph-row"> <td></td> <td><a href="{{$g.LargeGraph $gts "depth"}}"><img width="120" src="{{$g.Sparkline $gts "depth"}}"></a></td> <td></td> <td><a href="{{$g.LargeGraph $gts "message_count"}}"><img width="120" src="{{$g.Sparkline $gts "message_count"}}"></a></td> <td></td> <td></td> {{if $gts.E2eProcessingLatency.Percentiles}} <td colspan="{{len $gts.E2eProcessingLatency.Percentiles}}"> <a href="{{$g.LargeGraph $gts.E2eProcessingLatency "e2e_processing_latency"}}"><img width="120" height="20" src="{{$g.Sparkline $gts.E2eProcessingLatency "e2e_processing_latency"}}"></a> </td> {{end}} </tr> {{end}} </table> {{end}} </div></div> <div class="row-fluid"> {{ if not .ChannelStats }} <div class="span6"> <h4>Channel Message Queues</h4> <div class="alert"> <h4>Notice</h4> No channels exist for this topic. <p>Messages will queue at the topic until a channel is created. </div> {{else}} <div class="span12"> <h4>Channel Message Queues</h4> <table class="table table-bordered table-condensed"> {{if $firstTopic.E2eProcessingLatency.Percentiles}} <tr> <th colspan="{{if $g.Enabled}}10{{else}}9{{end}}"></th> <th colspan="{{len $firstTopic.E2eProcessingLatency.Percentiles}}">E2E Processing Latency</th> </tr> {{end}} <tr> <th>Channel</th> <th>Depth</th> <th>Memory + Disk</th> <th>In-Flight</th> <th>Deferred</th> <th>Requeued</th> <th>Timed Out</th> <th>Messages</th> {{if $g.Enabled}}<th>Rate</th>{{end}} <th>Connections</th> {{range $e2e := $firstTopic.E2eProcessingLatency.Percentiles}} <th>{{$e2e.quantile | floatToPercent}}<sup>{{$e2e.quantile | percSuffix}}</sup></th> {{end}} </tr> {{range $c := .ChannelStats}} <tr > <th><a href="/topic/{{$c.TopicName}}/{{$c.ChannelName | urlquery}}">{{$c.ChannelName}}</a> {{if $c.Paused}}<span class="label label-important">paused</span>{{end}} </th> <td> {{$c.Depth | commafy}}</td> <td>{{$c.MemoryDepth | commafy}} + {{$c.BackendDepth | commafy}}</td> <td>{{$c.InFlightCount | commafy}}</td> <td>{{$c.DeferredCount | commafy}}</td> <td>{{$c.RequeueCount | commafy}}</td> <td>{{$c.TimeoutCount | commafy}}</td> <td>{{$c.MessageCount | commafy}}</td> {{if $g.Enabled}}<td class="bold rate" target="{{$g.Rate $c}}"></td> {{end}} <td>{{$c.ClientCount}}</td> {{if $c.E2eProcessingLatency.Percentiles}} {{range $e2e := $c.E2eProcessingLatency.Percentiles}} <td> <span title="{{$e2e.quantile | floatToPercent}}: min = {{$e2e.min | nanotohuman}}, max = {{$e2e.max | nanotohuman}}">{{$e2e.average | nanotohuman}}</span> </td> {{end}} {{end}} </tr> {{if $g.Enabled}} <tr class="graph-row"> <td></td> <td><a href="{{$g.LargeGraph $c "depth"}}"><img width="120" height="20" src="{{$g.Sparkline $c "depth"}}"></a></td> <td></td> <td><a href="{{$g.LargeGraph $c "in_flight_count"}}"><img width="120" height="20" src="{{$g.Sparkline $c "in_flight_count"}}"></a></td> <td><a href="{{$g.LargeGraph $c "deferred_count"}}"><img width="120" height="20" src="{{$g.Sparkline $c "deferred_count"}}"></a></td> <td><a href="{{$g.LargeGraph $c "requeue_count"}}"><img width="120" height="20" src="{{$g.Sparkline $c "requeue_count"}}"></a></td> <td><a href="{{$g.LargeGraph $c "timeout_count"}}"><img width="120" height="20" src="{{$g.Sparkline $c "timeout_count"}}"></a></td> <td><a href="{{$g.LargeGraph $c "message_count"}}"><img width="120" height="20" src="{{$g.Sparkline $c "message_count"}}"></a></td> <td></td> <td><a href="{{$g.LargeGraph $c "clients"}}"><img width="120" height="20" src="{{$g.Sparkline $c "clients"}}"></a></td> {{if $c.E2eProcessingLatency.Percentiles}} <td colspan="{{len $c.E2eProcessingLatency.Percentiles}}"> <a href="{{$g.LargeGraph $c.E2eProcessingLatency "e2e_processing_latency"}}"><img width="120" height="20" src="{{$g.Sparkline $c.E2eProcessingLatency "e2e_processing_latency"}}"></a> </td> {{end}} </tr> {{end}} {{end}} </table> {{end}} </div></div> {{template "js.html" .}} {{template "footer.html" .}}
xiaozhen1900/nsq
nsqadmin/templates/topic.html
HTML
mit
9,345
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0"> <title>Responsive example - Compact styling</title> <link rel="stylesheet" type="text/css" href="../../../../media/css/jquery.dataTables.css"> <link rel="stylesheet" type="text/css" href="../../css/responsive.dataTables.css"> <link rel="stylesheet" type="text/css" href="../../../../examples/resources/syntax/shCore.css"> <link rel="stylesheet" type="text/css" href="../../../../examples/resources/demo.css"> <style type="text/css" class="init"> div.container { max-width: 1200px } </style> <script type="text/javascript" language="javascript" src="//code.jquery.com/jquery-1.11.3.min.js"> </script> <script type="text/javascript" language="javascript" src="../../../../media/js/jquery.dataTables.js"> </script> <script type="text/javascript" language="javascript" src="../../js/dataTables.responsive.js"> </script> <script type="text/javascript" language="javascript" src="../../../../examples/resources/syntax/shCore.js"> </script> <script type="text/javascript" language="javascript" src="../../../../examples/resources/demo.js"> </script> <script type="text/javascript" language="javascript" class="init"> $(document).ready(function() { var table = $('#example').DataTable( { responsive: true } ); } ); </script> </head> <body class="dt-example"> <div class="container"> <section> <h1>Responsive example <span>Compact styling</span></h1> <div class="info"> <p>DataTables' <a href="http://datatables.net/manual/styling/classes">default stylesheet</a> has a number number of features available that can be enabled by including a class name on the DataTable. One of those options is <code>compact</code> which displays the DataTable with less whitespace padding that might other be used to increase the information density of the table. Responsive's own style has support for this <code>compact</code> styling as showing in this example.</p> </div> <table id="example" class="display compact nowrap" cellspacing="0" width="100%"> <thead> <tr> <th>First name</th> <th>Last name</th> <th>Position</th> <th>Office</th> <th>Age</th> <th>Start date</th> <th>Salary</th> <th>Extn.</th> <th>E-mail</th> </tr> </thead> <tbody> <tr> <td>Tiger</td> <td>Nixon</td> <td>System Architect</td> <td>Edinburgh</td> <td>61</td> <td>2011/04/25</td> <td>$320,800</td> <td>5421</td> <td>[email protected]</td> </tr> <tr> <td>Garrett</td> <td>Winters</td> <td>Accountant</td> <td>Tokyo</td> <td>63</td> <td>2011/07/25</td> <td>$170,750</td> <td>8422</td> <td>[email protected]</td> </tr> <tr> <td>Ashton</td> <td>Cox</td> <td>Junior Technical Author</td> <td>San Francisco</td> <td>66</td> <td>2009/01/12</td> <td>$86,000</td> <td>1562</td> <td>[email protected]</td> </tr> <tr> <td>Cedric</td> <td>Kelly</td> <td>Senior Javascript Developer</td> <td>Edinburgh</td> <td>22</td> <td>2012/03/29</td> <td>$433,060</td> <td>6224</td> <td>[email protected]</td> </tr> <tr> <td>Airi</td> <td>Satou</td> <td>Accountant</td> <td>Tokyo</td> <td>33</td> <td>2008/11/28</td> <td>$162,700</td> <td>5407</td> <td>[email protected]</td> </tr> <tr> <td>Brielle</td> <td>Williamson</td> <td>Integration Specialist</td> <td>New York</td> <td>61</td> <td>2012/12/02</td> <td>$372,000</td> <td>4804</td> <td>[email protected]</td> </tr> <tr> <td>Herrod</td> <td>Chandler</td> <td>Sales Assistant</td> <td>San Francisco</td> <td>59</td> <td>2012/08/06</td> <td>$137,500</td> <td>9608</td> <td>[email protected]</td> </tr> <tr> <td>Rhona</td> <td>Davidson</td> <td>Integration Specialist</td> <td>Tokyo</td> <td>55</td> <td>2010/10/14</td> <td>$327,900</td> <td>6200</td> <td>[email protected]</td> </tr> <tr> <td>Colleen</td> <td>Hurst</td> <td>Javascript Developer</td> <td>San Francisco</td> <td>39</td> <td>2009/09/15</td> <td>$205,500</td> <td>2360</td> <td>[email protected]</td> </tr> <tr> <td>Sonya</td> <td>Frost</td> <td>Software Engineer</td> <td>Edinburgh</td> <td>23</td> <td>2008/12/13</td> <td>$103,600</td> <td>1667</td> <td>[email protected]</td> </tr> <tr> <td>Jena</td> <td>Gaines</td> <td>Office Manager</td> <td>London</td> <td>30</td> <td>2008/12/19</td> <td>$90,560</td> <td>3814</td> <td>[email protected]</td> </tr> <tr> <td>Quinn</td> <td>Flynn</td> <td>Support Lead</td> <td>Edinburgh</td> <td>22</td> <td>2013/03/03</td> <td>$342,000</td> <td>9497</td> <td>[email protected]</td> </tr> <tr> <td>Charde</td> <td>Marshall</td> <td>Regional Director</td> <td>San Francisco</td> <td>36</td> <td>2008/10/16</td> <td>$470,600</td> <td>6741</td> <td>[email protected]</td> </tr> <tr> <td>Haley</td> <td>Kennedy</td> <td>Senior Marketing Designer</td> <td>London</td> <td>43</td> <td>2012/12/18</td> <td>$313,500</td> <td>3597</td> <td>[email protected]</td> </tr> <tr> <td>Tatyana</td> <td>Fitzpatrick</td> <td>Regional Director</td> <td>London</td> <td>19</td> <td>2010/03/17</td> <td>$385,750</td> <td>1965</td> <td>[email protected]</td> </tr> <tr> <td>Michael</td> <td>Silva</td> <td>Marketing Designer</td> <td>London</td> <td>66</td> <td>2012/11/27</td> <td>$198,500</td> <td>1581</td> <td>[email protected]</td> </tr> <tr> <td>Paul</td> <td>Byrd</td> <td>Chief Financial Officer (CFO)</td> <td>New York</td> <td>64</td> <td>2010/06/09</td> <td>$725,000</td> <td>3059</td> <td>[email protected]</td> </tr> <tr> <td>Gloria</td> <td>Little</td> <td>Systems Administrator</td> <td>New York</td> <td>59</td> <td>2009/04/10</td> <td>$237,500</td> <td>1721</td> <td>[email protected]</td> </tr> <tr> <td>Bradley</td> <td>Greer</td> <td>Software Engineer</td> <td>London</td> <td>41</td> <td>2012/10/13</td> <td>$132,000</td> <td>2558</td> <td>[email protected]</td> </tr> <tr> <td>Dai</td> <td>Rios</td> <td>Personnel Lead</td> <td>Edinburgh</td> <td>35</td> <td>2012/09/26</td> <td>$217,500</td> <td>2290</td> <td>[email protected]</td> </tr> <tr> <td>Jenette</td> <td>Caldwell</td> <td>Development Lead</td> <td>New York</td> <td>30</td> <td>2011/09/03</td> <td>$345,000</td> <td>1937</td> <td>[email protected]</td> </tr> <tr> <td>Yuri</td> <td>Berry</td> <td>Chief Marketing Officer (CMO)</td> <td>New York</td> <td>40</td> <td>2009/06/25</td> <td>$675,000</td> <td>6154</td> <td>[email protected]</td> </tr> <tr> <td>Caesar</td> <td>Vance</td> <td>Pre-Sales Support</td> <td>New York</td> <td>21</td> <td>2011/12/12</td> <td>$106,450</td> <td>8330</td> <td>[email protected]</td> </tr> <tr> <td>Doris</td> <td>Wilder</td> <td>Sales Assistant</td> <td>Sidney</td> <td>23</td> <td>2010/09/20</td> <td>$85,600</td> <td>3023</td> <td>[email protected]</td> </tr> <tr> <td>Angelica</td> <td>Ramos</td> <td>Chief Executive Officer (CEO)</td> <td>London</td> <td>47</td> <td>2009/10/09</td> <td>$1,200,000</td> <td>5797</td> <td>[email protected]</td> </tr> <tr> <td>Gavin</td> <td>Joyce</td> <td>Developer</td> <td>Edinburgh</td> <td>42</td> <td>2010/12/22</td> <td>$92,575</td> <td>8822</td> <td>[email protected]</td> </tr> <tr> <td>Jennifer</td> <td>Chang</td> <td>Regional Director</td> <td>Singapore</td> <td>28</td> <td>2010/11/14</td> <td>$357,650</td> <td>9239</td> <td>[email protected]</td> </tr> <tr> <td>Brenden</td> <td>Wagner</td> <td>Software Engineer</td> <td>San Francisco</td> <td>28</td> <td>2011/06/07</td> <td>$206,850</td> <td>1314</td> <td>[email protected]</td> </tr> <tr> <td>Fiona</td> <td>Green</td> <td>Chief Operating Officer (COO)</td> <td>San Francisco</td> <td>48</td> <td>2010/03/11</td> <td>$850,000</td> <td>2947</td> <td>[email protected]</td> </tr> <tr> <td>Shou</td> <td>Itou</td> <td>Regional Marketing</td> <td>Tokyo</td> <td>20</td> <td>2011/08/14</td> <td>$163,000</td> <td>8899</td> <td>[email protected]</td> </tr> <tr> <td>Michelle</td> <td>House</td> <td>Integration Specialist</td> <td>Sidney</td> <td>37</td> <td>2011/06/02</td> <td>$95,400</td> <td>2769</td> <td>[email protected]</td> </tr> <tr> <td>Suki</td> <td>Burks</td> <td>Developer</td> <td>London</td> <td>53</td> <td>2009/10/22</td> <td>$114,500</td> <td>6832</td> <td>[email protected]</td> </tr> <tr> <td>Prescott</td> <td>Bartlett</td> <td>Technical Author</td> <td>London</td> <td>27</td> <td>2011/05/07</td> <td>$145,000</td> <td>3606</td> <td>[email protected]</td> </tr> <tr> <td>Gavin</td> <td>Cortez</td> <td>Team Leader</td> <td>San Francisco</td> <td>22</td> <td>2008/10/26</td> <td>$235,500</td> <td>2860</td> <td>[email protected]</td> </tr> <tr> <td>Martena</td> <td>Mccray</td> <td>Post-Sales support</td> <td>Edinburgh</td> <td>46</td> <td>2011/03/09</td> <td>$324,050</td> <td>8240</td> <td>[email protected]</td> </tr> <tr> <td>Unity</td> <td>Butler</td> <td>Marketing Designer</td> <td>San Francisco</td> <td>47</td> <td>2009/12/09</td> <td>$85,675</td> <td>5384</td> <td>[email protected]</td> </tr> <tr> <td>Howard</td> <td>Hatfield</td> <td>Office Manager</td> <td>San Francisco</td> <td>51</td> <td>2008/12/16</td> <td>$164,500</td> <td>7031</td> <td>[email protected]</td> </tr> <tr> <td>Hope</td> <td>Fuentes</td> <td>Secretary</td> <td>San Francisco</td> <td>41</td> <td>2010/02/12</td> <td>$109,850</td> <td>6318</td> <td>[email protected]</td> </tr> <tr> <td>Vivian</td> <td>Harrell</td> <td>Financial Controller</td> <td>San Francisco</td> <td>62</td> <td>2009/02/14</td> <td>$452,500</td> <td>9422</td> <td>[email protected]</td> </tr> <tr> <td>Timothy</td> <td>Mooney</td> <td>Office Manager</td> <td>London</td> <td>37</td> <td>2008/12/11</td> <td>$136,200</td> <td>7580</td> <td>[email protected]</td> </tr> <tr> <td>Jackson</td> <td>Bradshaw</td> <td>Director</td> <td>New York</td> <td>65</td> <td>2008/09/26</td> <td>$645,750</td> <td>1042</td> <td>[email protected]</td> </tr> <tr> <td>Olivia</td> <td>Liang</td> <td>Support Engineer</td> <td>Singapore</td> <td>64</td> <td>2011/02/03</td> <td>$234,500</td> <td>2120</td> <td>[email protected]</td> </tr> <tr> <td>Bruno</td> <td>Nash</td> <td>Software Engineer</td> <td>London</td> <td>38</td> <td>2011/05/03</td> <td>$163,500</td> <td>6222</td> <td>[email protected]</td> </tr> <tr> <td>Sakura</td> <td>Yamamoto</td> <td>Support Engineer</td> <td>Tokyo</td> <td>37</td> <td>2009/08/19</td> <td>$139,575</td> <td>9383</td> <td>[email protected]</td> </tr> <tr> <td>Thor</td> <td>Walton</td> <td>Developer</td> <td>New York</td> <td>61</td> <td>2013/08/11</td> <td>$98,540</td> <td>8327</td> <td>[email protected]</td> </tr> <tr> <td>Finn</td> <td>Camacho</td> <td>Support Engineer</td> <td>San Francisco</td> <td>47</td> <td>2009/07/07</td> <td>$87,500</td> <td>2927</td> <td>[email protected]</td> </tr> <tr> <td>Serge</td> <td>Baldwin</td> <td>Data Coordinator</td> <td>Singapore</td> <td>64</td> <td>2012/04/09</td> <td>$138,575</td> <td>8352</td> <td>[email protected]</td> </tr> <tr> <td>Zenaida</td> <td>Frank</td> <td>Software Engineer</td> <td>New York</td> <td>63</td> <td>2010/01/04</td> <td>$125,250</td> <td>7439</td> <td>[email protected]</td> </tr> <tr> <td>Zorita</td> <td>Serrano</td> <td>Software Engineer</td> <td>San Francisco</td> <td>56</td> <td>2012/06/01</td> <td>$115,000</td> <td>4389</td> <td>[email protected]</td> </tr> <tr> <td>Jennifer</td> <td>Acosta</td> <td>Junior Javascript Developer</td> <td>Edinburgh</td> <td>43</td> <td>2013/02/01</td> <td>$75,650</td> <td>3431</td> <td>[email protected]</td> </tr> <tr> <td>Cara</td> <td>Stevens</td> <td>Sales Assistant</td> <td>New York</td> <td>46</td> <td>2011/12/06</td> <td>$145,600</td> <td>3990</td> <td>[email protected]</td> </tr> <tr> <td>Hermione</td> <td>Butler</td> <td>Regional Director</td> <td>London</td> <td>47</td> <td>2011/03/21</td> <td>$356,250</td> <td>1016</td> <td>[email protected]</td> </tr> <tr> <td>Lael</td> <td>Greer</td> <td>Systems Administrator</td> <td>London</td> <td>21</td> <td>2009/02/27</td> <td>$103,500</td> <td>6733</td> <td>[email protected]</td> </tr> <tr> <td>Jonas</td> <td>Alexander</td> <td>Developer</td> <td>San Francisco</td> <td>30</td> <td>2010/07/14</td> <td>$86,500</td> <td>8196</td> <td>[email protected]</td> </tr> <tr> <td>Shad</td> <td>Decker</td> <td>Regional Director</td> <td>Edinburgh</td> <td>51</td> <td>2008/11/13</td> <td>$183,000</td> <td>6373</td> <td>[email protected]</td> </tr> <tr> <td>Michael</td> <td>Bruce</td> <td>Javascript Developer</td> <td>Singapore</td> <td>29</td> <td>2011/06/27</td> <td>$183,000</td> <td>5384</td> <td>[email protected]</td> </tr> <tr> <td>Donna</td> <td>Snider</td> <td>Customer Support</td> <td>New York</td> <td>27</td> <td>2011/01/25</td> <td>$112,000</td> <td>4226</td> <td>[email protected]</td> </tr> </tbody> </table> <ul class="tabs"> <li class="active">Javascript</li> <li>HTML</li> <li>CSS</li> <li>Ajax</li> <li>Server-side script</li> </ul> <div class="tabs"> <div class="js"> <p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() { var table = $('#example').DataTable( { responsive: true } ); } );</code> <p>In addition to the above code, the following Javascript library files are loaded for use in this example:</p> <ul> <li> <a href="//code.jquery.com/jquery-1.11.3.min.js">//code.jquery.com/jquery-1.11.3.min.js</a> </li> <li> <a href="../../../../media/js/jquery.dataTables.js">../../../../media/js/jquery.dataTables.js</a> </li> <li> <a href="../../js/dataTables.responsive.js">../../js/dataTables.responsive.js</a> </li> </ul> </div> <div class="table"> <p>The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:</p> </div> <div class="css"> <div> <p>This example uses a little bit of additional CSS beyond what is loaded from the library files (below), in order to correctly display the table. The additional CSS used is shown below:</p><code class="multiline language-css">div.container { max-width: 1200px }</code> </div> <p>The following CSS library files are loaded for use in this example to provide the styling of the table:</p> <ul> <li> <a href="../../../../media/css/jquery.dataTables.css">../../../../media/css/jquery.dataTables.css</a> </li> <li> <a href="../../css/responsive.dataTables.css">../../css/responsive.dataTables.css</a> </li> </ul> </div> <div class="ajax"> <p>This table loads data by Ajax. The latest data that has been loaded is shown below. This data will update automatically as any additional data is loaded.</p> </div> <div class="php"> <p>The script used to perform the server-side processing for this table is shown below. Please note that this is just an example script using PHP. Server-side processing scripts can be written in any language, using <a href="//datatables.net/manual/server-side">the protocol described in the DataTables documentation</a>.</p> </div> </div> </section> </div> <section> <div class="footer"> <div class="gradient"></div> <div class="liner"> <h2>Other examples</h2> <div class="toc"> <div class="toc-group"> <h3><a href="../initialisation/index.html">Basic initialisation</a></h3> <ul class="toc"> <li> <a href="../initialisation/className.html">Class name</a> </li> <li> <a href="../initialisation/option.html">Configuration option</a> </li> <li> <a href="../initialisation/new.html">`new` constructor</a> </li> <li> <a href="../initialisation/ajax.html">Ajax data</a> </li> <li> <a href="../initialisation/default.html">Default initialisation</a> </li> </ul> </div> <div class="toc-group"> <h3><a href="../display-types/index.html">Display-types</a></h3> <ul class="toc"> <li> <a href="../display-types/immediateShow.html">Immediately show hidden details</a> </li> <li> <a href="../display-types/modal.html">Modal details display</a> </li> <li> <a href="../display-types/bootstrap-modal.html">Bootstrap modal</a> </li> <li> <a href="../display-types/foundation-modal.html">Foundation modal</a> </li> <li> <a href="../display-types/jqueryui-modal.html">jQuery UI modal</a> </li> </ul> </div> <div class="toc-group"> <h3><a href="../column-control/index.html">Column-control</a></h3> <ul class="toc"> <li> <a href="../column-control/auto.html">Automatic column hiding</a> </li> <li> <a href="../column-control/columnPriority.html">Column priority</a> </li> <li> <a href="../column-control/classes.html">Class control</a> </li> <li> <a href="../column-control/init-classes.html">Assigned class control</a> </li> <li> <a href="../column-control/column-visibility.html">With Buttons - Column visibility</a> </li> <li> <a href="../column-control/fixedHeader.html">With FixedHeader</a> </li> <li> <a href="../column-control/colreorder.html">With ColReorder</a> </li> </ul> </div> <div class="toc-group"> <h3><a href="../child-rows/index.html">Child rows</a></h3> <ul class="toc"> <li> <a href="../child-rows/disable-child-rows.html">Disable child rows</a> </li> <li> <a href="../child-rows/column-control.html">Column controlled child rows</a> </li> <li> <a href="../child-rows/right-column.html">Column control - right</a> </li> <li> <a href="../child-rows/whole-row-control.html">Whole row child row control</a> </li> <li> <a href="../child-rows/custom-renderer.html">Custom child row renderer</a> </li> </ul> </div> <div class="toc-group"> <h3><a href="./index.html">Styling</a></h3> <ul class="toc active"> <li> <a href="./bootstrap.html">Bootstrap styling</a> </li> <li> <a href="./foundation.html">Foundation styling</a> </li> <li> <a href="./jqueryui.html">jQuery UI styling</a> </li> <li class="active"> <a href="./compact.html">Compact styling</a> </li> <li> <a href="./scrolling.html">Vertical scrolling</a> </li> </ul> </div> </div> <div class="epilogue"> <p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br> Additionally, there are a wide range of <a href="http://www.datatables.net/extensions">extensions</a> and <a href= "http://www.datatables.net/plug-ins">plug-ins</a> which extend the capabilities of DataTables.</p> <p class="copyright">DataTables designed and created by <a href="http://www.sprymedia.co.uk">SpryMedia Ltd</a> © 2007-2015<br> DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p> </div> </div> </div> </section> </body> </html>
zhanglei13/zeppelin
zeppelin-client/src/asserts/DataTables-1.10.10/extensions/Responsive/examples/styling/compact.html
HTML
apache-2.0
23,383
<!DOCTYPE html> <!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. --> <title>Canvas test: 2d.line.width.scaledefault</title> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="/html/canvas/resources/canvas-tests.js"></script> <link rel="stylesheet" href="/html/canvas/resources/canvas-tests.css"> <body class="show_output"> <h1>2d.line.width.scaledefault</h1> <p class="desc">Default lineWidth strokes are affected by scale transformations</p> <p class="output">Actual output:</p> <canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> <p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> <ul id="d"></ul> <script> var t = async_test("Default lineWidth strokes are affected by scale transformations"); _addTest(function(canvas, ctx) { ctx.fillStyle = '#f00'; ctx.fillRect(0, 0, 100, 50); ctx.scale(50, 50); ctx.strokeStyle = '#0f0'; ctx.moveTo(0, 0.5); ctx.lineTo(2, 0.5); ctx.stroke(); _assertPixel(canvas, 25,25, 0,255,0,255, "25,25", "0,255,0,255"); _assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); _assertPixel(canvas, 75,25, 0,255,0,255, "75,25", "0,255,0,255"); _assertPixel(canvas, 50,5, 0,255,0,255, "50,5", "0,255,0,255"); _assertPixel(canvas, 50,45, 0,255,0,255, "50,45", "0,255,0,255"); }); </script>
scheib/chromium
third_party/blink/web_tests/external/wpt/html/canvas/element/line-styles/2d.line.width.scaledefault.html
HTML
bsd-3-clause
1,472
<template name="postDiscuss"> <a class="discuss-link go-to-comments action" href="/posts/{{_id}}" title="{{_ 'discuss'}}"> <i class="action-icon icon-comment"></i> <span class="action-count">{{commentCount}}</span> </a> </template>
Baxter900/Ultimate-Spellbook
client/views/posts/modules/post_discuss.html
HTML
mit
243
<!doctype html> <head> <meta name="timeout" content="long"></meta> <script src = "/resources/testharness.js"></script> <script src = "/resources/testharnessreport.js"></script> <script src = "/resources/get-host-info.js?pipe=sub"></script> <script src = "/serviceworker/resources/test-helpers.js"></script> </head> <body> <script> var host_info = get_host_info(); function start(t) { fetch_tests_from_worker( new Worker('/fetch/script-tests/thorough/cors.js?-base-https-other-https')); t.done(); } function init(test) { return login(test, host_info['HTTP_ORIGIN'], host_info['HTTP_REMOTE_ORIGIN']) .then(function() { return login(test, host_info['HTTPS_ORIGIN'], host_info['HTTPS_REMOTE_ORIGIN']); }); } </script> <script src = "/fetch/resources/init.js"></script> </body>
js0701/chromium-crosswalk
third_party/WebKit/LayoutTests/http/tests/fetch/workers/thorough/cors-base-https-other-https.html
HTML
bsd-3-clause
822
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.5.0_09) on Thu Nov 02 11:46:44 EST 2006 --> <TITLE> API Help (Ant Contrib) </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="API Help (Ant Contrib)"; } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Help</B></FONT>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html?help-doc.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="help-doc.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <CENTER> <H1> How This API Document Is Organized</H1> </CENTER> This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.<H3> Overview</H3> <BLOCKQUOTE> <P> The <A HREF="overview-summary.html">Overview</A> page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.</BLOCKQUOTE> <H3> Package</H3> <BLOCKQUOTE> <P> Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:<UL> <LI>Interfaces (italic)<LI>Classes<LI>Enums<LI>Exceptions<LI>Errors<LI>Annotation Types</UL> </BLOCKQUOTE> <H3> Class/Interface</H3> <BLOCKQUOTE> <P> Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:<UL> <LI>Class inheritance diagram<LI>Direct Subclasses<LI>All Known Subinterfaces<LI>All Known Implementing Classes<LI>Class/interface declaration<LI>Class/interface description <P> <LI>Nested Class Summary<LI>Field Summary<LI>Constructor Summary<LI>Method Summary <P> <LI>Field Detail<LI>Constructor Detail<LI>Method Detail</UL> Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.</BLOCKQUOTE> </BLOCKQUOTE> <H3> Annotation Type</H3> <BLOCKQUOTE> <P> Each annotation type has its own separate page with the following sections:<UL> <LI>Annotation Type declaration<LI>Annotation Type description<LI>Required Element Summary<LI>Optional Element Summary<LI>Element Detail</UL> </BLOCKQUOTE> </BLOCKQUOTE> <H3> Enum</H3> <BLOCKQUOTE> <P> Each enum has its own separate page with the following sections:<UL> <LI>Enum declaration<LI>Enum description<LI>Enum Constant Summary<LI>Enum Constant Detail</UL> </BLOCKQUOTE> <H3> Tree (Class Hierarchy)</H3> <BLOCKQUOTE> There is a <A HREF="overview-tree.html">Class Hierarchy</A> page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with <code>java.lang.Object</code>. The interfaces do not inherit from <code>java.lang.Object</code>.<UL> <LI>When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.<LI>When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.</UL> </BLOCKQUOTE> <H3> Deprecated API</H3> <BLOCKQUOTE> The <A HREF="deprecated-list.html">Deprecated API</A> page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.</BLOCKQUOTE> <H3> Index</H3> <BLOCKQUOTE> The <A HREF="index-all.html">Index</A> contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.</BLOCKQUOTE> <H3> Prev/Next</H3> These links take you to the next or previous class, interface, package, or related page.<H3> Frames/No Frames</H3> These links show and hide the HTML frames. All pages are available with or without frames. <P> <H3> Serialized Form</H3> Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. <P> <H3> Constant Field Values</H3> The <a href="constant-values.html">Constant Field Values</a> page lists the static final fields and their values. <P> <FONT SIZE="-1"> <EM> This help file applies to API documentation generated using the standard doclet.</EM> </FONT> <BR> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Help</B></FONT>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html?help-doc.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="help-doc.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>
mhmdfy/autopsy
thirdparty/ant-contrib/1.0b3/docs/api/help-doc.html
HTML
apache-2.0
8,895
<!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"/> <title>RakNet: RakNet::Clans_AcceptJoinRequest Struct Reference</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="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">RakNet &#160;<span id="projectnumber">4.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.2 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Related&#160;Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class&#160;List</span></a></li> <li><a href="classes.html"><span>Class&#160;Index</span></a></li> <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&#160;Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceRakNet.html">RakNet</a></li><li class="navelem"><a class="el" href="structRakNet_1_1Clans__AcceptJoinRequest.html">Clans_AcceptJoinRequest</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> &#124; <a href="structRakNet_1_1Clans__AcceptJoinRequest-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">RakNet::Clans_AcceptJoinRequest Struct Reference<div class="ingroups"><a class="el" href="group__LOBBY__2__COMMANDS.html">Lobby2Commands</a></div></div> </div> </div><!--header--> <div class="contents"> <p>A clan leader or subleader accepts a join request from requestingUserHandle to this clan. requestingUserHandle joins the clan as a regular member. Use Emails_Send() to send an email from requestingUserHandle to all clan members with the specified subject and body. <a href="structRakNet_1_1Clans__AcceptJoinRequest.html#details">More...</a></p> <p><code>#include &lt;Lobby2Message.h&gt;</code></p> <div class="dynheader"> Inheritance diagram for RakNet::Clans_AcceptJoinRequest:</div> <div class="dyncontent"> <div class="center"> <img src="structRakNet_1_1Clans__AcceptJoinRequest.png" usemap="#RakNet::Clans_AcceptJoinRequest_map" alt=""/> <map id="RakNet::Clans_AcceptJoinRequest_map" name="RakNet::Clans_AcceptJoinRequest_map"> <area href="structRakNet_1_1Lobby2Message.html" title="A Lobby2Message encapsulates a networked function call from the client." alt="RakNet::Lobby2Message" shape="rect" coords="0,0,205,24"/> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a40edeef3d8cb83581bfd5c50381683c9"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Clans__AcceptJoinRequest.html#a40edeef3d8cb83581bfd5c50381683c9">RequiresAdmin</a> (void) const </td></tr> <tr class="separator:a40edeef3d8cb83581bfd5c50381683c9"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:aea500eefeb8bd1eb6e02502b3e9255b5"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Clans__AcceptJoinRequest.html#aea500eefeb8bd1eb6e02502b3e9255b5">RequiresRankingPermission</a> (void) const </td></tr> <tr class="separator:aea500eefeb8bd1eb6e02502b3e9255b5"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a773ecd5760fdc3ee1f1dbb8703ca88f5"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Clans__AcceptJoinRequest.html#a773ecd5760fdc3ee1f1dbb8703ca88f5">CancelOnDisconnect</a> (void) const </td></tr> <tr class="separator:a773ecd5760fdc3ee1f1dbb8703ca88f5"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a32abbcf9e81b5c82347e0b0d530d4b3d"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Clans__AcceptJoinRequest.html#a32abbcf9e81b5c82347e0b0d530d4b3d">RequiresLogin</a> (void) const </td></tr> <tr class="separator:a32abbcf9e81b5c82347e0b0d530d4b3d"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ad2132f22818d7de139fc63664745a5d1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad2132f22818d7de139fc63664745a5d1"></a> virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Clans__AcceptJoinRequest.html#ad2132f22818d7de139fc63664745a5d1">Serialize</a> (bool writeToBitstream, bool serializeOutput, <a class="el" href="classRakNet_1_1BitStream.html">RakNet::BitStream</a> *bitStream)</td></tr> <tr class="memdesc:ad2132f22818d7de139fc63664745a5d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Overridable serialization of the contents of this message. Defaults to SerializeBase() <br/></td></tr> <tr class="separator:ad2132f22818d7de139fc63664745a5d1"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a04332c5390c7ab54be3977649315a4c1"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Clans__AcceptJoinRequest.html#a04332c5390c7ab54be3977649315a4c1">PrevalidateInput</a> (void)</td></tr> <tr class="separator:a04332c5390c7ab54be3977649315a4c1"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="inherit_header pub_methods_structRakNet_1_1Lobby2Message"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_structRakNet_1_1Lobby2Message')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="structRakNet_1_1Lobby2Message.html">RakNet::Lobby2Message</a></td></tr> <tr class="memitem:a92248c1609297987f41dbfcfd75806f9 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a92248c1609297987f41dbfcfd75806f9"></a> virtual <a class="el" href="group__LOBBY__2__COMMANDS.html#gaf20aff5b3604dbaad834c046a03d8299">Lobby2MessageID</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#a92248c1609297987f41dbfcfd75806f9">GetID</a> (void) const =0</td></tr> <tr class="memdesc:a92248c1609297987f41dbfcfd75806f9 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="mdescLeft">&#160;</td><td class="mdescRight">Every message has an ID identifying it across the network. <br/></td></tr> <tr class="separator:a92248c1609297987f41dbfcfd75806f9 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a73681a9a5bcfe6d7344cb7500c1bae72 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#a73681a9a5bcfe6d7344cb7500c1bae72">ClientImpl</a> (<a class="el" href="classRakNet_1_1Lobby2Plugin.html">RakNet::Lobby2Plugin</a> *client)</td></tr> <tr class="separator:a73681a9a5bcfe6d7344cb7500c1bae72 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a7d2c66bbb0ffbcda05e83e936976c41a inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#a7d2c66bbb0ffbcda05e83e936976c41a">CallCallback</a> (<a class="el" href="structRakNet_1_1Lobby2Callbacks.html">Lobby2Callbacks</a> *cb)=0</td></tr> <tr class="separator:a7d2c66bbb0ffbcda05e83e936976c41a inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a5213270ccd16a7bc6afc8df001b623e7 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#a5213270ccd16a7bc6afc8df001b623e7">ServerPreDBMemoryImpl</a> (<a class="el" href="classRakNet_1_1Lobby2Server.html">Lobby2Server</a> *server, <a class="el" href="classRakNet_1_1RakString.html">RakString</a> userHandle)</td></tr> <tr class="separator:a5213270ccd16a7bc6afc8df001b623e7 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a62cc92ba3fb0e6562cf77d929d231a35 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62cc92ba3fb0e6562cf77d929d231a35"></a> virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#a62cc92ba3fb0e6562cf77d929d231a35">ServerPostDBMemoryImpl</a> (<a class="el" href="classRakNet_1_1Lobby2Server.html">Lobby2Server</a> *server, <a class="el" href="classRakNet_1_1RakString.html">RakString</a> userHandle)</td></tr> <tr class="memdesc:a62cc92ba3fb0e6562cf77d929d231a35 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="mdescLeft">&#160;</td><td class="mdescRight">Do any <a class="el" href="classRakNet_1_1Lobby2Server.html" title="The base class for the lobby server, without database specific functionality.">Lobby2Server</a> functionality after the message has been processed by the database, in the server thread. <br/></td></tr> <tr class="separator:a62cc92ba3fb0e6562cf77d929d231a35 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a39a885f1a8d8b636e5c7bbeb13d4f822 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#a39a885f1a8d8b636e5c7bbeb13d4f822">ServerDBImpl</a> (<a class="el" href="structRakNet_1_1Lobby2ServerCommand.html">Lobby2ServerCommand</a> *command, void *databaseInterface)</td></tr> <tr class="separator:a39a885f1a8d8b636e5c7bbeb13d4f822 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a6a85caa9e47c7d9fec7f156c5e7c723a inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#a6a85caa9e47c7d9fec7f156c5e7c723a">ValidateHandle</a> (<a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> *handle)</td></tr> <tr class="separator:a6a85caa9e47c7d9fec7f156c5e7c723a inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:af510ed0df868969f12118ea32027334b inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af510ed0df868969f12118ea32027334b"></a> bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#af510ed0df868969f12118ea32027334b">ValidateBinary</a> (RakNetSmartPtr&lt; BinaryDataBlock &gt;binaryDataBlock)</td></tr> <tr class="memdesc:af510ed0df868969f12118ea32027334b inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="mdescLeft">&#160;</td><td class="mdescRight">Binary data cannot be longer than L2_MAX_BINARY_DATA_LENGTH. <br/></td></tr> <tr class="separator:af510ed0df868969f12118ea32027334b inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ada4ddbe1b8d880b6beb3cec2d107c3cf inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ada4ddbe1b8d880b6beb3cec2d107c3cf"></a> bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#ada4ddbe1b8d880b6beb3cec2d107c3cf">ValidateRequiredText</a> (<a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> *text)</td></tr> <tr class="memdesc:ada4ddbe1b8d880b6beb3cec2d107c3cf inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="mdescLeft">&#160;</td><td class="mdescRight">Required text cannot be empty. <br/></td></tr> <tr class="separator:ada4ddbe1b8d880b6beb3cec2d107c3cf inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a4cf58429201d0c452d354b6add784712 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4cf58429201d0c452d354b6add784712"></a> bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#a4cf58429201d0c452d354b6add784712">ValidatePassword</a> (<a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> *text)</td></tr> <tr class="memdesc:a4cf58429201d0c452d354b6add784712 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="mdescLeft">&#160;</td><td class="mdescRight">Passwords must contain at least 5 characters. <br/></td></tr> <tr class="separator:a4cf58429201d0c452d354b6add784712 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:aec0eeb9161acabd01464f4b875abed31 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aec0eeb9161acabd01464f4b875abed31"></a> bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#aec0eeb9161acabd01464f4b875abed31">ValidateEmailAddress</a> (<a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> *text)</td></tr> <tr class="memdesc:aec0eeb9161acabd01464f4b875abed31 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check email address format. <br/></td></tr> <tr class="separator:aec0eeb9161acabd01464f4b875abed31 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ae417f773c4d48bc1cce69c656f2952fd inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae417f773c4d48bc1cce69c656f2952fd"></a> virtual const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#ae417f773c4d48bc1cce69c656f2952fd">GetName</a> (void) const =0</td></tr> <tr class="memdesc:ae417f773c4d48bc1cce69c656f2952fd inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert the enumeration representing this message to a string, and return it. Done automatically by macros. <br/></td></tr> <tr class="separator:ae417f773c4d48bc1cce69c656f2952fd inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ad48d6053a9d086c29dc3108e7de557dc inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad48d6053a9d086c29dc3108e7de557dc"></a> virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#ad48d6053a9d086c29dc3108e7de557dc">DebugMsg</a> (<a class="el" href="classRakNet_1_1RakString.html">RakNet::RakString</a> &amp;out) const =0</td></tr> <tr class="memdesc:ad48d6053a9d086c29dc3108e7de557dc inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the result of this message to out(). Done automatically by macros. <br/></td></tr> <tr class="separator:ad48d6053a9d086c29dc3108e7de557dc inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:accf4946d351e9bb17ad197fc21b0b473 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="accf4946d351e9bb17ad197fc21b0b473"></a> virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#accf4946d351e9bb17ad197fc21b0b473">DebugPrintf</a> (void) const </td></tr> <tr class="memdesc:accf4946d351e9bb17ad197fc21b0b473 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the result of DebugMsg. <br/></td></tr> <tr class="separator:accf4946d351e9bb17ad197fc21b0b473 inherit pub_methods_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> Additional Inherited Members</h2></td></tr> <tr class="inherit_header pub_attribs_structRakNet_1_1Lobby2Message"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_structRakNet_1_1Lobby2Message')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="structRakNet_1_1Lobby2Message.html">RakNet::Lobby2Message</a></td></tr> <tr class="memitem:a750b6a5d792d6f6c2532bfc7e3f74c99 inherit pub_attribs_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a750b6a5d792d6f6c2532bfc7e3f74c99"></a> RakNet::Lobby2ResultCode&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#a750b6a5d792d6f6c2532bfc7e3f74c99">resultCode</a></td></tr> <tr class="memdesc:a750b6a5d792d6f6c2532bfc7e3f74c99 inherit pub_attribs_structRakNet_1_1Lobby2Message"><td class="mdescLeft">&#160;</td><td class="mdescRight">Result of the operation. L2RC_SUCCESS means the result completed. Anything else means an error. <br/></td></tr> <tr class="separator:a750b6a5d792d6f6c2532bfc7e3f74c99 inherit pub_attribs_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a6e29d665abe3559b60e9fadfb2fa1b40 inherit pub_attribs_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#a6e29d665abe3559b60e9fadfb2fa1b40">callbackId</a></td></tr> <tr class="separator:a6e29d665abe3559b60e9fadfb2fa1b40 inherit pub_attribs_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a5046c82fcca8bac36babe863c55ec9eb inherit pub_attribs_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5046c82fcca8bac36babe863c55ec9eb"></a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#a5046c82fcca8bac36babe863c55ec9eb">extendedResultCode</a></td></tr> <tr class="memdesc:a5046c82fcca8bac36babe863c55ec9eb inherit pub_attribs_structRakNet_1_1Lobby2Message"><td class="mdescLeft">&#160;</td><td class="mdescRight">Used for consoles. <br/></td></tr> <tr class="separator:a5046c82fcca8bac36babe863c55ec9eb inherit pub_attribs_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a49c6460be7043aa3dd8f69955a4fb426 inherit pub_attribs_structRakNet_1_1Lobby2Message"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRakNet_1_1Lobby2Message.html#a49c6460be7043aa3dd8f69955a4fb426">requestId</a></td></tr> <tr class="separator:a49c6460be7043aa3dd8f69955a4fb426 inherit pub_attribs_structRakNet_1_1Lobby2Message"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>A clan leader or subleader accepts a join request from requestingUserHandle to this clan. requestingUserHandle joins the clan as a regular member. Use Emails_Send() to send an email from requestingUserHandle to all clan members with the specified subject and body. </p> </div><h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="a773ecd5760fdc3ee1f1dbb8703ca88f5"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual bool RakNet::Clans_AcceptJoinRequest::CancelOnDisconnect </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Should this message not be processed on the server if the requesting user disconnects before it completes? This should be true for functions that only return data. False for functions that affect other users, or change the database </p> <p>Implements <a class="el" href="structRakNet_1_1Lobby2Message.html#aeab0f7b852042f9d664cb7ee0b8b0458">RakNet::Lobby2Message</a>.</p> </div> </div> <a class="anchor" id="a04332c5390c7ab54be3977649315a4c1"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual bool RakNet::Clans_AcceptJoinRequest::PrevalidateInput </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>If data members can be validated for correctness in the server's main thread, override this function and do those checks here. </p> <dl class="section return"><dt>Returns</dt><dd>True for input OK. False if the input is bad and does not need to be further processed in the database threads. </dd></dl> <p>Reimplemented from <a class="el" href="structRakNet_1_1Lobby2Message.html#a419b02230facc25fe97e364ee914e996">RakNet::Lobby2Message</a>.</p> </div> </div> <a class="anchor" id="a40edeef3d8cb83581bfd5c50381683c9"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual bool RakNet::Clans_AcceptJoinRequest::RequiresAdmin </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Is this message something that should only be run by a system with admin privileges? Set admin privileges with <a class="el" href="classRakNet_1_1Lobby2Server.html#a499cbfd420d6a6caecd62a8143a641da" title="If Lobby2Message::RequiresAdmin() returns true, the message can only be processed from a remote syste...">Lobby2Server::AddAdminAddress()</a> </p> <p>Implements <a class="el" href="structRakNet_1_1Lobby2Message.html#a79cbb400e4521af2c353fbd640fed0f7">RakNet::Lobby2Message</a>.</p> </div> </div> <a class="anchor" id="a32abbcf9e81b5c82347e0b0d530d4b3d"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual bool RakNet::Clans_AcceptJoinRequest::RequiresLogin </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Does this function require logging into the server before it can be executed? If true, the user id and user handle will be automatically inferred by the last login by looking up the sender's system address. If false, the message should include the username so the database query can lookup which user is performing this operation. </p> <p>Implements <a class="el" href="structRakNet_1_1Lobby2Message.html#a575e23419cd160aca576b56ee7476227">RakNet::Lobby2Message</a>.</p> </div> </div> <a class="anchor" id="aea500eefeb8bd1eb6e02502b3e9255b5"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual bool RakNet::Clans_AcceptJoinRequest::RequiresRankingPermission </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Is this message something that should only be run by a system with ranking upload priviledges? Set ranking privileges with <a class="el" href="classRakNet_1_1Lobby2Server.html#a16a9ef14b0c08f5c01745908666064d5" title="If Lobby2Message::RequiresRankingPermission() returns true, then the system that sent the command mus...">Lobby2Server::AddRankingAddress()</a> </p> <p>Implements <a class="el" href="structRakNet_1_1Lobby2Message.html#a3eab67e30f491cd3410b9d850ffcecea">RakNet::Lobby2Message</a>.</p> </div> </div> <hr/>The documentation for this struct was generated from the following file:<ul> <li>D:/temp/RakNet_PC/DependentExtensions/Lobby2/Lobby2Message.h</li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Mon Jun 2 2014 20:10:30 for RakNet by &#160;<a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.2 </small></address> </body> </html>
JayStilla/AIEComplexSystems
dep/RakNet/Help/Doxygen/html/structRakNet_1_1Clans__AcceptJoinRequest.html
HTML
mit
27,638
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>The source code</title> <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="../resources/prettify/prettify.js"></script> <style type="text/css"> .highlight { display: block; background-color: #ddd; } </style> <script type="text/javascript"> function highlight() { document.getElementById(location.hash.replace(/#/, "")).className = "highlight"; } </script> </head> <body onload="prettyPrint(); highlight();"> <pre class="prettyprint lang-js"><span id='Ext-chart-series-Radar'>/** </span> * @class Ext.chart.series.Radar * * Creates a Radar Chart. A Radar Chart is a useful visualization technique for comparing different quantitative values for * a constrained number of categories. * * As with all other series, the Radar series must be appended in the *series* Chart array configuration. See the Chart * documentation for more information. A typical configuration object for the radar series could be: * * @example * var store = Ext.create('Ext.data.JsonStore', { * fields: ['name', 'data1', 'data2', 'data3'], * data: [ * { 'name': 'metric one', 'data1': 14, 'data2': 12, 'data3': 13 }, * { 'name': 'metric two', 'data1': 16, 'data2': 8, 'data3': 3 }, * { 'name': 'metric three', 'data1': 14, 'data2': 2, 'data3': 7 }, * { 'name': 'metric four', 'data1': 6, 'data2': 14, 'data3': 23 }, * { 'name': 'metric five', 'data1': 36, 'data2': 38, 'data3': 33 } * ] * }); * * Ext.create('Ext.chart.Chart', { * renderTo: Ext.getBody(), * width: 500, * height: 300, * animate: true, * theme:'Category2', * store: store, * axes: [{ * type: 'Radial', * position: 'radial', * label: { * display: true * } * }], * series: [{ * type: 'radar', * xField: 'name', * yField: 'data1', * showInLegend: true, * showMarkers: true, * markerConfig: { * radius: 5, * size: 5 * }, * style: { * 'stroke-width': 2, * fill: 'none' * } * },{ * type: 'radar', * xField: 'name', * yField: 'data2', * showMarkers: true, * showInLegend: true, * markerConfig: { * radius: 5, * size: 5 * }, * style: { * 'stroke-width': 2, * fill: 'none' * } * },{ * type: 'radar', * xField: 'name', * yField: 'data3', * showMarkers: true, * showInLegend: true, * markerConfig: { * radius: 5, * size: 5 * }, * style: { * 'stroke-width': 2, * fill: 'none' * } * }] * }); * * In this configuration we add three series to the chart. Each of these series is bound to the same * categories field, `name` but bound to different properties for each category, `data1`, `data2` and * `data3` respectively. All series display markers by having `showMarkers` enabled. The configuration * for the markers of each series can be set by adding properties onto the markerConfig object. * Finally we override some theme styling properties by adding properties to the `style` object. */ Ext.define('Ext.chart.series.Radar', { /* Begin Definitions */ extend: 'Ext.chart.series.Series', requires: ['Ext.chart.Shape', 'Ext.fx.Anim'], <span id='Ext-chart-series-Radar-cfg-type'> /* End Definitions */ </span> type: &quot;radar&quot;, alias: 'series.radar', <span id='Ext-chart-series-Radar-property-rad'> rad: Math.PI / 180, </span> <span id='Ext-chart-series-Radar-cfg-showInLegend'> showInLegend: false, </span> <span id='Ext-chart-series-Radar-cfg-style'> /** </span> * @cfg {Object} style * An object containing styles for overriding series styles from Theming. */ style: {}, <span id='Ext-chart-series-Radar-cfg-xField'> /** </span> * @cfg {String} xField * The name of the data Model field corresponding to the x-axis (angle) value. */ <span id='Ext-chart-series-Radar-cfg-yField'> /** </span> * @cfg {String} yField * The name of the data Model field corresponding to the y-axis (radius) value. */ <span id='Ext-chart-series-Radar-cfg-showMarkers'> /** </span> * @cfg {Boolean} showMarkers * Whether markers should be displayed at the data points of the series. If true, * then the {@link #markerConfig} config item will determine the markers' styling. */ <span id='Ext-chart-series-Radar-cfg-markerConfig'> /** </span> * @cfg {Object} markerConfig * The display style for the markers. Only used if {@link #showMarkers} is true. * The markerConfig is a configuration object containing the same set of properties defined in * the Sprite class. For example, if we were to set red circles as markers to the series we could * pass the object: * * @example * markerConfig: { * type: 'circle', * radius: 4, * 'fill': '#f00' * } */ constructor: function(config) { this.callParent(arguments); var me = this, surface = me.chart.surface; me.group = surface.getGroup(me.seriesId); if (me.showMarkers) { me.markerGroup = surface.getGroup(me.seriesId + '-markers'); } }, <span id='Ext-chart-series-Radar-method-drawSeries'> /** </span> * Draws the series for the current chart. */ drawSeries: function() { var me = this, store = me.chart.getChartStore(), data = store.data.items, d, record, group = me.group, chart = me.chart, seriesItems = chart.series.items, s, sLen, series, field = me.field || me.yField, surface = chart.surface, chartBBox = chart.chartBBox, colorArrayStyle = me.colorArrayStyle, centerX, centerY, items, radius, maxValue = 0, fields = [], max = Math.max, cos = Math.cos, sin = Math.sin, pi2 = Math.PI * 2, l = store.getCount(), startPath, path, x, y, rho, i, nfields, seriesStyle = me.seriesStyle, axis = chart.axes &amp;&amp; chart.axes.get(0), aggregate = !(axis &amp;&amp; axis.maximum); me.setBBox(); maxValue = aggregate? 0 : (axis.maximum || 0); Ext.apply(seriesStyle, me.style || {}); //if the store is empty then there's nothing to draw if (!store || !store.getCount() || me.seriesIsHidden) { me.hide(); me.items = []; if (me.radar) { me.radar.hide(true); } me.radar = null; return; } if(!seriesStyle['stroke']){ seriesStyle['stroke'] = colorArrayStyle[me.themeIdx % colorArrayStyle.length]; } me.unHighlightItem(); me.cleanHighlights(); centerX = me.centerX = chartBBox.x + (chartBBox.width / 2); centerY = me.centerY = chartBBox.y + (chartBBox.height / 2); me.radius = radius = Math.min(chartBBox.width, chartBBox.height) /2; me.items = items = []; if (aggregate) { //get all renderer fields for (s = 0, sLen = seriesItems.length; s &lt; sLen; s++) { series = seriesItems[s]; fields.push(series.yField); } //get maxValue to interpolate for (d = 0; d &lt; l; d++) { record = data[d]; for (i = 0, nfields = fields.length; i &lt; nfields; i++) { maxValue = max(+record.get(fields[i]), maxValue); } } } //ensure non-zero value. maxValue = maxValue || 1; //create path and items startPath = []; path = []; for (i = 0; i &lt; l; i++) { record = data[i]; rho = radius * record.get(field) / maxValue; x = rho * cos(i / l * pi2); y = rho * sin(i / l * pi2); if (i == 0) { path.push('M', x + centerX, y + centerY); startPath.push('M', 0.01 * x + centerX, 0.01 * y + centerY); } else { path.push('L', x + centerX, y + centerY); startPath.push('L', 0.01 * x + centerX, 0.01 * y + centerY); } items.push({ sprite: false, //TODO(nico): add markers point: [centerX + x, centerY + y], storeItem: record, series: me }); } path.push('Z'); //create path sprite if (!me.radar) { me.radar = surface.add(Ext.apply({ type: 'path', group: group, path: startPath }, seriesStyle || {})); } //reset on resizing if (chart.resizing) { me.radar.setAttributes({ path: startPath }, true); } //render/animate if (chart.animate) { me.onAnimate(me.radar, { to: Ext.apply({ path: path }, seriesStyle || {}) }); } else { me.radar.setAttributes(Ext.apply({ path: path }, seriesStyle || {}), true); } //render markers, labels and callouts if (me.showMarkers) { me.drawMarkers(); } me.renderLabels(); me.renderCallouts(); }, <span id='Ext-chart-series-Radar-method-drawMarkers'> // @private draws the markers for the lines (if any). </span> drawMarkers: function() { var me = this, chart = me.chart, surface = chart.surface, store = chart.getChartStore(), markerStyle = Ext.apply({}, me.markerStyle || {}), endMarkerStyle = Ext.apply(markerStyle, me.markerConfig, { fill: me.colorArrayStyle[me.themeIdx % me.colorArrayStyle.length] }), items = me.items, type = endMarkerStyle.type, markerGroup = me.markerGroup, centerX = me.centerX, centerY = me.centerY, item, i, l, marker, rendererAttributes; delete endMarkerStyle.type; for (i = 0, l = items.length; i &lt; l; i++) { item = items[i]; marker = markerGroup.getAt(i); if (!marker) { marker = Ext.chart.Shape[type](surface, Ext.apply({ group: markerGroup, x: 0, y: 0, translate: { x: centerX, y: centerY } }, endMarkerStyle)); } else { marker.show(); } item.sprite = marker; if (chart.resizing) { marker.setAttributes({ x: 0, y: 0, translate: { x: centerX, y: centerY } }, true); } marker._to = { translate: { x: item.point[0], y: item.point[1] } }; //render/animate rendererAttributes = me.renderer(marker, store.getAt(i), marker._to, i, store); rendererAttributes = Ext.applyIf(rendererAttributes || {}, endMarkerStyle || {}); if (chart.animate) { me.onAnimate(marker, { to: rendererAttributes }); } else { marker.setAttributes(rendererAttributes, true); } } }, <span id='Ext-chart-series-Radar-method-isItemInPoint'> isItemInPoint: function(x, y, item) { </span> var point, tolerance = 10, abs = Math.abs; point = item.point; return (abs(point[0] - x) &lt;= tolerance &amp;&amp; abs(point[1] - y) &lt;= tolerance); }, <span id='Ext-chart-series-Radar-method-onCreateLabel'> // @private callback for when creating a label sprite. </span> onCreateLabel: function(storeItem, item, i, display) { var me = this, group = me.labelsGroup, config = me.label, centerX = me.centerX, centerY = me.centerY, endLabelStyle = Ext.apply({}, config, me.seriesLabelStyle || {}); return me.chart.surface.add(Ext.apply({ 'type': 'text', 'text-anchor': 'middle', 'group': group, 'x': centerX, 'y': centerY }, endLabelStyle || {})); }, <span id='Ext-chart-series-Radar-method-onPlaceLabel'> // @private callback for when placing a label sprite. </span> onPlaceLabel: function(label, storeItem, item, i, display, animate, index) { var me = this, chart = me.chart, resizing = chart.resizing, config = me.label, format = config.renderer, field = config.field, centerX = me.centerX, centerY = me.centerY, opt = { x: Number(item.point[0]), y: Number(item.point[1]) }, x = opt.x - centerX, y = opt.y - centerY, theta = Math.atan2(y, x || 1), deg = theta * 180 / Math.PI, labelBox, direction; function fixAngle(a) { if (a &lt; 0) { a += 360; } return a % 360; } label.setAttributes({ text: format(storeItem.get(field), label, storeItem, item, i, display, animate, index), hidden: true }, true); // Move the label by half its height or width depending on // the angle so the label doesn't overlap the graph. labelBox = label.getBBox(); deg = fixAngle(deg); if ((deg &gt; 45 &amp;&amp; deg &lt; 135) || (deg &gt; 225 &amp;&amp; deg &lt; 315)) { direction = (deg &gt; 45 &amp;&amp; deg &lt; 135 ? 1 : -1); opt.y += direction * labelBox.height/2; } else { direction = (deg &gt;= 135 &amp;&amp; deg &lt;= 225 ? -1 : 1); opt.x += direction * labelBox.width/2; } if (resizing) { label.setAttributes({ x: centerX, y: centerY }, true); } if (animate) { label.show(true); me.onAnimate(label, { to: opt }); } else { label.setAttributes(opt, true); label.show(true); } }, <span id='Ext-chart-series-Radar-method-toggleAll'> // @private for toggling (show/hide) series. </span> toggleAll: function(show) { var me = this, i, ln, shadow, shadows; if (!show) { Ext.chart.series.Radar.superclass.hideAll.call(me); } else { Ext.chart.series.Radar.superclass.showAll.call(me); } if (me.radar) { me.radar.setAttributes({ hidden: !show }, true); //hide shadows too if (me.radar.shadows) { for (i = 0, shadows = me.radar.shadows, ln = shadows.length; i &lt; ln; i++) { shadow = shadows[i]; shadow.setAttributes({ hidden: !show }, true); } } } }, <span id='Ext-chart-series-Radar-method-hideAll'> // @private hide all elements in the series. </span> hideAll: function() { this.toggleAll(false); this.hideMarkers(0); }, <span id='Ext-chart-series-Radar-method-showAll'> // @private show all elements in the series. </span> showAll: function() { this.toggleAll(true); }, <span id='Ext-chart-series-Radar-method-hideMarkers'> // @private hide all markers that belong to `markerGroup` </span> hideMarkers: function(index) { var me = this, count = me.markerGroup &amp;&amp; me.markerGroup.getCount() || 0, i = index || 0; for (; i &lt; count; i++) { me.markerGroup.getAt(i).hide(true); } }, <span id='Ext-chart-series-Radar-method-getAxesForXAndYFields'> // @private return the radial axis as yAxis (there is no xAxis). </span> // Required by the base class 'Ext.chart.axis.Axis'. getAxesForXAndYFields: function() { var me = this, chart = me.chart, axes = chart.axes, axis = [].concat(axes &amp;&amp; axes.get(0)); return { yAxis: axis }; } }); </pre> </body> </html>
rch/flask-openshift
wsgi/container/pkgs/sencha/static/ext-4.2.2.1144/docs/source/Radar.html
HTML
mit
17,767
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <!-- Meta, title, CSS, favicons, etc. --> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Gentelella Alela! | </title> <!-- Bootstrap --> <link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <!-- Font Awesome --> <link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet"> <!-- NProgress --> <link href="../vendors/nprogress/nprogress.css" rel="stylesheet"> <!-- iCheck --> <link href="../vendors/iCheck/skins/flat/green.css" rel="stylesheet"> <!-- bootstrap-wysiwyg --> <link href="../vendors/google-code-prettify/bin/prettify.min.css" rel="stylesheet"> <!-- Select2 --> <link href="../vendors/select2/dist/css/select2.min.css" rel="stylesheet"> <!-- Switchery --> <link href="../vendors/switchery/dist/switchery.min.css" rel="stylesheet"> <!-- starrr --> <link href="../vendors/starrr/dist/starrr.css" rel="stylesheet"> <!-- bootstrap-daterangepicker --> <link href="../vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet"> <!-- Custom Theme Style --> <link href="../build/css/custom.min.css" rel="stylesheet"> </head> <body class="nav-md"> <div class="container body"> <div class="main_container"> <div class="col-md-3 left_col"> <div class="left_col scroll-view"> <div class="navbar nav_title" style="border: 0;"> <a href="index.html" class="site_title"><i class="fa fa-paw"></i> <span>Gentelella Alela!</span></a> </div> <div class="clearfix"></div> <!-- menu profile quick info --> <div class="profile clearfix"> <div class="profile_pic"> <img src="images/img.jpg" alt="..." class="img-circle profile_img"> </div> <div class="profile_info"> <span>Welcome,</span> <h2>John Doe</h2> </div> </div> <!-- /menu profile quick info --> <br /> <!-- sidebar menu --> <div id="sidebar-menu" class="main_menu_side hidden-print main_menu"> <div class="menu_section"> <h3>General</h3> <ul class="nav side-menu"> <li><a><i class="fa fa-home"></i> Home <span class="fa fa-chevron-down"></span></a> <ul class="nav child_menu"> <li><a href="index.html">Dashboard</a></li> <li><a href="index2.html">Dashboard2</a></li> <li><a href="index3.html">Dashboard3</a></li> </ul> </li> <li><a><i class="fa fa-edit"></i> Forms <span class="fa fa-chevron-down"></span></a> <ul class="nav child_menu"> <li><a href="form.html">General Form</a></li> <li><a href="form_advanced.html">Advanced Components</a></li> <li><a href="form_validation.html">Form Validation</a></li> <li><a href="form_wizards.html">Form Wizard</a></li> <li><a href="form_upload.html">Form Upload</a></li> <li><a href="form_buttons.html">Form Buttons</a></li> </ul> </li> <li><a><i class="fa fa-desktop"></i> UI Elements <span class="fa fa-chevron-down"></span></a> <ul class="nav child_menu"> <li><a href="general_elements.html">General Elements</a></li> <li><a href="media_gallery.html">Media Gallery</a></li> <li><a href="typography.html">Typography</a></li> <li><a href="icons.html">Icons</a></li> <li><a href="glyphicons.html">Glyphicons</a></li> <li><a href="widgets.html">Widgets</a></li> <li><a href="invoice.html">Invoice</a></li> <li><a href="inbox.html">Inbox</a></li> <li><a href="calendar.html">Calendar</a></li> </ul> </li> <li><a><i class="fa fa-table"></i> Tables <span class="fa fa-chevron-down"></span></a> <ul class="nav child_menu"> <li><a href="tables.html">Tables</a></li> <li><a href="tables_dynamic.html">Table Dynamic</a></li> </ul> </li> <li><a><i class="fa fa-bar-chart-o"></i> Data Presentation <span class="fa fa-chevron-down"></span></a> <ul class="nav child_menu"> <li><a href="chartjs.html">Chart JS</a></li> <li><a href="chartjs2.html">Chart JS2</a></li> <li><a href="morisjs.html">Moris JS</a></li> <li><a href="echarts.html">ECharts</a></li> <li><a href="other_charts.html">Other Charts</a></li> </ul> </li> <li><a><i class="fa fa-clone"></i>Layouts <span class="fa fa-chevron-down"></span></a> <ul class="nav child_menu"> <li><a href="fixed_sidebar.html">Fixed Sidebar</a></li> <li><a href="fixed_footer.html">Fixed Footer</a></li> </ul> </li> </ul> </div> <div class="menu_section"> <h3>Live On</h3> <ul class="nav side-menu"> <li><a><i class="fa fa-bug"></i> Additional Pages <span class="fa fa-chevron-down"></span></a> <ul class="nav child_menu"> <li><a href="e_commerce.html">E-commerce</a></li> <li><a href="projects.html">Projects</a></li> <li><a href="project_detail.html">Project Detail</a></li> <li><a href="contacts.html">Contacts</a></li> <li><a href="profile.html">Profile</a></li> </ul> </li> <li><a><i class="fa fa-windows"></i> Extras <span class="fa fa-chevron-down"></span></a> <ul class="nav child_menu"> <li><a href="page_403.html">403 Error</a></li> <li><a href="page_404.html">404 Error</a></li> <li><a href="page_500.html">500 Error</a></li> <li><a href="plain_page.html">Plain Page</a></li> <li><a href="login.html">Login Page</a></li> <li><a href="pricing_tables.html">Pricing Tables</a></li> </ul> </li> <li><a><i class="fa fa-sitemap"></i> Multilevel Menu <span class="fa fa-chevron-down"></span></a> <ul class="nav child_menu"> <li><a href="#level1_1">Level One</a> <li><a>Level One<span class="fa fa-chevron-down"></span></a> <ul class="nav child_menu"> <li class="sub_menu"><a href="level2.html">Level Two</a> </li> <li><a href="#level2_1">Level Two</a> </li> <li><a href="#level2_2">Level Two</a> </li> </ul> </li> <li><a href="#level1_2">Level One</a> </li> </ul> </li> <li><a href="javascript:void(0)"><i class="fa fa-laptop"></i> Landing Page <span class="label label-success pull-right">Coming Soon</span></a></li> </ul> </div> </div> <!-- /sidebar menu --> <!-- /menu footer buttons --> <div class="sidebar-footer hidden-small"> <a data-toggle="tooltip" data-placement="top" title="Settings"> <span class="glyphicon glyphicon-cog" aria-hidden="true"></span> </a> <a data-toggle="tooltip" data-placement="top" title="FullScreen"> <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span> </a> <a data-toggle="tooltip" data-placement="top" title="Lock"> <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span> </a> <a data-toggle="tooltip" data-placement="top" title="Logout" href="login.html"> <span class="glyphicon glyphicon-off" aria-hidden="true"></span> </a> </div> <!-- /menu footer buttons --> </div> </div> <!-- top navigation --> <div class="top_nav"> <div class="nav_menu"> <nav> <div class="nav toggle"> <a id="menu_toggle"><i class="fa fa-bars"></i></a> </div> <ul class="nav navbar-nav navbar-right"> <li class=""> <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> <img src="images/img.jpg" alt="">John Doe <span class=" fa fa-angle-down"></span> </a> <ul class="dropdown-menu dropdown-usermenu pull-right"> <li><a href="javascript:;"> Profile</a></li> <li> <a href="javascript:;"> <span class="badge bg-red pull-right">50%</span> <span>Settings</span> </a> </li> <li><a href="javascript:;">Help</a></li> <li><a href="login.html"><i class="fa fa-sign-out pull-right"></i> Log Out</a></li> </ul> </li> <li role="presentation" class="dropdown"> <a href="javascript:;" class="dropdown-toggle info-number" data-toggle="dropdown" aria-expanded="false"> <i class="fa fa-envelope-o"></i> <span class="badge bg-green">6</span> </a> <ul id="menu1" class="dropdown-menu list-unstyled msg_list" role="menu"> <li> <a> <span class="image"><img src="images/img.jpg" alt="Profile Image" /></span> <span> <span>John Smith</span> <span class="time">3 mins ago</span> </span> <span class="message"> Film festivals used to be do-or-die moments for movie makers. They were where... </span> </a> </li> <li> <a> <span class="image"><img src="images/img.jpg" alt="Profile Image" /></span> <span> <span>John Smith</span> <span class="time">3 mins ago</span> </span> <span class="message"> Film festivals used to be do-or-die moments for movie makers. They were where... </span> </a> </li> <li> <a> <span class="image"><img src="images/img.jpg" alt="Profile Image" /></span> <span> <span>John Smith</span> <span class="time">3 mins ago</span> </span> <span class="message"> Film festivals used to be do-or-die moments for movie makers. They were where... </span> </a> </li> <li> <a> <span class="image"><img src="images/img.jpg" alt="Profile Image" /></span> <span> <span>John Smith</span> <span class="time">3 mins ago</span> </span> <span class="message"> Film festivals used to be do-or-die moments for movie makers. They were where... </span> </a> </li> <li> <div class="text-center"> <a> <strong>See All Alerts</strong> <i class="fa fa-angle-right"></i> </a> </div> </li> </ul> </li> </ul> </nav> </div> </div> <!-- /top navigation --> <!-- page content --> <div class="right_col" role="main"> <div class=""> <div class="page-title"> <div class="title_left"> <h3>Form Elements</h3> </div> <div class="title_right"> <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search for..."> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </div> </div> <div class="clearfix"></div> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="x_panel"> <div class="x_title"> <h2>Form Design <small>different form elements</small></h2> <ul class="nav navbar-right panel_toolbox"> <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a> <ul class="dropdown-menu" role="menu"> <li><a href="#">Settings 1</a> </li> <li><a href="#">Settings 2</a> </li> </ul> </li> <li><a class="close-link"><i class="fa fa-close"></i></a> </li> </ul> <div class="clearfix"></div> </div> <div class="x_content"> <br /> <form id="demo-form2" data-parsley-validate class="form-horizontal form-label-left"> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">First Name <span class="required">*</span> </label> <div class="col-md-6 col-sm-6 col-xs-12"> <input type="text" id="first-name" required="required" class="form-control col-md-7 col-xs-12"> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">Last Name <span class="required">*</span> </label> <div class="col-md-6 col-sm-6 col-xs-12"> <input type="text" id="last-name" name="last-name" required="required" class="form-control col-md-7 col-xs-12"> </div> </div> <div class="form-group"> <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">Middle Name / Initial</label> <div class="col-md-6 col-sm-6 col-xs-12"> <input id="middle-name" class="form-control col-md-7 col-xs-12" type="text" name="middle-name"> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Gender</label> <div class="col-md-6 col-sm-6 col-xs-12"> <div id="gender" class="btn-group" data-toggle="buttons"> <label class="btn btn-default" data-toggle-class="btn-primary" data-toggle-passive-class="btn-default"> <input type="radio" name="gender" value="male"> &nbsp; Male &nbsp; </label> <label class="btn btn-primary" data-toggle-class="btn-primary" data-toggle-passive-class="btn-default"> <input type="radio" name="gender" value="female"> Female </label> </div> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Date Of Birth <span class="required">*</span> </label> <div class="col-md-6 col-sm-6 col-xs-12"> <input id="birthday" class="date-picker form-control col-md-7 col-xs-12" required="required" type="text"> </div> </div> <div class="ln_solid"></div> <div class="form-group"> <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3"> <button class="btn btn-primary" type="button">Cancel</button> <button class="btn btn-primary" type="reset">Reset</button> <button type="submit" class="btn btn-success">Submit</button> </div> </div> </form> </div> </div> </div> </div> <div class="row"> <div class="col-md-6 col-xs-12"> <div class="x_panel"> <div class="x_title"> <h2>Form Design <small>different form elements</small></h2> <ul class="nav navbar-right panel_toolbox"> <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a> <ul class="dropdown-menu" role="menu"> <li><a href="#">Settings 1</a> </li> <li><a href="#">Settings 2</a> </li> </ul> </li> <li><a class="close-link"><i class="fa fa-close"></i></a> </li> </ul> <div class="clearfix"></div> </div> <div class="x_content"> <br /> <form class="form-horizontal form-label-left input_mask"> <div class="col-md-6 col-sm-6 col-xs-12 form-group has-feedback"> <input type="text" class="form-control has-feedback-left" id="inputSuccess2" placeholder="First Name"> <span class="fa fa-user form-control-feedback left" aria-hidden="true"></span> </div> <div class="col-md-6 col-sm-6 col-xs-12 form-group has-feedback"> <input type="text" class="form-control" id="inputSuccess3" placeholder="Last Name"> <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span> </div> <div class="col-md-6 col-sm-6 col-xs-12 form-group has-feedback"> <input type="text" class="form-control has-feedback-left" id="inputSuccess4" placeholder="Email"> <span class="fa fa-envelope form-control-feedback left" aria-hidden="true"></span> </div> <div class="col-md-6 col-sm-6 col-xs-12 form-group has-feedback"> <input type="text" class="form-control" id="inputSuccess5" placeholder="Phone"> <span class="fa fa-phone form-control-feedback right" aria-hidden="true"></span> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Default Input</label> <div class="col-md-9 col-sm-9 col-xs-12"> <input type="text" class="form-control" placeholder="Default Input"> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Disabled Input </label> <div class="col-md-9 col-sm-9 col-xs-12"> <input type="text" class="form-control" disabled="disabled" placeholder="Disabled Input"> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Read-Only Input</label> <div class="col-md-9 col-sm-9 col-xs-12"> <input type="text" class="form-control" readonly="readonly" placeholder="Read-Only Input"> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Date Of Birth <span class="required">*</span> </label> <div class="col-md-9 col-sm-9 col-xs-12"> <input class="date-picker form-control col-md-7 col-xs-12" required="required" type="text"> </div> </div> <div class="ln_solid"></div> <div class="form-group"> <div class="col-md-9 col-sm-9 col-xs-12 col-md-offset-3"> <button type="button" class="btn btn-primary">Cancel</button> <button class="btn btn-primary" type="reset">Reset</button> <button type="submit" class="btn btn-success">Submit</button> </div> </div> </form> </div> </div> <div class="x_panel"> <div class="x_title"> <h2>Star Rating</h2> <ul class="nav navbar-right panel_toolbox"> <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a> <ul class="dropdown-menu" role="menu"> <li><a href="#">Settings 1</a> </li> <li><a href="#">Settings 2</a> </li> </ul> </li> <li><a class="close-link"><i class="fa fa-close"></i></a> </li> </ul> <div class="clearfix"></div> </div> <div class="x_content"> <h4>Star Ratings<small> Hover and click on a star</small></h4> <div> <div class="starrr stars"></div> You gave a rating of <span class="stars-count">0</span> star(s) </div> <p>Also you can give a default rating by adding attribute data-rating</p> <div class="starrr stars-existing" data-rating='4'></div> You gave a rating of <span class="stars-count-existing">4</span> star(s) </div> </div> <div class="x_panel"> <div class="x_title"> <h2>Registration Form <small>Click to validate</small></h2> <ul class="nav navbar-right panel_toolbox"> <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a> <ul class="dropdown-menu" role="menu"> <li><a href="#">Settings 1</a> </li> <li><a href="#">Settings 2</a> </li> </ul> </li> <li><a class="close-link"><i class="fa fa-close"></i></a> </li> </ul> <div class="clearfix"></div> </div> <div class="x_content"> <!-- start form for validation --> <form id="demo-form" data-parsley-validate> <label for="fullname">Full Name * :</label> <input type="text" id="fullname" class="form-control" name="fullname" required /> <label for="email">Email * :</label> <input type="email" id="email" class="form-control" name="email" data-parsley-trigger="change" required /> <label>Gender *:</label> <p> M: <input type="radio" class="flat" name="gender" id="genderM" value="M" checked="" required /> F: <input type="radio" class="flat" name="gender" id="genderF" value="F" /> </p> <label>Hobbies (2 minimum):</label> <p style="padding: 5px;"> <input type="checkbox" name="hobbies[]" id="hobby1" value="ski" data-parsley-mincheck="2" required class="flat" /> Skiing <br /> <input type="checkbox" name="hobbies[]" id="hobby2" value="run" class="flat" /> Running <br /> <input type="checkbox" name="hobbies[]" id="hobby3" value="eat" class="flat" /> Eating <br /> <input type="checkbox" name="hobbies[]" id="hobby4" value="sleep" class="flat" /> Sleeping <br /> <p> <label for="heard">Heard us by *:</label> <select id="heard" class="form-control" required> <option value="">Choose..</option> <option value="press">Press</option> <option value="net">Internet</option> <option value="mouth">Word of mouth</option> </select> <label for="message">Message (20 chars min, 100 max) :</label> <textarea id="message" required="required" class="form-control" name="message" data-parsley-trigger="keyup" data-parsley-minlength="20" data-parsley-maxlength="100" data-parsley-minlength-message="Come on! You need to enter at least a 20 caracters long comment.." data-parsley-validation-threshold="10"></textarea> <br/> <span class="btn btn-primary">Validate form</span> </form> <!-- end form for validations --> </div> </div> </div> <div class="col-md-6 col-xs-12"> <div class="x_panel"> <div class="x_title"> <h2>Form Basic Elements <small>different form elements</small></h2> <ul class="nav navbar-right panel_toolbox"> <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a> <ul class="dropdown-menu" role="menu"> <li><a href="#">Settings 1</a> </li> <li><a href="#">Settings 2</a> </li> </ul> </li> <li><a class="close-link"><i class="fa fa-close"></i></a> </li> </ul> <div class="clearfix"></div> </div> <div class="x_content"> <br /> <form class="form-horizontal form-label-left"> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Default Input</label> <div class="col-md-9 col-sm-9 col-xs-12"> <input type="text" class="form-control" placeholder="Default Input"> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Disabled Input </label> <div class="col-md-9 col-sm-9 col-xs-12"> <input type="text" class="form-control" disabled="disabled" placeholder="Disabled Input"> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Read-Only Input</label> <div class="col-md-9 col-sm-9 col-xs-12"> <input type="text" class="form-control" readonly="readonly" placeholder="Read-Only Input"> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Date Of Birth <span class="required">*</span> </label> <div class="col-md-9 col-sm-9 col-xs-12"> <textarea class="form-control" rows="3" placeholder='rows="3"'></textarea> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Password</label> <div class="col-md-9 col-sm-9 col-xs-12"> <input type="password" class="form-control" value="passwordonetwo"> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">AutoComplete</label> <div class="col-md-9 col-sm-9 col-xs-12"> <input type="text" name="country" id="autocomplete-custom-append" class="form-control col-md-10"/> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Select</label> <div class="col-md-9 col-sm-9 col-xs-12"> <select class="form-control"> <option>Choose option</option> <option>Option one</option> <option>Option two</option> <option>Option three</option> <option>Option four</option> </select> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Select Custom</label> <div class="col-md-9 col-sm-9 col-xs-12"> <select class="select2_single form-control" tabindex="-1"> <option></option> <option value="AK">Alaska</option> <option value="HI">Hawaii</option> <option value="CA">California</option> <option value="NV">Nevada</option> <option value="OR">Oregon</option> <option value="WA">Washington</option> <option value="AZ">Arizona</option> <option value="CO">Colorado</option> <option value="ID">Idaho</option> <option value="MT">Montana</option> <option value="NE">Nebraska</option> <option value="NM">New Mexico</option> <option value="ND">North Dakota</option> <option value="UT">Utah</option> <option value="WY">Wyoming</option> <option value="AR">Arkansas</option> <option value="IL">Illinois</option> <option value="IA">Iowa</option> <option value="KS">Kansas</option> <option value="KY">Kentucky</option> <option value="LA">Louisiana</option> <option value="MN">Minnesota</option> <option value="MS">Mississippi</option> <option value="MO">Missouri</option> <option value="OK">Oklahoma</option> <option value="SD">South Dakota</option> <option value="TX">Texas</option> </select> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Select Grouped</label> <div class="col-md-9 col-sm-9 col-xs-12"> <select class="select2_group form-control"> <optgroup label="Alaskan/Hawaiian Time Zone"> <option value="AK">Alaska</option> <option value="HI">Hawaii</option> </optgroup> <optgroup label="Pacific Time Zone"> <option value="CA">California</option> <option value="NV">Nevada</option> <option value="OR">Oregon</option> <option value="WA">Washington</option> </optgroup> <optgroup label="Mountain Time Zone"> <option value="AZ">Arizona</option> <option value="CO">Colorado</option> <option value="ID">Idaho</option> <option value="MT">Montana</option> <option value="NE">Nebraska</option> <option value="NM">New Mexico</option> <option value="ND">North Dakota</option> <option value="UT">Utah</option> <option value="WY">Wyoming</option> </optgroup> <optgroup label="Central Time Zone"> <option value="AL">Alabama</option> <option value="AR">Arkansas</option> <option value="IL">Illinois</option> <option value="IA">Iowa</option> <option value="KS">Kansas</option> <option value="KY">Kentucky</option> <option value="LA">Louisiana</option> <option value="MN">Minnesota</option> <option value="MS">Mississippi</option> <option value="MO">Missouri</option> <option value="OK">Oklahoma</option> <option value="SD">South Dakota</option> <option value="TX">Texas</option> <option value="TN">Tennessee</option> <option value="WI">Wisconsin</option> </optgroup> <optgroup label="Eastern Time Zone"> <option value="CT">Connecticut</option> <option value="DE">Delaware</option> <option value="FL">Florida</option> <option value="GA">Georgia</option> <option value="IN">Indiana</option> <option value="ME">Maine</option> <option value="MD">Maryland</option> <option value="MA">Massachusetts</option> <option value="MI">Michigan</option> <option value="NH">New Hampshire</option> <option value="NJ">New Jersey</option> <option value="NY">New York</option> <option value="NC">North Carolina</option> <option value="OH">Ohio</option> <option value="PA">Pennsylvania</option> <option value="RI">Rhode Island</option> <option value="SC">South Carolina</option> <option value="VT">Vermont</option> <option value="VA">Virginia</option> <option value="WV">West Virginia</option> </optgroup> </select> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Select Multiple</label> <div class="col-md-9 col-sm-9 col-xs-12"> <select class="select2_multiple form-control" multiple="multiple"> <option>Choose option</option> <option>Option one</option> <option>Option two</option> <option>Option three</option> <option>Option four</option> <option>Option five</option> <option>Option six</option> </select> </div> </div> <div class="control-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Input Tags</label> <div class="col-md-9 col-sm-9 col-xs-12"> <input id="tags_1" type="text" class="tags form-control" value="social, adverts, sales" /> <div id="suggestions-container" style="position: relative; float: left; width: 250px; margin: 10px;"></div> </div> </div> <div class="form-group"> <label class="col-md-3 col-sm-3 col-xs-12 control-label">Checkboxes and radios <br> <small class="text-navy">Normal Bootstrap elements</small> </label> <div class="col-md-9 col-sm-9 col-xs-12"> <div class="checkbox"> <label> <input type="checkbox" value=""> Option one. select more than one options </label> </div> <div class="checkbox"> <label> <input type="checkbox" value=""> Option two. select more than one options </label> </div> <div class="radio"> <label> <input type="radio" checked="" value="option1" id="optionsRadios1" name="optionsRadios"> Option one. only select one option </label> </div> <div class="radio"> <label> <input type="radio" value="option2" id="optionsRadios2" name="optionsRadios"> Option two. only select one option </label> </div> </div> </div> <div class="form-group"> <label class="col-md-3 col-sm-3 col-xs-12 control-label">Checkboxes and radios <br> <small class="text-navy">Normal Bootstrap elements</small> </label> <div class="col-md-9 col-sm-9 col-xs-12"> <div class="checkbox"> <label> <input type="checkbox" class="flat" checked="checked"> Checked </label> </div> <div class="checkbox"> <label> <input type="checkbox" class="flat"> Unchecked </label> </div> <div class="checkbox"> <label> <input type="checkbox" class="flat" disabled="disabled"> Disabled </label> </div> <div class="checkbox"> <label> <input type="checkbox" class="flat" disabled="disabled" checked="checked"> Disabled & checked </label> </div> <div class="radio"> <label> <input type="radio" class="flat" checked name="iCheck"> Checked </label> </div> <div class="radio"> <label> <input type="radio" class="flat" name="iCheck"> Unchecked </label> </div> <div class="radio"> <label> <input type="radio" class="flat" name="iCheck" disabled="disabled"> Disabled </label> </div> <div class="radio"> <label> <input type="radio" class="flat" name="iCheck3" disabled="disabled" checked> Disabled & Checked </label> </div> </div> </div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Switch</label> <div class="col-md-9 col-sm-9 col-xs-12"> <div class=""> <label> <input type="checkbox" class="js-switch" checked /> Checked </label> </div> <div class=""> <label> <input type="checkbox" class="js-switch" /> Unchecked </label> </div> <div class=""> <label> <input type="checkbox" class="js-switch" disabled="disabled" /> Disabled </label> </div> <div class=""> <label> <input type="checkbox" class="js-switch" disabled="disabled" checked="checked" /> Disabled Checked </label> </div> </div> </div> <div class="ln_solid"></div> <div class="form-group"> <div class="col-md-9 col-sm-9 col-xs-12 col-md-offset-3"> <button type="button" class="btn btn-primary">Cancel</button> <button type="reset" class="btn btn-primary">Reset</button> <button type="submit" class="btn btn-success">Submit</button> </div> </div> </form> </div> </div> </div> <div class="col-md-6 col-sm-12 col-xs-12"> <div class="x_panel"> <div class="x_title"> <h2>Form Buttons <small>Sessions</small></h2> <ul class="nav navbar-right panel_toolbox"> <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a> <ul class="dropdown-menu" role="menu"> <li><a href="#">Settings 1</a> </li> <li><a href="#">Settings 2</a> </li> </ul> </li> <li><a class="close-link"><i class="fa fa-close"></i></a> </li> </ul> <div class="clearfix"></div> </div> <div class="x_content"> <form class="form-horizontal form-label-left"> <div class="form-group"> <label class="col-sm-3 control-label">Button addons</label> <div class="col-sm-9"> <div class="input-group"> <span class="input-group-btn"> <button type="button" class="btn btn-primary">Go!</button> </span> <input type="text" class="form-control"> </div> <div class="input-group"> <input type="text" class="form-control"> <span class="input-group-btn"> <button type="button" class="btn btn-primary">Go!</button> </span> </div> </div> </div> <div class="divider-dashed"></div> <div class="form-group"> <label class="col-sm-3 control-label">Button addons</label> <div class="col-sm-9"> <div class="input-group"> <input type="text" class="form-control" aria-label="Text input with dropdown button"> <div class="input-group-btn"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">Action <span class="caret"></span> </button> <ul class="dropdown-menu dropdown-menu-right" role="menu"> <li><a href="#">Action</a> </li> <li><a href="#">Another action</a> </li> <li><a href="#">Something else here</a> </li> <li class="divider"></li> <li><a href="#">Separated link</a> </li> </ul> </div> <!-- /btn-group --> </div> <div class="input-group"> <input type="text" class="form-control"> <span class="input-group-btn"> <button type="button" class="btn btn-primary">Go!</button> </span> </div> </div> </div> </form> </div> </div> </div> </div> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="x_panel"> <div class="x_title"> <h2>Text areas<small>Sessions</small></h2> <ul class="nav navbar-right panel_toolbox"> <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a> <ul class="dropdown-menu" role="menu"> <li><a href="#">Settings 1</a> </li> <li><a href="#">Settings 2</a> </li> </ul> </li> <li><a class="close-link"><i class="fa fa-close"></i></a> </li> </ul> <div class="clearfix"></div> </div> <div class="x_content"> <div id="alerts"></div> <div class="btn-toolbar editor" data-role="editor-toolbar" data-target="#editor-one"> <div class="btn-group"> <a class="btn dropdown-toggle" data-toggle="dropdown" title="Font"><i class="fa fa-font"></i><b class="caret"></b></a> <ul class="dropdown-menu"> </ul> </div> <div class="btn-group"> <a class="btn dropdown-toggle" data-toggle="dropdown" title="Font Size"><i class="fa fa-text-height"></i>&nbsp;<b class="caret"></b></a> <ul class="dropdown-menu"> <li> <a data-edit="fontSize 5"> <p style="font-size:17px">Huge</p> </a> </li> <li> <a data-edit="fontSize 3"> <p style="font-size:14px">Normal</p> </a> </li> <li> <a data-edit="fontSize 1"> <p style="font-size:11px">Small</p> </a> </li> </ul> </div> <div class="btn-group"> <a class="btn" data-edit="bold" title="Bold (Ctrl/Cmd+B)"><i class="fa fa-bold"></i></a> <a class="btn" data-edit="italic" title="Italic (Ctrl/Cmd+I)"><i class="fa fa-italic"></i></a> <a class="btn" data-edit="strikethrough" title="Strikethrough"><i class="fa fa-strikethrough"></i></a> <a class="btn" data-edit="underline" title="Underline (Ctrl/Cmd+U)"><i class="fa fa-underline"></i></a> </div> <div class="btn-group"> <a class="btn" data-edit="insertunorderedlist" title="Bullet list"><i class="fa fa-list-ul"></i></a> <a class="btn" data-edit="insertorderedlist" title="Number list"><i class="fa fa-list-ol"></i></a> <a class="btn" data-edit="outdent" title="Reduce indent (Shift+Tab)"><i class="fa fa-dedent"></i></a> <a class="btn" data-edit="indent" title="Indent (Tab)"><i class="fa fa-indent"></i></a> </div> <div class="btn-group"> <a class="btn" data-edit="justifyleft" title="Align Left (Ctrl/Cmd+L)"><i class="fa fa-align-left"></i></a> <a class="btn" data-edit="justifycenter" title="Center (Ctrl/Cmd+E)"><i class="fa fa-align-center"></i></a> <a class="btn" data-edit="justifyright" title="Align Right (Ctrl/Cmd+R)"><i class="fa fa-align-right"></i></a> <a class="btn" data-edit="justifyfull" title="Justify (Ctrl/Cmd+J)"><i class="fa fa-align-justify"></i></a> </div> <div class="btn-group"> <a class="btn dropdown-toggle" data-toggle="dropdown" title="Hyperlink"><i class="fa fa-link"></i></a> <div class="dropdown-menu input-append"> <input class="span2" placeholder="URL" type="text" data-edit="createLink" /> <button class="btn" type="button">Add</button> </div> <a class="btn" data-edit="unlink" title="Remove Hyperlink"><i class="fa fa-cut"></i></a> </div> <div class="btn-group"> <a class="btn" title="Insert picture (or just drag & drop)" id="pictureBtn"><i class="fa fa-picture-o"></i></a> <input type="file" data-role="magic-overlay" data-target="#pictureBtn" data-edit="insertImage" /> </div> <div class="btn-group"> <a class="btn" data-edit="undo" title="Undo (Ctrl/Cmd+Z)"><i class="fa fa-undo"></i></a> <a class="btn" data-edit="redo" title="Redo (Ctrl/Cmd+Y)"><i class="fa fa-repeat"></i></a> </div> </div> <div id="editor-one" class="editor-wrapper"></div> <textarea name="descr" id="descr" style="display:none;"></textarea> <br /> <div class="ln_solid"></div> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Resizable Text area</label> <div class="col-md-9 col-sm-9 col-xs-12"> <textarea class="resizable_textarea form-control" placeholder="This text area automatically resizes its height as you fill in more text courtesy of autosize-master it out..."></textarea> </div> </div> </div> </div> </div> <div class="x_panel"> <div class="x_title"> <h2>Form Input Grid <small>form input </small></h2> <ul class="nav navbar-right panel_toolbox"> <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a> <ul class="dropdown-menu" role="menu"> <li><a href="#">Settings 1</a> </li> <li><a href="#">Settings 2</a> </li> </ul> </li> <li><a class="close-link"><i class="fa fa-close"></i></a> </li> </ul> <div class="clearfix"></div> </div> <div class="x_content"> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-12" class="form-control"> </div> <div class="col-md-6 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-6" class="form-control"> </div> <div class="col-md-6 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-6" class="form-control"> </div> <div class="col-md-4 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-4" class="form-control"> </div> <div class="col-md-4 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-4" class="form-control"> </div> <div class="col-md-4 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-4" class="form-control"> </div> <div class="col-md-3 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-3" class="form-control"> </div> <div class="col-md-3 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-3" class="form-control"> </div> <div class="col-md-3 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-3" class="form-control"> </div> <div class="col-md-3 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-3" class="form-control"> </div> <div class="col-md-2 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-2" class="form-control"> </div> <div class="col-md-2 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-2" class="form-control"> </div> <div class="col-md-2 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-2" class="form-control"> </div> <div class="col-md-2 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-2" class="form-control"> </div> <div class="col-md-2 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-2" class="form-control"> </div> <div class="col-md-2 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-2" class="form-control"> </div> <div class="col-md-1 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-1" class="form-control"> </div> <div class="col-md-1 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-1" class="form-control"> </div> <div class="col-md-1 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-1" class="form-control"> </div> <div class="col-md-1 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-1" class="form-control"> </div> <div class="col-md-1 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-1" class="form-control"> </div> <div class="col-md-1 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-1" class="form-control"> </div> <div class="col-md-1 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-1" class="form-control"> </div> <div class="col-md-1 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-1" class="form-control"> </div> <div class="col-md-1 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-1" class="form-control"> </div> <div class="col-md-1 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-1" class="form-control"> </div> <div class="col-md-1 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-1" class="form-control"> </div> <div class="col-md-1 col-sm-12 col-xs-12 form-group"> <input type="text" placeholder=".col-md-1" class="form-control"> </div> </div> </div> </div> <div class="x_panel"> <div class="x_title"> <h2>Form Design <small>different form elements</small></h2> <ul class="nav navbar-right panel_toolbox"> <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a> <ul class="dropdown-menu" role="menu"> <li><a href="#">Settings 1</a> </li> <li><a href="#">Settings 2</a> </li> </ul> </li> <li><a class="close-link"><i class="fa fa-close"></i></a> </li> </ul> <div class="clearfix"></div> </div> <div class="x_content"> <br /> <h4>Horizontal labels</h4> <p class="font-gray-dark"> Using the grid system you can control the position of the labels. The form example below has the <b>col-md-10</b> which sets the width to 10/12 and <b>center-margin</b> which centers it. </p> <form class="form-horizontal form-label-left"> <div class="form-group"> <label class="control-label col-md-3" for="first-name">First Name <span class="required">*</span> </label> <div class="col-md-7"> <input type="text" id="first-name2" required="required" class="form-control col-md-7 col-xs-12"> </div> </div> <div class="form-group"> <label class="control-label col-md-3" for="last-name">Last Name <span class="required">*</span> </label> <div class="col-md-7"> <input type="text" id="last-name2" name="last-name" required="required" class="form-control col-md-7 col-xs-12"> </div> </div> </form> <h4>Vertical labels</h4> <p class="font-gray-dark"> For making labels vertical you have two options, either use the apropiate grid <b>.col-</b> class or wrap the form in the <b>form-vertical</b> class. </p> <div class="col-md-8 center-margin"> <form class="form-horizontal form-label-left"> <div class="form-group"> <label>Email address</label> <input type="email" class="form-control" placeholder="Enter email"> </div> <div class="form-group"> <label>Password</label> <input type="password" class="form-control" placeholder="Password"> </div> </form> </div> <h4>Inline Form </h4> <p class="font-gray-dark"> Add .form-inline to your form (which doesn't have to be a <form>) for left-aligned and inline-block controls. </p> <form class="form-inline"> <div class="form-group"> <label for="ex3">Email address</label> <input type="text" id="ex3" class="form-control" placeholder=" "> </div> <div class="form-group"> <label for="ex4">Email address</label> <input type="email" id="ex4" class="form-control" placeholder=" "> </div> <div class="checkbox"> <label> <input type="checkbox"> Remember me </label> </div> <button type="submit" class="btn btn-default">Send invitation</button> </form> </div> </div> </div> </div> <!-- /page content --> <!-- footer content --> <footer> <div class="pull-right"> Gentelella - Bootstrap Admin Template by <a href="https://colorlib.com">Colorlib</a> </div> <div class="clearfix"></div> </footer> <!-- /footer content --> </div> </div> <!-- jQuery --> <script src="../vendors/jquery/dist/jquery.min.js"></script> <!-- Bootstrap --> <script src="../vendors/bootstrap/dist/js/bootstrap.min.js"></script> <!-- FastClick --> <script src="../vendors/fastclick/lib/fastclick.js"></script> <!-- NProgress --> <script src="../vendors/nprogress/nprogress.js"></script> <!-- bootstrap-progressbar --> <script src="../vendors/bootstrap-progressbar/bootstrap-progressbar.min.js"></script> <!-- iCheck --> <script src="../vendors/iCheck/icheck.min.js"></script> <!-- bootstrap-daterangepicker --> <script src="../vendors/moment/min/moment.min.js"></script> <script src="../vendors/bootstrap-daterangepicker/daterangepicker.js"></script> <!-- bootstrap-wysiwyg --> <script src="../vendors/bootstrap-wysiwyg/js/bootstrap-wysiwyg.min.js"></script> <script src="../vendors/jquery.hotkeys/jquery.hotkeys.js"></script> <script src="../vendors/google-code-prettify/src/prettify.js"></script> <!-- jQuery Tags Input --> <script src="../vendors/jquery.tagsinput/src/jquery.tagsinput.js"></script> <!-- Switchery --> <script src="../vendors/switchery/dist/switchery.min.js"></script> <!-- Select2 --> <script src="../vendors/select2/dist/js/select2.full.min.js"></script> <!-- Parsley --> <script src="../vendors/parsleyjs/dist/parsley.min.js"></script> <!-- Autosize --> <script src="../vendors/autosize/dist/autosize.min.js"></script> <!-- jQuery autocomplete --> <script src="../vendors/devbridge-autocomplete/dist/jquery.autocomplete.min.js"></script> <!-- starrr --> <script src="../vendors/starrr/dist/starrr.js"></script> <!-- Custom Theme Scripts --> <script src="../build/js/custom.min.js"></script> </body> </html>
grondin-florian/ptp_VIP360
templates/form.html
HTML
mit
69,848
<!doctype html> <title>WebSockets: too few slashes after ws: and wss:</title> <script src=../../resources/testharness.js></script> <script src=../../resources/testharnessreport.js></script> <script src=./constants.js?pipe=sub></script> <div id=log></div> <script> var tests = ['ws:', 'ws:/', 'wss:', 'wss:/']; //Pass condition is to not throw for (var i = 0; i < tests.length; ++i) { test(function(){new WebSocket(tests[i]+location.hostname+'/echo')}, tests[i]); } </script>
crosswalk-project/web-testing-service
wts/tests/websocket/w3c/017.html
HTML
bsd-3-clause
477
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0"> <title>ColReorder example - Initialisation using `new`</title> <link rel="stylesheet" type="text/css" href="../../../media/css/jquery.dataTables.css"> <link rel="stylesheet" type="text/css" href="../css/dataTables.colReorder.css"> <link rel="stylesheet" type="text/css" href="../../../examples/resources/syntax/shCore.css"> <link rel="stylesheet" type="text/css" href="../../../examples/resources/demo.css"> <style type="text/css" class="init"> </style> <script type="text/javascript" language="javascript" src="../../../media/js/jquery.js"></script> <script type="text/javascript" language="javascript" src="../../../media/js/jquery.dataTables.js"></script> <script type="text/javascript" language="javascript" src="../js/dataTables.colReorder.js"></script> <script type="text/javascript" language="javascript" src="../../../examples/resources/syntax/shCore.js"></script> <script type="text/javascript" language="javascript" src="../../../examples/resources/demo.js"></script> <script type="text/javascript" language="javascript" class="init"> $(document).ready(function() { var table = $('#example').DataTable(); new $.fn.dataTable.ColReorder( table ); } ); </script> </head> <body class="dt-example"> <div class="container"> <section> <h1>ColReorder example <span>Initialisation using `new`</span></h1> <div class="info"> <p>As well as providing the option to be initialised through the <code>R</code> option of <a href="//datatables.net/reference/option/dom"><code class="option" title="DataTables initialisation option">dom<span>DT</span></code></a>, ColReorder can also be added to a DataTable using direct initialisation - <code>new $.fn.dataTable.ColReorder();</code> as shown in this example.</p> </div> <table id="example" class="display" cellspacing="0" width="100%"> <thead> <tr> <th>Name</th> <th>Position</th> <th>Office</th> <th>Age</th> <th>Start date</th> <th>Salary</th> </tr> </thead> <tfoot> <tr> <th>Name</th> <th>Position</th> <th>Office</th> <th>Age</th> <th>Start date</th> <th>Salary</th> </tr> </tfoot> <tbody> <tr> <td>Tiger Nixon</td> <td>System Architect</td> <td>Edinburgh</td> <td>61</td> <td>2011/04/25</td> <td>$320,800</td> </tr> <tr> <td>Garrett Winters</td> <td>Accountant</td> <td>Tokyo</td> <td>63</td> <td>2011/07/25</td> <td>$170,750</td> </tr> <tr> <td>Ashton Cox</td> <td>Junior Technical Author</td> <td>San Francisco</td> <td>66</td> <td>2009/01/12</td> <td>$86,000</td> </tr> <tr> <td>Cedric Kelly</td> <td>Senior Javascript Developer</td> <td>Edinburgh</td> <td>22</td> <td>2012/03/29</td> <td>$433,060</td> </tr> <tr> <td>Airi Satou</td> <td>Accountant</td> <td>Tokyo</td> <td>33</td> <td>2008/11/28</td> <td>$162,700</td> </tr> <tr> <td>Brielle Williamson</td> <td>Integration Specialist</td> <td>New York</td> <td>61</td> <td>2012/12/02</td> <td>$372,000</td> </tr> <tr> <td>Herrod Chandler</td> <td>Sales Assistant</td> <td>San Francisco</td> <td>59</td> <td>2012/08/06</td> <td>$137,500</td> </tr> <tr> <td>Rhona Davidson</td> <td>Integration Specialist</td> <td>Tokyo</td> <td>55</td> <td>2010/10/14</td> <td>$327,900</td> </tr> <tr> <td>Colleen Hurst</td> <td>Javascript Developer</td> <td>San Francisco</td> <td>39</td> <td>2009/09/15</td> <td>$205,500</td> </tr> <tr> <td>Sonya Frost</td> <td>Software Engineer</td> <td>Edinburgh</td> <td>23</td> <td>2008/12/13</td> <td>$103,600</td> </tr> <tr> <td>Jena Gaines</td> <td>Office Manager</td> <td>London</td> <td>30</td> <td>2008/12/19</td> <td>$90,560</td> </tr> <tr> <td>Quinn Flynn</td> <td>Support Lead</td> <td>Edinburgh</td> <td>22</td> <td>2013/03/03</td> <td>$342,000</td> </tr> <tr> <td>Charde Marshall</td> <td>Regional Director</td> <td>San Francisco</td> <td>36</td> <td>2008/10/16</td> <td>$470,600</td> </tr> <tr> <td>Haley Kennedy</td> <td>Senior Marketing Designer</td> <td>London</td> <td>43</td> <td>2012/12/18</td> <td>$313,500</td> </tr> <tr> <td>Tatyana Fitzpatrick</td> <td>Regional Director</td> <td>London</td> <td>19</td> <td>2010/03/17</td> <td>$385,750</td> </tr> <tr> <td>Michael Silva</td> <td>Marketing Designer</td> <td>London</td> <td>66</td> <td>2012/11/27</td> <td>$198,500</td> </tr> <tr> <td>Paul Byrd</td> <td>Chief Financial Officer (CFO)</td> <td>New York</td> <td>64</td> <td>2010/06/09</td> <td>$725,000</td> </tr> <tr> <td>Gloria Little</td> <td>Systems Administrator</td> <td>New York</td> <td>59</td> <td>2009/04/10</td> <td>$237,500</td> </tr> <tr> <td>Bradley Greer</td> <td>Software Engineer</td> <td>London</td> <td>41</td> <td>2012/10/13</td> <td>$132,000</td> </tr> <tr> <td>Dai Rios</td> <td>Personnel Lead</td> <td>Edinburgh</td> <td>35</td> <td>2012/09/26</td> <td>$217,500</td> </tr> <tr> <td>Jenette Caldwell</td> <td>Development Lead</td> <td>New York</td> <td>30</td> <td>2011/09/03</td> <td>$345,000</td> </tr> <tr> <td>Yuri Berry</td> <td>Chief Marketing Officer (CMO)</td> <td>New York</td> <td>40</td> <td>2009/06/25</td> <td>$675,000</td> </tr> <tr> <td>Caesar Vance</td> <td>Pre-Sales Support</td> <td>New York</td> <td>21</td> <td>2011/12/12</td> <td>$106,450</td> </tr> <tr> <td>Doris Wilder</td> <td>Sales Assistant</td> <td>Sidney</td> <td>23</td> <td>2010/09/20</td> <td>$85,600</td> </tr> <tr> <td>Angelica Ramos</td> <td>Chief Executive Officer (CEO)</td> <td>London</td> <td>47</td> <td>2009/10/09</td> <td>$1,200,000</td> </tr> <tr> <td>Gavin Joyce</td> <td>Developer</td> <td>Edinburgh</td> <td>42</td> <td>2010/12/22</td> <td>$92,575</td> </tr> <tr> <td>Jennifer Chang</td> <td>Regional Director</td> <td>Singapore</td> <td>28</td> <td>2010/11/14</td> <td>$357,650</td> </tr> <tr> <td>Brenden Wagner</td> <td>Software Engineer</td> <td>San Francisco</td> <td>28</td> <td>2011/06/07</td> <td>$206,850</td> </tr> <tr> <td>Fiona Green</td> <td>Chief Operating Officer (COO)</td> <td>San Francisco</td> <td>48</td> <td>2010/03/11</td> <td>$850,000</td> </tr> <tr> <td>Shou Itou</td> <td>Regional Marketing</td> <td>Tokyo</td> <td>20</td> <td>2011/08/14</td> <td>$163,000</td> </tr> <tr> <td>Michelle House</td> <td>Integration Specialist</td> <td>Sidney</td> <td>37</td> <td>2011/06/02</td> <td>$95,400</td> </tr> <tr> <td>Suki Burks</td> <td>Developer</td> <td>London</td> <td>53</td> <td>2009/10/22</td> <td>$114,500</td> </tr> <tr> <td>Prescott Bartlett</td> <td>Technical Author</td> <td>London</td> <td>27</td> <td>2011/05/07</td> <td>$145,000</td> </tr> <tr> <td>Gavin Cortez</td> <td>Team Leader</td> <td>San Francisco</td> <td>22</td> <td>2008/10/26</td> <td>$235,500</td> </tr> <tr> <td>Martena Mccray</td> <td>Post-Sales support</td> <td>Edinburgh</td> <td>46</td> <td>2011/03/09</td> <td>$324,050</td> </tr> <tr> <td>Unity Butler</td> <td>Marketing Designer</td> <td>San Francisco</td> <td>47</td> <td>2009/12/09</td> <td>$85,675</td> </tr> <tr> <td>Howard Hatfield</td> <td>Office Manager</td> <td>San Francisco</td> <td>51</td> <td>2008/12/16</td> <td>$164,500</td> </tr> <tr> <td>Hope Fuentes</td> <td>Secretary</td> <td>San Francisco</td> <td>41</td> <td>2010/02/12</td> <td>$109,850</td> </tr> <tr> <td>Vivian Harrell</td> <td>Financial Controller</td> <td>San Francisco</td> <td>62</td> <td>2009/02/14</td> <td>$452,500</td> </tr> <tr> <td>Timothy Mooney</td> <td>Office Manager</td> <td>London</td> <td>37</td> <td>2008/12/11</td> <td>$136,200</td> </tr> <tr> <td>Jackson Bradshaw</td> <td>Director</td> <td>New York</td> <td>65</td> <td>2008/09/26</td> <td>$645,750</td> </tr> <tr> <td>Olivia Liang</td> <td>Support Engineer</td> <td>Singapore</td> <td>64</td> <td>2011/02/03</td> <td>$234,500</td> </tr> <tr> <td>Bruno Nash</td> <td>Software Engineer</td> <td>London</td> <td>38</td> <td>2011/05/03</td> <td>$163,500</td> </tr> <tr> <td>Sakura Yamamoto</td> <td>Support Engineer</td> <td>Tokyo</td> <td>37</td> <td>2009/08/19</td> <td>$139,575</td> </tr> <tr> <td>Thor Walton</td> <td>Developer</td> <td>New York</td> <td>61</td> <td>2013/08/11</td> <td>$98,540</td> </tr> <tr> <td>Finn Camacho</td> <td>Support Engineer</td> <td>San Francisco</td> <td>47</td> <td>2009/07/07</td> <td>$87,500</td> </tr> <tr> <td>Serge Baldwin</td> <td>Data Coordinator</td> <td>Singapore</td> <td>64</td> <td>2012/04/09</td> <td>$138,575</td> </tr> <tr> <td>Zenaida Frank</td> <td>Software Engineer</td> <td>New York</td> <td>63</td> <td>2010/01/04</td> <td>$125,250</td> </tr> <tr> <td>Zorita Serrano</td> <td>Software Engineer</td> <td>San Francisco</td> <td>56</td> <td>2012/06/01</td> <td>$115,000</td> </tr> <tr> <td>Jennifer Acosta</td> <td>Junior Javascript Developer</td> <td>Edinburgh</td> <td>43</td> <td>2013/02/01</td> <td>$75,650</td> </tr> <tr> <td>Cara Stevens</td> <td>Sales Assistant</td> <td>New York</td> <td>46</td> <td>2011/12/06</td> <td>$145,600</td> </tr> <tr> <td>Hermione Butler</td> <td>Regional Director</td> <td>London</td> <td>47</td> <td>2011/03/21</td> <td>$356,250</td> </tr> <tr> <td>Lael Greer</td> <td>Systems Administrator</td> <td>London</td> <td>21</td> <td>2009/02/27</td> <td>$103,500</td> </tr> <tr> <td>Jonas Alexander</td> <td>Developer</td> <td>San Francisco</td> <td>30</td> <td>2010/07/14</td> <td>$86,500</td> </tr> <tr> <td>Shad Decker</td> <td>Regional Director</td> <td>Edinburgh</td> <td>51</td> <td>2008/11/13</td> <td>$183,000</td> </tr> <tr> <td>Michael Bruce</td> <td>Javascript Developer</td> <td>Singapore</td> <td>29</td> <td>2011/06/27</td> <td>$183,000</td> </tr> <tr> <td>Donna Snider</td> <td>Customer Support</td> <td>New York</td> <td>27</td> <td>2011/01/25</td> <td>$112,000</td> </tr> </tbody> </table> <ul class="tabs"> <li class="active">Javascript</li> <li>HTML</li> <li>CSS</li> <li>Ajax</li> <li>Server-side script</li> </ul> <div class="tabs"> <div class="js"> <p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() { var table = $('#example').DataTable(); new $.fn.dataTable.ColReorder( table ); } );</code> <p>In addition to the above code, the following Javascript library files are loaded for use in this example:</p> <ul> <li><a href="../../../media/js/jquery.js">../../../media/js/jquery.js</a></li> <li><a href="../../../media/js/jquery.dataTables.js">../../../media/js/jquery.dataTables.js</a></li> <li><a href="../js/dataTables.colReorder.js">../js/dataTables.colReorder.js</a></li> </ul> </div> <div class="table"> <p>The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:</p> </div> <div class="css"> <div> <p>This example uses a little bit of additional CSS beyond what is loaded from the library files (below), in order to correctly display the table. The additional CSS used is shown below:</p><code class="multiline language-css"></code> </div> <p>The following CSS library files are loaded for use in this example to provide the styling of the table:</p> <ul> <li><a href="../../../media/css/jquery.dataTables.css">../../../media/css/jquery.dataTables.css</a></li> <li><a href="../css/dataTables.colReorder.css">../css/dataTables.colReorder.css</a></li> </ul> </div> <div class="ajax"> <p>This table loads data by Ajax. The latest data that has been loaded is shown below. This data will update automatically as any additional data is loaded.</p> </div> <div class="php"> <p>The script used to perform the server-side processing for this table is shown below. Please note that this is just an example script using PHP. Server-side processing scripts can be written in any language, using <a href="//datatables.net/manual/server-side">the protocol described in the DataTables documentation</a>.</p> </div> </div> </section> </div> <section> <div class="footer"> <div class="gradient"></div> <div class="liner"> <h2>Other examples</h2> <div class="toc"> <div class="toc-group"> <h3><a href="./index.html">Examples</a></h3> <ul class="toc active"> <li><a href="./simple.html">Basic initialisation</a></li> <li class="active"><a href="./new_init.html">Initialisation using `new`</a></li> <li><a href="./alt_insert.html">Alternative insert styling</a></li> <li><a href="./realtime.html">Realtime updating</a></li> <li><a href="./state_save.html">State saving</a></li> <li><a href="./scrolling.html">Scrolling table</a></li> <li><a href="./predefined.html">Predefined column ordering</a></li> <li><a href="./reset.html">Reset ordering API</a></li> <li><a href="./colvis.html">ColVis integration</a></li> <li><a href="./fixedcolumns.html">FixedColumns integration</a></li> <li><a href="./fixedheader.html">FixedHeader integration</a></li> <li><a href="./jqueryui.html">jQuery UI styling</a></li> <li><a href="./col_filter.html">Individual column filtering</a></li> <li><a href="./server_side.html">Server-side processing</a></li> </ul> </div> </div> <div class="epilogue"> <p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br> Additionally, there are a wide range of <a href="http://www.datatables.net/extras">extras</a> and <a href="http://www.datatables.net/plug-ins">plug-ins</a> which extend the capabilities of DataTables.</p> <p class="copyright">DataTables designed and created by <a href="http://www.sprymedia.co.uk">SpryMedia Ltd</a> &#169; 2007-2015<br> DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p> </div> </div> </div> </section> </body> </html>
AndrewListat/paydoc
web/template_admin/plugins/datatables/extensions/ColReorder/examples/new_init.html
HTML
bsd-3-clause
17,331
<!DOCTYPE html> <html> <head> <style> /* relative positioning ensures underlying Layer */ .container { position: relative; } .span { display: boxed-inline; margin: 2px; border: solid; } </style> <script> function log(message) { document.getElementById('console').innerHTML += (message + "\n"); } function removeAllChildren(elem) { while (elem.firstChild) elem.removeChild(elem.firstChild); } function cleanUp() { removeAllChildren(document.getElementById('actual-container')); removeAllChildren(document.getElementById('expect-container')); } function removeContainerLines(text) { var lines = text.split('\n'); lines.splice(0, 2); return lines.join('\n'); } function check() { var refContainerLayoutTree = internals.elementLayoutTreeAsText(document.getElementById('expect-container')); var refLayoutTree = removeContainerLines(refContainerLayoutTree); var targetContainerLayoutTree = internals.elementLayoutTreeAsText(document.getElementById('actual-container')); var targetLayoutTree = removeContainerLines(targetContainerLayoutTree); if (targetLayoutTree == refLayoutTree) log("PASS"); else { log("FAIL"); log("Expected: "); log(refLayoutTree); log("Actual: "); log(targetLayoutTree); } } function createSpanWithText(text) { var span = document.createElement('span'); span.appendChild(document.createTextNode(text)); return span; } function appendShadow(target, select) { var root = target.createShadowRoot(); var content = document.createElement('content'); content.setAttribute('select', select); content.appendChild(createSpanWithText("FALLBACK")); root.appendChild(document.createTextNode("{SHADOW: ")); root.appendChild(content); root.appendChild(document.createTextNode("}")); } function appendShadowDeep(target, select) { var root = target.createShadowRoot(); var child = document.createElement("span"); { var content = document.createElement('content'); content.setAttribute('select', select); content.appendChild(createSpanWithText("FALLBACK")); child.appendChild(document.createTextNode("{INNER: ")); child.appendChild(content); child.appendChild(document.createTextNode("}")); } root.appendChild(document.createTextNode("{SHADOW: ")); root.appendChild(child); root.appendChild(document.createTextNode("}")); } function testAppendFallback(callIfDone) { var target = document.createElement('div'); target.innerHTML = "<span>content</span>"; appendShadow(target, "#append"); document.getElementById('actual-container').appendChild(target); var f = (function(target, callIfDone) { return function() { target.innerHTML = "<span id='append'>appended</span>"; document.getElementById('expect-container').innerHTML = "<div>{SHADOW: <span>appended</span>}</div>"; callIfDone(); }; })(target, callIfDone); setTimeout(f, 0); } function testAppendFallbackDeep(callIfDone) { var target = document.createElement('div'); target.innerHTML = "<span>content</span>"; appendShadowDeep(target, "#append-deep"); document.getElementById('actual-container').appendChild(target); var f = (function(target, callIfDone) { return function() { target.innerHTML = "<span id='append-deep'>appended</span>"; document.getElementById('expect-container').innerHTML = "<div>{SHADOW: <span>{INNER: <span>appended</span>}</span>}</div>"; callIfDone(); }; })(target, callIfDone); setTimeout(f, 0); } function testRemoveFallback(callIfDone) { var target = document.createElement('div'); target.innerHTML = "<span id='remove'>content</span>"; appendShadow(target, "#remove"); document.getElementById('actual-container').appendChild(target); var f = (function(target, callIfDone) { return function() { target.innerHTML = "<span>content</span>" document.getElementById('expect-container').innerHTML = "<div>{SHADOW: <span>FALLBACK</span>}</div>"; callIfDone(); }; })(target, callIfDone); setTimeout(f, 0); } function testRemoveFallbackDeep(callIfDone) { var target = document.createElement('div'); target.innerHTML = "<span id='remove-deep'>content</span>"; appendShadowDeep(target, "#remove-deep"); document.getElementById('actual-container').appendChild(target); var f = (function(target, callIfDone) { return function() { target.innerHTML = "<span>content</span>" document.getElementById('expect-container').innerHTML = "<div>{SHADOW: <span>{INNER: <span>FALLBACK</span>}</span>}</div>"; callIfDone(); }; })(target, callIfDone); setTimeout(f, 0); } function testRemove1(callIfDone) { var target = document.createElement('div'); target.innerHTML = "<span id='remove1-1'>content 1</span><span id='remove1-2'>content 2</span>"; appendShadow(target, "span"); document.getElementById('actual-container').appendChild(target); var f = (function(target, callIfDone) { return function() { target.removeChild(document.getElementById('remove1-1')); document.getElementById('expect-container').innerHTML = "<div>{SHADOW: <span>content 2</span>}</div>"; callIfDone(); }; })(target, callIfDone); setTimeout(f, 0); } function testRemove2(callIfDone) { var target = document.createElement('div'); target.innerHTML = "<span id='testremove2-1'>content 1</span><span id='testremove2-2'>content 2</span>"; appendShadow(target, "span"); document.getElementById('actual-container').appendChild(target); var f = (function(target, callIfDone) { return function() { target.removeChild(document.getElementById('testremove2-2')); document.getElementById('expect-container').innerHTML = "<div>{SHADOW: <span>content 1</span>}</div>"; callIfDone(); }; })(target, callIfDone); setTimeout(f, 0); } function testRemove3(callIfDone) { var target = document.createElement('div'); target.innerHTML = "<span id='testremove3-1'>content 1</span><span id='testremove3-2'>content 2</span>"; appendShadow(target, "span"); document.getElementById('actual-container').appendChild(target); var f = (function(target, callIfDone) { return function() { target.removeChild(document.getElementById('testremove3-1')); target.removeChild(document.getElementById('testremove3-2')); document.getElementById('expect-container').innerHTML = "<div>{SHADOW: <span>FALLBACK</span>}</div>"; callIfDone(); }; })(target, callIfDone); setTimeout(f, 0); } function testReplaceFallback(callIfDone) { var target = document.createElement('div'); target.innerHTML = "<span id='to-replace'>content</span>"; appendShadow(target, "#to-replace"); document.getElementById('actual-container').appendChild(target); var f = (function(target, callIfDone) { return function() { target.innerHTML = "<span id='to-replace'>replaced</span>"; document.getElementById('expect-container').innerHTML = "<div>{SHADOW: <span>replaced</span>}</div>"; callIfDone(); }; })(target, callIfDone); setTimeout(f, 0); } function testFallbackContentChanged(callIfDone) { var target = document.createElement('div'); target.innerHTML = "<span>content</span>"; appendShadow(target, "#non-element"); document.getElementById('actual-container').appendChild(target); var f = (function(target, callIfDone) { return function() { target.appendChild(createSpanWithText('appended content')); document.getElementById('expect-container').innerHTML = "<div>{SHADOW: <span>FALLBACK</span>}</div>"; callIfDone(); }; })(target, callIfDone); setTimeout(f, 0); } function testComplexAppend(callIfDone) { var target = document.createElement('div'); appendShadow(target, '#complex-1'); var selectContent = document.createElement('span'); selectContent.setAttribute('id', 'complex-1'); appendShadow(selectContent, 'span'); target.appendChild(document.createTextNode('[WONT SELECTED]')); target.appendChild(selectContent); target.appendChild(document.createTextNode('[WONT SELECTED]')); document.getElementById('actual-container').appendChild(target); var f = (function(target, selectContent, callIfDone) { return function() { selectContent.appendChild(createSpanWithText('SELECTED')); document.getElementById('expect-container').innerHTML = "<div>{SHADOW: <span>{SHADOW: <span>SELECTED</span>}</span>}</div>"; callIfDone(); }; })(target, selectContent, callIfDone); setTimeout(f, 0); } function testComplexRemove(callIfDone) { var target = document.createElement('div'); appendShadow(target, '#complex-2'); var selectContent = document.createElement('span'); selectContent.setAttribute('id', 'complex-2'); { selectContent.appendChild(createSpanWithText('SELECTED')); } appendShadow(selectContent, 'span'); target.appendChild(document.createTextNode('[WONT SELECTED]')); target.appendChild(selectContent); target.appendChild(document.createTextNode('[WONT SELECTED]')); document.getElementById('actual-container').appendChild(target); var f = (function(target, selectContent, callIfDone) { return function() { removeAllChildren(selectContent); document.getElementById('expect-container').innerHTML = "<div>{SHADOW: <span>{SHADOW: <span>FALLBACK</span>}</span>}</div>"; callIfDone(); }; })(target, selectContent, callIfDone); setTimeout(f, 0); } function testComplexReplace(callIfDone) { var target = document.createElement('div'); appendShadow(target, '#complex-3'); var selectContent = document.createElement('span'); selectContent.setAttribute('id', 'complex-3'); appendShadow(selectContent, 'span'); target.appendChild(document.createTextNode('[WONT SELECTED]')); target.appendChild(selectContent); target.appendChild(document.createTextNode('[WONT SELECTED]')); document.getElementById('actual-container').appendChild(target); var f = (function(target, selectContent, callIfDone) { return function() { removeAllChildren(selectContent); selectContent.appendChild(createSpanWithText('REPLACED')); document.getElementById('expect-container').innerHTML = "<div>{SHADOW: <span>{SHADOW: <span>REPLACED</span>}</span>}</div>"; callIfDone(); }; })(target, selectContent, callIfDone); setTimeout(f, 0); } function testContentInContent(callIfDone) { document.getElementById('expect-container').innerHTML = "<div>{SHADOW: <content><span>CONTENT 2 FALLBACK</span></content>}</div>"; var target = document.createElement('div'); target.appendChild(createSpanWithText('S1')); target.appendChild(createSpanWithText('S2')); var root = target.createShadowRoot(); var content1 = document.createElement('content'); content1.setAttribute('select', 'div'); root.appendChild(document.createTextNode("{SHADOW: ")); root.appendChild(content1); root.appendChild(document.createTextNode("}")); document.getElementById('actual-container').appendChild(target); var f = (function(target, content1, callIfDone) { return function() { var content2 = document.createElement('content'); content2.setAttribute('select', 'span'); content2.appendChild(createSpanWithText('CONTENT 2 FALLBACK')); content1.appendChild(content2); callIfDone(); }; })(target, content1, callIfDone); setTimeout(f, 0); } function testContentInContentFallback(callIfDone) { document.getElementById('expect-container').innerHTML = "<div>{SHADOW: <content><span>CONTENT 2 FALLBACK</span></content>}</div>"; var target = document.createElement('div'); target.appendChild(createSpanWithText('S1')); target.appendChild(createSpanWithText('S2')); var root = target.createShadowRoot(); var content1 = document.createElement('content'); content1.setAttribute('select', 'div'); root.appendChild(document.createTextNode("{SHADOW: ")); root.appendChild(content1); root.appendChild(document.createTextNode("}")); document.getElementById('actual-container').appendChild(target); var f = (function(target, content1, callIfDone) { return function() { var content2 = document.createElement('content'); content2.setAttribute('select', 'div'); content2.appendChild(createSpanWithText('CONTENT 2 FALLBACK')); content1.appendChild(content2); callIfDone(); }; })(target, content1, callIfDone); setTimeout(f, 0); } function testContentInContentFallbackDirect(callIfDone) { document.getElementById('expect-container').innerHTML = "<div><content><span>CONTENT 2 FALLBACK</span></content></div>"; var target = document.createElement('div'); target.appendChild(createSpanWithText('S1')); target.appendChild(createSpanWithText('S2')); var root = target.createShadowRoot(); var content1 = document.createElement('content'); content1.setAttribute('select', 'div'); root.appendChild(content1); document.getElementById('actual-container').appendChild(target); var f = (function(target, content1, callIfDone) { return function() { var content2 = document.createElement('content'); content2.setAttribute('select', 'div'); content2.appendChild(createSpanWithText('CONTENT 2 FALLBACK')); content1.appendChild(content2); callIfDone(); }; })(target, content1, callIfDone); setTimeout(f, 0); } var testFuncs = [ testAppendFallback, testAppendFallbackDeep, testRemoveFallback, testRemoveFallbackDeep, testRemove1, testRemove2, testRemove3, testReplaceFallback, testFallbackContentChanged, testComplexAppend, testComplexRemove, testComplexReplace, testContentInContent, testContentInContentFallback, testContentInContentFallbackDirect ]; function doTestIfLeft() { var test = testFuncs.shift(); if (test == null) return doneTest(); var callIfDone = function() { setTimeout(function() { check(); cleanUp(); doTestIfLeft(); }, 0); }; log(test.name); test(callIfDone); } function doneTest() { log("TEST COMPLETED"); testRunner.notifyDone(); } function doTest() { if (window.testRunner) { testRunner.waitUntilDone(); testRunner.dumpAsText(); } cleanUp(); doTestIfLeft(); } </script> </head> <body onload="doTest()"> <div id="actual-container" class="container"></div> <div id="expect-container" class="container"></div> <pre id="console"></pre> </body> </html>
joone/chromium-crosswalk
third_party/WebKit/LayoutTests/fast/dom/shadow/shadow-contents-fallback-dynamic.html
HTML
bsd-3-clause
15,465
<!-- Good morning, Mr. Phelps. --> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>or-tools/src/base/: Member List - Doxy</title> <link rel="shortcut icon" href="../../../favicon.ico"> <!-- Both stylesheets are supplied by Doxygen, with maybe minor tweaks from Google. --> <link href="../../../doxygen.css" rel="stylesheet" type="text/css"> <link href="../../../tabs.css" rel="stylesheet" type="text/css"> </head> <body topmargin=0 leftmargin=20 bottommargin=0 rightmargin=20 marginwidth=20 marginheight=0> <!-- Second part of the secret behind Doxy logo always having the word "Doxy" with the color of the day. --> <style> a.doxy_logo:hover { background-color: #287003 } </style> <table width=100% cellpadding=0 cellspacing=0 border=0> <!-- Top horizontal line with the color of the day. --> <tr valign=top> <td colspan=3 bgcolor=#287003 height=3></td> </tr> <!-- Header row with the links at the right. --> <tr valign=top> <td colspan=3 align=right> <font size=-1> Generated on: <font color=#287003><b>Thu Mar 29 07:46:58 PDT 2012</b></font> for <b>custom file set</b> </font> </td> </tr> <!-- Header row with the logo and the search form. --> <tr valign=top> <!-- Logo. --> <td align=left width=150> <table width=150 height=54 cellpadding=0 cellspacing=0 border=0> <tr valign=top> <!-- First part of the secret behind Doxy logo always having the word "Doxy" with the color of the day. --> <td bgcolor=#287003> <a class="doxy_logo" href="../../../index.html"><img src="../../../doxy_logo.png" alt="Doxy" border=0></a> </td> </tr> </table> </td> </tr> <!-- Tiny vertical space below the form. --> <tr valign=top> <td colspan=3 height=3></td> </tr> </table> <!-- Header navigation row. --> <div class="memproto"> <table width=100% cellpadding=0 cellspacing=0 border=0> <tr> <td align=left style="padding-left: 20px"><font size=+1><b><tt><font color=#333333>// <a href="../../../index.html"><font color=#287003>doxy</font></a>/</font> <a href="../../../or-tools/index.html">or-tools</a>/ <a href="../../../or-tools/src/index.html">src</a>/ <a href="../../../or-tools/src/base/index.html">base</a>/ </tt></b></font> </td> </tr> </table> </div> <br /> <!-- No subdirs found. --> <!-- End of header. --> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main&nbsp;Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li> <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>operations_research::Eraser&lt; Container &gt; Member List</h1>This is the complete list of members for <a class="el" href="classoperations__research_1_1Eraser.html">operations_research::Eraser&lt; Container &gt;</a>, including all inherited members.<p><table> <tr class="memlist"><td><a class="el" href="classoperations__research_1_1Eraser.html#49ff5cce2fa02192ce7c5894b671daed">erase</a>(Container *container, iterator_type *iterator)</td><td><a class="el" href="classoperations__research_1_1Eraser.html">operations_research::Eraser&lt; Container &gt;</a></td><td><code> [inline, static]</code></td></tr> <tr class="memlist"><td><a class="el" href="classoperations__research_1_1Eraser.html#abdd19ac24e6e3649fc8782c61cfacff">iterator_type</a> typedef</td><td><a class="el" href="classoperations__research_1_1Eraser.html">operations_research::Eraser&lt; Container &gt;</a></td><td></td></tr> </table></div> <!-- Start of footer. --> <table width=100% cellpadding=0 cellspacing=0 border=0> <tr valign=top> <td colspan=2 height=10></td> </tr> <tr valign=top> <td colspan=2 bgcolor=#287003 height=3></td> </tr> </table> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /> </body> </html>
AlperSaltabas/OR_Tools_Google_API
documentation/reference_manual/or-tools/src/base/classoperations__research_1_1Eraser-members.html
HTML
apache-2.0
5,394
<!DOCTYPE html> <html> <head> <title>underscore.js</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> <link rel="stylesheet" media="all" href="docco.css" /> </head> <body> <div id="container"> <div id="background"></div> <ul class="sections"> <li id="title"> <div class="annotation"> <h1>underscore.js</h1> </div> </li> <li id="section-1"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-1">&#182;</a> </div> <pre><code>Underscore.js <span class="hljs-number">1.6</span><span class="hljs-number">.0</span> http:<span class="hljs-comment">//underscorejs.org</span> (c) <span class="hljs-number">2009</span>-<span class="hljs-number">2014</span> Jeremy Ashkenas, DocumentCloud and Investigative Reporters &amp; Editors Underscore may be freely distributed under the MIT license. </code></pre> </div> <div class="content"><div class='highlight'><pre> (<span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span></pre></div></div> </li> <li id="section-2"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-2">&#182;</a> </div> <h2 id="baseline-setup">Baseline setup</h2> </div> </li> <li id="section-3"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-3">&#182;</a> </div> </div> </li> <li id="section-4"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-4">&#182;</a> </div> <p>Establish the root object, <code>window</code> in the browser, or <code>exports</code> on the server.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> root = <span class="hljs-keyword">this</span>;</pre></div></div> </li> <li id="section-5"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-5">&#182;</a> </div> <p>Save the previous value of the <code>_</code> variable.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> previousUnderscore = root._;</pre></div></div> </li> <li id="section-6"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-6">&#182;</a> </div> <p>Establish the object that gets returned to break out of a loop iteration.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> breaker = {};</pre></div></div> </li> <li id="section-7"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-7">&#182;</a> </div> <p>Save bytes in the minified (but not gzipped) version:</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> ArrayProto = <span class="hljs-built_in">Array</span>.prototype, ObjProto = <span class="hljs-built_in">Object</span>.prototype, FuncProto = <span class="hljs-built_in">Function</span>.prototype;</pre></div></div> </li> <li id="section-8"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-8">&#182;</a> </div> <p>Create quick reference variables for speed access to core prototypes.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> push = ArrayProto.push, slice = ArrayProto.slice, concat = ArrayProto.concat, toString = ObjProto.toString, hasOwnProperty = ObjProto.hasOwnProperty;</pre></div></div> </li> <li id="section-9"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-9">&#182;</a> </div> <p>All <strong>ECMAScript 5</strong> native function implementations that we hope to use are declared here.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> nativeForEach = ArrayProto.forEach, nativeMap = ArrayProto.map, nativeReduce = ArrayProto.reduce, nativeReduceRight = ArrayProto.reduceRight, nativeFilter = ArrayProto.filter, nativeEvery = ArrayProto.every, nativeSome = ArrayProto.some, nativeIndexOf = ArrayProto.indexOf, nativeLastIndexOf = ArrayProto.lastIndexOf, nativeIsArray = <span class="hljs-built_in">Array</span>.isArray, nativeKeys = <span class="hljs-built_in">Object</span>.keys, nativeBind = FuncProto.bind;</pre></div></div> </li> <li id="section-10"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-10">&#182;</a> </div> <p>Create a safe reference to the Underscore object for use below.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> _ = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">if</span> (obj <span class="hljs-keyword">instanceof</span> _) <span class="hljs-keyword">return</span> obj; <span class="hljs-keyword">if</span> (!(<span class="hljs-keyword">this</span> <span class="hljs-keyword">instanceof</span> _)) <span class="hljs-keyword">return</span> <span class="hljs-keyword">new</span> _(obj); <span class="hljs-keyword">this</span>._wrapped = obj; };</pre></div></div> </li> <li id="section-11"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-11">&#182;</a> </div> <p>Export the Underscore object for <strong>Node.js</strong>, with backwards-compatibility for the old <code>require()</code> API. If we’re in the browser, add <code>_</code> as a global object via a string identifier, for Closure Compiler “advanced” mode.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> (<span class="hljs-keyword">typeof</span> exports !== <span class="hljs-string">'undefined'</span>) { <span class="hljs-keyword">if</span> (<span class="hljs-keyword">typeof</span> module !== <span class="hljs-string">'undefined'</span> &amp;&amp; module.exports) { exports = module.exports = _; } exports._ = _; } <span class="hljs-keyword">else</span> { root._ = _; }</pre></div></div> </li> <li id="section-12"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-12">&#182;</a> </div> <p>Current version.</p> </div> <div class="content"><div class='highlight'><pre> _.VERSION = <span class="hljs-string">'1.6.0'</span>;</pre></div></div> </li> <li id="section-13"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-13">&#182;</a> </div> <h2 id="collection-functions">Collection Functions</h2> </div> </li> <li id="section-14"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-14">&#182;</a> </div> </div> </li> <li id="section-15"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-15">&#182;</a> </div> <p>The cornerstone, an <code>each</code> implementation, aka <code>forEach</code>. Handles objects with the built-in <code>forEach</code>, arrays, and raw objects. Delegates to <strong>ECMAScript 5</strong>‘s native <code>forEach</code> if available.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> each = _.each = _.forEach = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, iterator, context)</span> {</span> <span class="hljs-keyword">if</span> (obj == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> obj; <span class="hljs-keyword">if</span> (nativeForEach &amp;&amp; obj.forEach === nativeForEach) { obj.forEach(iterator, context); } <span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> (obj.length === +obj.length) { <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">0</span>, length = obj.length; i &lt; length; i++) { <span class="hljs-keyword">if</span> (iterator.call(context, obj[i], i, obj) === breaker) <span class="hljs-keyword">return</span>; } } <span class="hljs-keyword">else</span> { <span class="hljs-keyword">var</span> keys = _.keys(obj); <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">0</span>, length = keys.length; i &lt; length; i++) { <span class="hljs-keyword">if</span> (iterator.call(context, obj[keys[i]], keys[i], obj) === breaker) <span class="hljs-keyword">return</span>; } } <span class="hljs-keyword">return</span> obj; };</pre></div></div> </li> <li id="section-16"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-16">&#182;</a> </div> <p>Return the results of applying the iterator to each element. Delegates to <strong>ECMAScript 5</strong>‘s native <code>map</code> if available.</p> </div> <div class="content"><div class='highlight'><pre> _.map = _.collect = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, iterator, context)</span> {</span> <span class="hljs-keyword">var</span> results = []; <span class="hljs-keyword">if</span> (obj == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> results; <span class="hljs-keyword">if</span> (nativeMap &amp;&amp; obj.map === nativeMap) <span class="hljs-keyword">return</span> obj.map(iterator, context); each(obj, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value, index, list)</span> {</span> results.push(iterator.call(context, value, index, list)); }); <span class="hljs-keyword">return</span> results; }; <span class="hljs-keyword">var</span> reduceError = <span class="hljs-string">'Reduce of empty array with no initial value'</span>;</pre></div></div> </li> <li id="section-17"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-17">&#182;</a> </div> <p><strong>Reduce</strong> builds up a single result from a list of values, aka <code>inject</code>, or <code>foldl</code>. Delegates to <strong>ECMAScript 5</strong>‘s native <code>reduce</code> if available.</p> </div> <div class="content"><div class='highlight'><pre> _.reduce = _.foldl = _.inject = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, iterator, memo, context)</span> {</span> <span class="hljs-keyword">var</span> initial = <span class="hljs-built_in">arguments</span>.length &gt; <span class="hljs-number">2</span>; <span class="hljs-keyword">if</span> (obj == <span class="hljs-literal">null</span>) obj = []; <span class="hljs-keyword">if</span> (nativeReduce &amp;&amp; obj.reduce === nativeReduce) { <span class="hljs-keyword">if</span> (context) iterator = _.bind(iterator, context); <span class="hljs-keyword">return</span> initial ? obj.reduce(iterator, memo) : obj.reduce(iterator); } each(obj, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value, index, list)</span> {</span> <span class="hljs-keyword">if</span> (!initial) { memo = value; initial = <span class="hljs-literal">true</span>; } <span class="hljs-keyword">else</span> { memo = iterator.call(context, memo, value, index, list); } }); <span class="hljs-keyword">if</span> (!initial) <span class="hljs-keyword">throw</span> <span class="hljs-keyword">new</span> <span class="hljs-built_in">TypeError</span>(reduceError); <span class="hljs-keyword">return</span> memo; };</pre></div></div> </li> <li id="section-18"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-18">&#182;</a> </div> <p>The right-associative version of reduce, also known as <code>foldr</code>. Delegates to <strong>ECMAScript 5</strong>‘s native <code>reduceRight</code> if available.</p> </div> <div class="content"><div class='highlight'><pre> _.reduceRight = _.foldr = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, iterator, memo, context)</span> {</span> <span class="hljs-keyword">var</span> initial = <span class="hljs-built_in">arguments</span>.length &gt; <span class="hljs-number">2</span>; <span class="hljs-keyword">if</span> (obj == <span class="hljs-literal">null</span>) obj = []; <span class="hljs-keyword">if</span> (nativeReduceRight &amp;&amp; obj.reduceRight === nativeReduceRight) { <span class="hljs-keyword">if</span> (context) iterator = _.bind(iterator, context); <span class="hljs-keyword">return</span> initial ? obj.reduceRight(iterator, memo) : obj.reduceRight(iterator); } <span class="hljs-keyword">var</span> length = obj.length; <span class="hljs-keyword">if</span> (length !== +length) { <span class="hljs-keyword">var</span> keys = _.keys(obj); length = keys.length; } each(obj, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value, index, list)</span> {</span> index = keys ? keys[--length] : --length; <span class="hljs-keyword">if</span> (!initial) { memo = obj[index]; initial = <span class="hljs-literal">true</span>; } <span class="hljs-keyword">else</span> { memo = iterator.call(context, memo, obj[index], index, list); } }); <span class="hljs-keyword">if</span> (!initial) <span class="hljs-keyword">throw</span> <span class="hljs-keyword">new</span> <span class="hljs-built_in">TypeError</span>(reduceError); <span class="hljs-keyword">return</span> memo; };</pre></div></div> </li> <li id="section-19"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-19">&#182;</a> </div> <p>Return the first value which passes a truth test. Aliased as <code>detect</code>.</p> </div> <div class="content"><div class='highlight'><pre> _.find = _.detect = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, predicate, context)</span> {</span> <span class="hljs-keyword">var</span> result; any(obj, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value, index, list)</span> {</span> <span class="hljs-keyword">if</span> (predicate.call(context, value, index, list)) { result = value; <span class="hljs-keyword">return</span> <span class="hljs-literal">true</span>; } }); <span class="hljs-keyword">return</span> result; };</pre></div></div> </li> <li id="section-20"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-20">&#182;</a> </div> <p>Return all the elements that pass a truth test. Delegates to <strong>ECMAScript 5</strong>‘s native <code>filter</code> if available. Aliased as <code>select</code>.</p> </div> <div class="content"><div class='highlight'><pre> _.filter = _.select = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, predicate, context)</span> {</span> <span class="hljs-keyword">var</span> results = []; <span class="hljs-keyword">if</span> (obj == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> results; <span class="hljs-keyword">if</span> (nativeFilter &amp;&amp; obj.filter === nativeFilter) <span class="hljs-keyword">return</span> obj.filter(predicate, context); each(obj, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value, index, list)</span> {</span> <span class="hljs-keyword">if</span> (predicate.call(context, value, index, list)) results.push(value); }); <span class="hljs-keyword">return</span> results; };</pre></div></div> </li> <li id="section-21"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-21">&#182;</a> </div> <p>Return all the elements for which a truth test fails.</p> </div> <div class="content"><div class='highlight'><pre> _.reject = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, predicate, context)</span> {</span> <span class="hljs-keyword">return</span> _.filter(obj, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value, index, list)</span> {</span> <span class="hljs-keyword">return</span> !predicate.call(context, value, index, list); }, context); };</pre></div></div> </li> <li id="section-22"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-22">&#182;</a> </div> <p>Determine whether all of the elements match a truth test. Delegates to <strong>ECMAScript 5</strong>‘s native <code>every</code> if available. Aliased as <code>all</code>.</p> </div> <div class="content"><div class='highlight'><pre> _.every = _.all = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, predicate, context)</span> {</span> predicate || (predicate = _.identity); <span class="hljs-keyword">var</span> result = <span class="hljs-literal">true</span>; <span class="hljs-keyword">if</span> (obj == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> result; <span class="hljs-keyword">if</span> (nativeEvery &amp;&amp; obj.every === nativeEvery) <span class="hljs-keyword">return</span> obj.every(predicate, context); each(obj, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value, index, list)</span> {</span> <span class="hljs-keyword">if</span> (!(result = result &amp;&amp; predicate.call(context, value, index, list))) <span class="hljs-keyword">return</span> breaker; }); <span class="hljs-keyword">return</span> !!result; };</pre></div></div> </li> <li id="section-23"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-23">&#182;</a> </div> <p>Determine if at least one element in the object matches a truth test. Delegates to <strong>ECMAScript 5</strong>‘s native <code>some</code> if available. Aliased as <code>any</code>.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> any = _.some = _.any = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, predicate, context)</span> {</span> predicate || (predicate = _.identity); <span class="hljs-keyword">var</span> result = <span class="hljs-literal">false</span>; <span class="hljs-keyword">if</span> (obj == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> result; <span class="hljs-keyword">if</span> (nativeSome &amp;&amp; obj.some === nativeSome) <span class="hljs-keyword">return</span> obj.some(predicate, context); each(obj, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value, index, list)</span> {</span> <span class="hljs-keyword">if</span> (result || (result = predicate.call(context, value, index, list))) <span class="hljs-keyword">return</span> breaker; }); <span class="hljs-keyword">return</span> !!result; };</pre></div></div> </li> <li id="section-24"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-24">&#182;</a> </div> <p>Determine if the array or object contains a given value (using <code>===</code>). Aliased as <code>include</code>.</p> </div> <div class="content"><div class='highlight'><pre> _.contains = _.include = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, target)</span> {</span> <span class="hljs-keyword">if</span> (obj == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> <span class="hljs-literal">false</span>; <span class="hljs-keyword">if</span> (nativeIndexOf &amp;&amp; obj.indexOf === nativeIndexOf) <span class="hljs-keyword">return</span> obj.indexOf(target) != -<span class="hljs-number">1</span>; <span class="hljs-keyword">return</span> any(obj, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value)</span> {</span> <span class="hljs-keyword">return</span> value === target; }); };</pre></div></div> </li> <li id="section-25"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-25">&#182;</a> </div> <p>Invoke a method (with arguments) on every item in a collection.</p> </div> <div class="content"><div class='highlight'><pre> _.invoke = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, method)</span> {</span> <span class="hljs-keyword">var</span> args = slice.call(<span class="hljs-built_in">arguments</span>, <span class="hljs-number">2</span>); <span class="hljs-keyword">var</span> isFunc = _.isFunction(method); <span class="hljs-keyword">return</span> _.map(obj, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value)</span> {</span> <span class="hljs-keyword">return</span> (isFunc ? method : value[method]).apply(value, args); }); };</pre></div></div> </li> <li id="section-26"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-26">&#182;</a> </div> <p>Convenience version of a common use case of <code>map</code>: fetching a property.</p> </div> <div class="content"><div class='highlight'><pre> _.pluck = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, key)</span> {</span> <span class="hljs-keyword">return</span> _.map(obj, _.property(key)); };</pre></div></div> </li> <li id="section-27"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-27">&#182;</a> </div> <p>Convenience version of a common use case of <code>filter</code>: selecting only objects containing specific <code>key:value</code> pairs.</p> </div> <div class="content"><div class='highlight'><pre> _.where = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, attrs)</span> {</span> <span class="hljs-keyword">return</span> _.filter(obj, _.matches(attrs)); };</pre></div></div> </li> <li id="section-28"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-28">&#182;</a> </div> <p>Convenience version of a common use case of <code>find</code>: getting the first object containing specific <code>key:value</code> pairs.</p> </div> <div class="content"><div class='highlight'><pre> _.findWhere = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, attrs)</span> {</span> <span class="hljs-keyword">return</span> _.find(obj, _.matches(attrs)); };</pre></div></div> </li> <li id="section-29"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-29">&#182;</a> </div> <p>Return the maximum element or (element-based computation). Can’t optimize arrays of integers longer than 65,535 elements. See <a href="https://bugs.webkit.org/show_bug.cgi?id=80797">WebKit Bug 80797</a></p> </div> <div class="content"><div class='highlight'><pre> _.max = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, iterator, context)</span> {</span> <span class="hljs-keyword">if</span> (!iterator &amp;&amp; _.isArray(obj) &amp;&amp; obj[<span class="hljs-number">0</span>] === +obj[<span class="hljs-number">0</span>] &amp;&amp; obj.length &lt; <span class="hljs-number">65535</span>) { <span class="hljs-keyword">return</span> <span class="hljs-built_in">Math</span>.max.apply(<span class="hljs-built_in">Math</span>, obj); } <span class="hljs-keyword">var</span> result = -<span class="hljs-literal">Infinity</span>, lastComputed = -<span class="hljs-literal">Infinity</span>; each(obj, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value, index, list)</span> {</span> <span class="hljs-keyword">var</span> computed = iterator ? iterator.call(context, value, index, list) : value; <span class="hljs-keyword">if</span> (computed &gt; lastComputed) { result = value; lastComputed = computed; } }); <span class="hljs-keyword">return</span> result; };</pre></div></div> </li> <li id="section-30"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-30">&#182;</a> </div> <p>Return the minimum element (or element-based computation).</p> </div> <div class="content"><div class='highlight'><pre> _.min = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, iterator, context)</span> {</span> <span class="hljs-keyword">if</span> (!iterator &amp;&amp; _.isArray(obj) &amp;&amp; obj[<span class="hljs-number">0</span>] === +obj[<span class="hljs-number">0</span>] &amp;&amp; obj.length &lt; <span class="hljs-number">65535</span>) { <span class="hljs-keyword">return</span> <span class="hljs-built_in">Math</span>.min.apply(<span class="hljs-built_in">Math</span>, obj); } <span class="hljs-keyword">var</span> result = <span class="hljs-literal">Infinity</span>, lastComputed = <span class="hljs-literal">Infinity</span>; each(obj, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value, index, list)</span> {</span> <span class="hljs-keyword">var</span> computed = iterator ? iterator.call(context, value, index, list) : value; <span class="hljs-keyword">if</span> (computed &lt; lastComputed) { result = value; lastComputed = computed; } }); <span class="hljs-keyword">return</span> result; };</pre></div></div> </li> <li id="section-31"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-31">&#182;</a> </div> <p>Shuffle an array, using the modern version of the <a href="http://en.wikipedia.org/wiki/Fisher–Yates_shuffle">Fisher-Yates shuffle</a>.</p> </div> <div class="content"><div class='highlight'><pre> _.shuffle = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">var</span> rand; <span class="hljs-keyword">var</span> index = <span class="hljs-number">0</span>; <span class="hljs-keyword">var</span> shuffled = []; each(obj, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value)</span> {</span> rand = _.random(index++); shuffled[index - <span class="hljs-number">1</span>] = shuffled[rand]; shuffled[rand] = value; }); <span class="hljs-keyword">return</span> shuffled; };</pre></div></div> </li> <li id="section-32"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-32">&#182;</a> </div> <p>Sample <strong>n</strong> random values from a collection. If <strong>n</strong> is not specified, returns a single random element. The internal <code>guard</code> argument allows it to work with <code>map</code>.</p> </div> <div class="content"><div class='highlight'><pre> _.sample = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, n, guard)</span> {</span> <span class="hljs-keyword">if</span> (n == <span class="hljs-literal">null</span> || guard) { <span class="hljs-keyword">if</span> (obj.length !== +obj.length) obj = _.values(obj); <span class="hljs-keyword">return</span> obj[_.random(obj.length - <span class="hljs-number">1</span>)]; } <span class="hljs-keyword">return</span> _.shuffle(obj).slice(<span class="hljs-number">0</span>, <span class="hljs-built_in">Math</span>.max(<span class="hljs-number">0</span>, n)); };</pre></div></div> </li> <li id="section-33"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-33">&#182;</a> </div> <p>An internal function to generate lookup iterators.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> lookupIterator = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value)</span> {</span> <span class="hljs-keyword">if</span> (value == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> _.identity; <span class="hljs-keyword">if</span> (_.isFunction(value)) <span class="hljs-keyword">return</span> value; <span class="hljs-keyword">return</span> _.property(value); };</pre></div></div> </li> <li id="section-34"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-34">&#182;</a> </div> <p>Sort the object’s values by a criterion produced by an iterator.</p> </div> <div class="content"><div class='highlight'><pre> _.sortBy = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, iterator, context)</span> {</span> iterator = lookupIterator(iterator); <span class="hljs-keyword">return</span> _.pluck(_.map(obj, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value, index, list)</span> {</span> <span class="hljs-keyword">return</span> { value: value, index: index, criteria: iterator.call(context, value, index, list) }; }).sort(<span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(left, right)</span> {</span> <span class="hljs-keyword">var</span> a = left.criteria; <span class="hljs-keyword">var</span> b = right.criteria; <span class="hljs-keyword">if</span> (a !== b) { <span class="hljs-keyword">if</span> (a &gt; b || a === <span class="hljs-keyword">void</span> <span class="hljs-number">0</span>) <span class="hljs-keyword">return</span> <span class="hljs-number">1</span>; <span class="hljs-keyword">if</span> (a &lt; b || b === <span class="hljs-keyword">void</span> <span class="hljs-number">0</span>) <span class="hljs-keyword">return</span> -<span class="hljs-number">1</span>; } <span class="hljs-keyword">return</span> left.index - right.index; }), <span class="hljs-string">'value'</span>); };</pre></div></div> </li> <li id="section-35"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-35">&#182;</a> </div> <p>An internal function used for aggregate “group by” operations.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> group = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(behavior)</span> {</span> <span class="hljs-keyword">return</span> <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, iterator, context)</span> {</span> <span class="hljs-keyword">var</span> result = {}; iterator = lookupIterator(iterator); each(obj, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value, index)</span> {</span> <span class="hljs-keyword">var</span> key = iterator.call(context, value, index, obj); behavior(result, key, value); }); <span class="hljs-keyword">return</span> result; }; };</pre></div></div> </li> <li id="section-36"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-36">&#182;</a> </div> <p>Groups the object’s values by a criterion. Pass either a string attribute to group by, or a function that returns the criterion.</p> </div> <div class="content"><div class='highlight'><pre> _.groupBy = group(<span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(result, key, value)</span> {</span> _.has(result, key) ? result[key].push(value) : result[key] = [value]; });</pre></div></div> </li> <li id="section-37"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-37">&#182;</a> </div> <p>Indexes the object’s values by a criterion, similar to <code>groupBy</code>, but for when you know that your index values will be unique.</p> </div> <div class="content"><div class='highlight'><pre> _.indexBy = group(<span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(result, key, value)</span> {</span> result[key] = value; });</pre></div></div> </li> <li id="section-38"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-38">&#182;</a> </div> <p>Counts instances of an object that group by a certain criterion. Pass either a string attribute to count by, or a function that returns the criterion.</p> </div> <div class="content"><div class='highlight'><pre> _.countBy = group(<span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(result, key)</span> {</span> _.has(result, key) ? result[key]++ : result[key] = <span class="hljs-number">1</span>; });</pre></div></div> </li> <li id="section-39"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-39">&#182;</a> </div> <p>Use a comparator function to figure out the smallest index at which an object should be inserted so as to maintain order. Uses binary search.</p> </div> <div class="content"><div class='highlight'><pre> _.sortedIndex = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(array, obj, iterator, context)</span> {</span> iterator = lookupIterator(iterator); <span class="hljs-keyword">var</span> value = iterator.call(context, obj); <span class="hljs-keyword">var</span> low = <span class="hljs-number">0</span>, high = array.length; <span class="hljs-keyword">while</span> (low &lt; high) { <span class="hljs-keyword">var</span> mid = (low + high) &gt;&gt;&gt; <span class="hljs-number">1</span>; iterator.call(context, array[mid]) &lt; value ? low = mid + <span class="hljs-number">1</span> : high = mid; } <span class="hljs-keyword">return</span> low; };</pre></div></div> </li> <li id="section-40"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-40">&#182;</a> </div> <p>Safely create a real, live array from anything iterable.</p> </div> <div class="content"><div class='highlight'><pre> _.toArray = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">if</span> (!obj) <span class="hljs-keyword">return</span> []; <span class="hljs-keyword">if</span> (_.isArray(obj)) <span class="hljs-keyword">return</span> slice.call(obj); <span class="hljs-keyword">if</span> (obj.length === +obj.length) <span class="hljs-keyword">return</span> _.map(obj, _.identity); <span class="hljs-keyword">return</span> _.values(obj); };</pre></div></div> </li> <li id="section-41"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-41">&#182;</a> </div> <p>Return the number of elements in an object.</p> </div> <div class="content"><div class='highlight'><pre> _.size = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">if</span> (obj == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> <span class="hljs-number">0</span>; <span class="hljs-keyword">return</span> (obj.length === +obj.length) ? obj.length : _.keys(obj).length; };</pre></div></div> </li> <li id="section-42"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-42">&#182;</a> </div> <h2 id="array-functions">Array Functions</h2> </div> </li> <li id="section-43"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-43">&#182;</a> </div> </div> </li> <li id="section-44"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-44">&#182;</a> </div> <p>Get the first element of an array. Passing <strong>n</strong> will return the first N values in the array. Aliased as <code>head</code> and <code>take</code>. The <strong>guard</strong> check allows it to work with <code>_.map</code>.</p> </div> <div class="content"><div class='highlight'><pre> _.first = _.head = _.take = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(array, n, guard)</span> {</span> <span class="hljs-keyword">if</span> (array == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> <span class="hljs-keyword">void</span> <span class="hljs-number">0</span>; <span class="hljs-keyword">if</span> ((n == <span class="hljs-literal">null</span>) || guard) <span class="hljs-keyword">return</span> array[<span class="hljs-number">0</span>]; <span class="hljs-keyword">if</span> (n &lt; <span class="hljs-number">0</span>) <span class="hljs-keyword">return</span> []; <span class="hljs-keyword">return</span> slice.call(array, <span class="hljs-number">0</span>, n); };</pre></div></div> </li> <li id="section-45"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-45">&#182;</a> </div> <p>Returns everything but the last entry of the array. Especially useful on the arguments object. Passing <strong>n</strong> will return all the values in the array, excluding the last N. The <strong>guard</strong> check allows it to work with <code>_.map</code>.</p> </div> <div class="content"><div class='highlight'><pre> _.initial = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(array, n, guard)</span> {</span> <span class="hljs-keyword">return</span> slice.call(array, <span class="hljs-number">0</span>, array.length - ((n == <span class="hljs-literal">null</span>) || guard ? <span class="hljs-number">1</span> : n)); };</pre></div></div> </li> <li id="section-46"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-46">&#182;</a> </div> <p>Get the last element of an array. Passing <strong>n</strong> will return the last N values in the array. The <strong>guard</strong> check allows it to work with <code>_.map</code>.</p> </div> <div class="content"><div class='highlight'><pre> _.last = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(array, n, guard)</span> {</span> <span class="hljs-keyword">if</span> (array == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> <span class="hljs-keyword">void</span> <span class="hljs-number">0</span>; <span class="hljs-keyword">if</span> ((n == <span class="hljs-literal">null</span>) || guard) <span class="hljs-keyword">return</span> array[array.length - <span class="hljs-number">1</span>]; <span class="hljs-keyword">return</span> slice.call(array, <span class="hljs-built_in">Math</span>.max(array.length - n, <span class="hljs-number">0</span>)); };</pre></div></div> </li> <li id="section-47"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-47">&#182;</a> </div> <p>Returns everything but the first entry of the array. Aliased as <code>tail</code> and <code>drop</code>. Especially useful on the arguments object. Passing an <strong>n</strong> will return the rest N values in the array. The <strong>guard</strong> check allows it to work with <code>_.map</code>.</p> </div> <div class="content"><div class='highlight'><pre> _.rest = _.tail = _.drop = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(array, n, guard)</span> {</span> <span class="hljs-keyword">return</span> slice.call(array, (n == <span class="hljs-literal">null</span>) || guard ? <span class="hljs-number">1</span> : n); };</pre></div></div> </li> <li id="section-48"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-48">&#182;</a> </div> <p>Trim out all falsy values from an array.</p> </div> <div class="content"><div class='highlight'><pre> _.compact = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(array)</span> {</span> <span class="hljs-keyword">return</span> _.filter(array, _.identity); };</pre></div></div> </li> <li id="section-49"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-49">&#182;</a> </div> <p>Internal implementation of a recursive <code>flatten</code> function.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> flatten = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(input, shallow, output)</span> {</span> <span class="hljs-keyword">if</span> (shallow &amp;&amp; _.every(input, _.isArray)) { <span class="hljs-keyword">return</span> concat.apply(output, input); } each(input, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value)</span> {</span> <span class="hljs-keyword">if</span> (_.isArray(value) || _.isArguments(value)) { shallow ? push.apply(output, value) : flatten(value, shallow, output); } <span class="hljs-keyword">else</span> { output.push(value); } }); <span class="hljs-keyword">return</span> output; };</pre></div></div> </li> <li id="section-50"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-50">&#182;</a> </div> <p>Flatten out an array, either recursively (by default), or just one level.</p> </div> <div class="content"><div class='highlight'><pre> _.flatten = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(array, shallow)</span> {</span> <span class="hljs-keyword">return</span> flatten(array, shallow, []); };</pre></div></div> </li> <li id="section-51"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-51">&#182;</a> </div> <p>Return a version of the array that does not contain the specified value(s).</p> </div> <div class="content"><div class='highlight'><pre> _.without = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(array)</span> {</span> <span class="hljs-keyword">return</span> _.difference(array, slice.call(<span class="hljs-built_in">arguments</span>, <span class="hljs-number">1</span>)); };</pre></div></div> </li> <li id="section-52"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-52">&#182;</a> </div> <p>Split an array into two arrays: one whose elements all satisfy the given predicate, and one whose elements all do not satisfy the predicate.</p> </div> <div class="content"><div class='highlight'><pre> _.partition = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(array, predicate)</span> {</span> <span class="hljs-keyword">var</span> pass = [], fail = []; each(array, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(elem)</span> {</span> (predicate(elem) ? pass : fail).push(elem); }); <span class="hljs-keyword">return</span> [pass, fail]; };</pre></div></div> </li> <li id="section-53"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-53">&#182;</a> </div> <p>Produce a duplicate-free version of the array. If the array has already been sorted, you have the option of using a faster algorithm. Aliased as <code>unique</code>.</p> </div> <div class="content"><div class='highlight'><pre> _.uniq = _.unique = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(array, isSorted, iterator, context)</span> {</span> <span class="hljs-keyword">if</span> (_.isFunction(isSorted)) { context = iterator; iterator = isSorted; isSorted = <span class="hljs-literal">false</span>; } <span class="hljs-keyword">var</span> initial = iterator ? _.map(array, iterator, context) : array; <span class="hljs-keyword">var</span> results = []; <span class="hljs-keyword">var</span> seen = []; each(initial, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value, index)</span> {</span> <span class="hljs-keyword">if</span> (isSorted ? (!index || seen[seen.length - <span class="hljs-number">1</span>] !== value) : !_.contains(seen, value)) { seen.push(value); results.push(array[index]); } }); <span class="hljs-keyword">return</span> results; };</pre></div></div> </li> <li id="section-54"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-54">&#182;</a> </div> <p>Produce an array that contains the union: each distinct element from all of the passed-in arrays.</p> </div> <div class="content"><div class='highlight'><pre> _.union = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">return</span> _.uniq(_.flatten(<span class="hljs-built_in">arguments</span>, <span class="hljs-literal">true</span>)); };</pre></div></div> </li> <li id="section-55"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-55">&#182;</a> </div> <p>Produce an array that contains every item shared between all the passed-in arrays.</p> </div> <div class="content"><div class='highlight'><pre> _.intersection = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(array)</span> {</span> <span class="hljs-keyword">var</span> rest = slice.call(<span class="hljs-built_in">arguments</span>, <span class="hljs-number">1</span>); <span class="hljs-keyword">return</span> _.filter(_.uniq(array), <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(item)</span> {</span> <span class="hljs-keyword">return</span> _.every(rest, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(other)</span> {</span> <span class="hljs-keyword">return</span> _.contains(other, item); }); }); };</pre></div></div> </li> <li id="section-56"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-56">&#182;</a> </div> <p>Take the difference between one array and a number of other arrays. Only the elements present in just the first array will remain.</p> </div> <div class="content"><div class='highlight'><pre> _.difference = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(array)</span> {</span> <span class="hljs-keyword">var</span> rest = concat.apply(ArrayProto, slice.call(<span class="hljs-built_in">arguments</span>, <span class="hljs-number">1</span>)); <span class="hljs-keyword">return</span> _.filter(array, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value)</span>{</span> <span class="hljs-keyword">return</span> !_.contains(rest, value); }); };</pre></div></div> </li> <li id="section-57"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-57">&#182;</a> </div> <p>Zip together multiple lists into a single array — elements that share an index go together.</p> </div> <div class="content"><div class='highlight'><pre> _.zip = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">var</span> length = _.max(_.pluck(<span class="hljs-built_in">arguments</span>, <span class="hljs-string">'length'</span>).concat(<span class="hljs-number">0</span>)); <span class="hljs-keyword">var</span> results = <span class="hljs-keyword">new</span> <span class="hljs-built_in">Array</span>(length); <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">0</span>; i &lt; length; i++) { results[i] = _.pluck(<span class="hljs-built_in">arguments</span>, <span class="hljs-string">''</span> + i); } <span class="hljs-keyword">return</span> results; };</pre></div></div> </li> <li id="section-58"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-58">&#182;</a> </div> <p>Converts lists into objects. Pass either a single array of <code>[key, value]</code> pairs, or two parallel arrays of the same length — one of keys, and one of the corresponding values.</p> </div> <div class="content"><div class='highlight'><pre> _.object = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(list, values)</span> {</span> <span class="hljs-keyword">if</span> (list == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> {}; <span class="hljs-keyword">var</span> result = {}; <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">0</span>, length = list.length; i &lt; length; i++) { <span class="hljs-keyword">if</span> (values) { result[list[i]] = values[i]; } <span class="hljs-keyword">else</span> { result[list[i][<span class="hljs-number">0</span>]] = list[i][<span class="hljs-number">1</span>]; } } <span class="hljs-keyword">return</span> result; };</pre></div></div> </li> <li id="section-59"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-59">&#182;</a> </div> <p>If the browser doesn’t supply us with indexOf (I’m looking at you, <strong>MSIE</strong>), we need this function. Return the position of the first occurrence of an item in an array, or -1 if the item is not included in the array. Delegates to <strong>ECMAScript 5</strong>‘s native <code>indexOf</code> if available. If the array is large and already in sort order, pass <code>true</code> for <strong>isSorted</strong> to use binary search.</p> </div> <div class="content"><div class='highlight'><pre> _.indexOf = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(array, item, isSorted)</span> {</span> <span class="hljs-keyword">if</span> (array == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> -<span class="hljs-number">1</span>; <span class="hljs-keyword">var</span> i = <span class="hljs-number">0</span>, length = array.length; <span class="hljs-keyword">if</span> (isSorted) { <span class="hljs-keyword">if</span> (<span class="hljs-keyword">typeof</span> isSorted == <span class="hljs-string">'number'</span>) { i = (isSorted &lt; <span class="hljs-number">0</span> ? <span class="hljs-built_in">Math</span>.max(<span class="hljs-number">0</span>, length + isSorted) : isSorted); } <span class="hljs-keyword">else</span> { i = _.sortedIndex(array, item); <span class="hljs-keyword">return</span> array[i] === item ? i : -<span class="hljs-number">1</span>; } } <span class="hljs-keyword">if</span> (nativeIndexOf &amp;&amp; array.indexOf === nativeIndexOf) <span class="hljs-keyword">return</span> array.indexOf(item, isSorted); <span class="hljs-keyword">for</span> (; i &lt; length; i++) <span class="hljs-keyword">if</span> (array[i] === item) <span class="hljs-keyword">return</span> i; <span class="hljs-keyword">return</span> -<span class="hljs-number">1</span>; };</pre></div></div> </li> <li id="section-60"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-60">&#182;</a> </div> <p>Delegates to <strong>ECMAScript 5</strong>‘s native <code>lastIndexOf</code> if available.</p> </div> <div class="content"><div class='highlight'><pre> _.lastIndexOf = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(array, item, from)</span> {</span> <span class="hljs-keyword">if</span> (array == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> -<span class="hljs-number">1</span>; <span class="hljs-keyword">var</span> hasIndex = from != <span class="hljs-literal">null</span>; <span class="hljs-keyword">if</span> (nativeLastIndexOf &amp;&amp; array.lastIndexOf === nativeLastIndexOf) { <span class="hljs-keyword">return</span> hasIndex ? array.lastIndexOf(item, from) : array.lastIndexOf(item); } <span class="hljs-keyword">var</span> i = (hasIndex ? from : array.length); <span class="hljs-keyword">while</span> (i--) <span class="hljs-keyword">if</span> (array[i] === item) <span class="hljs-keyword">return</span> i; <span class="hljs-keyword">return</span> -<span class="hljs-number">1</span>; };</pre></div></div> </li> <li id="section-61"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-61">&#182;</a> </div> <p>Generate an integer Array containing an arithmetic progression. A port of the native Python <code>range()</code> function. See <a href="http://docs.python.org/library/functions.html#range">the Python documentation</a>.</p> </div> <div class="content"><div class='highlight'><pre> _.range = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(start, stop, step)</span> {</span> <span class="hljs-keyword">if</span> (<span class="hljs-built_in">arguments</span>.length &lt;= <span class="hljs-number">1</span>) { stop = start || <span class="hljs-number">0</span>; start = <span class="hljs-number">0</span>; } step = <span class="hljs-built_in">arguments</span>[<span class="hljs-number">2</span>] || <span class="hljs-number">1</span>; <span class="hljs-keyword">var</span> length = <span class="hljs-built_in">Math</span>.max(<span class="hljs-built_in">Math</span>.ceil((stop - start) / step), <span class="hljs-number">0</span>); <span class="hljs-keyword">var</span> idx = <span class="hljs-number">0</span>; <span class="hljs-keyword">var</span> range = <span class="hljs-keyword">new</span> <span class="hljs-built_in">Array</span>(length); <span class="hljs-keyword">while</span>(idx &lt; length) { range[idx++] = start; start += step; } <span class="hljs-keyword">return</span> range; };</pre></div></div> </li> <li id="section-62"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-62">&#182;</a> </div> <h2 id="function-ahem-functions">Function (ahem) Functions</h2> </div> </li> <li id="section-63"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-63">&#182;</a> </div> </div> </li> <li id="section-64"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-64">&#182;</a> </div> <p>Reusable constructor function for prototype setting.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> ctor = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span>{</span>};</pre></div></div> </li> <li id="section-65"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-65">&#182;</a> </div> <p>Create a function bound to a given object (assigning <code>this</code>, and arguments, optionally). Delegates to <strong>ECMAScript 5</strong>‘s native <code>Function.bind</code> if available.</p> </div> <div class="content"><div class='highlight'><pre> _.bind = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(func, context)</span> {</span> <span class="hljs-keyword">var</span> args, bound; <span class="hljs-keyword">if</span> (nativeBind &amp;&amp; func.bind === nativeBind) <span class="hljs-keyword">return</span> nativeBind.apply(func, slice.call(<span class="hljs-built_in">arguments</span>, <span class="hljs-number">1</span>)); <span class="hljs-keyword">if</span> (!_.isFunction(func)) <span class="hljs-keyword">throw</span> <span class="hljs-keyword">new</span> <span class="hljs-built_in">TypeError</span>; args = slice.call(<span class="hljs-built_in">arguments</span>, <span class="hljs-number">2</span>); <span class="hljs-keyword">return</span> bound = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">if</span> (!(<span class="hljs-keyword">this</span> <span class="hljs-keyword">instanceof</span> bound)) <span class="hljs-keyword">return</span> func.apply(context, args.concat(slice.call(<span class="hljs-built_in">arguments</span>))); ctor.prototype = func.prototype; <span class="hljs-keyword">var</span> self = <span class="hljs-keyword">new</span> ctor; ctor.prototype = <span class="hljs-literal">null</span>; <span class="hljs-keyword">var</span> result = func.apply(self, args.concat(slice.call(<span class="hljs-built_in">arguments</span>))); <span class="hljs-keyword">if</span> (<span class="hljs-built_in">Object</span>(result) === result) <span class="hljs-keyword">return</span> result; <span class="hljs-keyword">return</span> self; }; };</pre></div></div> </li> <li id="section-66"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-66">&#182;</a> </div> <p>Partially apply a function by creating a version that has had some of its arguments pre-filled, without changing its dynamic <code>this</code> context. _ acts as a placeholder, allowing any combination of arguments to be pre-filled.</p> </div> <div class="content"><div class='highlight'><pre> _.partial = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(func)</span> {</span> <span class="hljs-keyword">var</span> boundArgs = slice.call(<span class="hljs-built_in">arguments</span>, <span class="hljs-number">1</span>); <span class="hljs-keyword">return</span> <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">var</span> position = <span class="hljs-number">0</span>; <span class="hljs-keyword">var</span> args = boundArgs.slice(); <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">0</span>, length = args.length; i &lt; length; i++) { <span class="hljs-keyword">if</span> (args[i] === _) args[i] = <span class="hljs-built_in">arguments</span>[position++]; } <span class="hljs-keyword">while</span> (position &lt; <span class="hljs-built_in">arguments</span>.length) args.push(<span class="hljs-built_in">arguments</span>[position++]); <span class="hljs-keyword">return</span> func.apply(<span class="hljs-keyword">this</span>, args); }; };</pre></div></div> </li> <li id="section-67"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-67">&#182;</a> </div> <p>Bind a number of an object’s methods to that object. Remaining arguments are the method names to be bound. Useful for ensuring that all callbacks defined on an object belong to it.</p> </div> <div class="content"><div class='highlight'><pre> _.bindAll = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">var</span> funcs = slice.call(<span class="hljs-built_in">arguments</span>, <span class="hljs-number">1</span>); <span class="hljs-keyword">if</span> (funcs.length === <span class="hljs-number">0</span>) <span class="hljs-keyword">throw</span> <span class="hljs-keyword">new</span> <span class="hljs-built_in">Error</span>(<span class="hljs-string">'bindAll must be passed function names'</span>); each(funcs, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(f)</span> {</span> obj[f] = _.bind(obj[f], obj); }); <span class="hljs-keyword">return</span> obj; };</pre></div></div> </li> <li id="section-68"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-68">&#182;</a> </div> <p>Memoize an expensive function by storing its results.</p> </div> <div class="content"><div class='highlight'><pre> _.memoize = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(func, hasher)</span> {</span> <span class="hljs-keyword">var</span> memo = {}; hasher || (hasher = _.identity); <span class="hljs-keyword">return</span> <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">var</span> key = hasher.apply(<span class="hljs-keyword">this</span>, <span class="hljs-built_in">arguments</span>); <span class="hljs-keyword">return</span> _.has(memo, key) ? memo[key] : (memo[key] = func.apply(<span class="hljs-keyword">this</span>, <span class="hljs-built_in">arguments</span>)); }; };</pre></div></div> </li> <li id="section-69"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-69">&#182;</a> </div> <p>Delays a function for the given number of milliseconds, and then calls it with the arguments supplied.</p> </div> <div class="content"><div class='highlight'><pre> _.delay = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(func, wait)</span> {</span> <span class="hljs-keyword">var</span> args = slice.call(<span class="hljs-built_in">arguments</span>, <span class="hljs-number">2</span>); <span class="hljs-keyword">return</span> setTimeout(<span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span>{</span> <span class="hljs-keyword">return</span> func.apply(<span class="hljs-literal">null</span>, args); }, wait); };</pre></div></div> </li> <li id="section-70"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-70">&#182;</a> </div> <p>Defers a function, scheduling it to run after the current call stack has cleared.</p> </div> <div class="content"><div class='highlight'><pre> _.defer = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(func)</span> {</span> <span class="hljs-keyword">return</span> _.delay.apply(_, [func, <span class="hljs-number">1</span>].concat(slice.call(<span class="hljs-built_in">arguments</span>, <span class="hljs-number">1</span>))); };</pre></div></div> </li> <li id="section-71"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-71">&#182;</a> </div> <p>Returns a function, that, when invoked, will only be triggered at most once during a given window of time. Normally, the throttled function will run as much as it can, without ever going more than once per <code>wait</code> duration; but if you’d like to disable the execution on the leading edge, pass <code>{leading: false}</code>. To disable execution on the trailing edge, ditto.</p> </div> <div class="content"><div class='highlight'><pre> _.throttle = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(func, wait, options)</span> {</span> <span class="hljs-keyword">var</span> context, args, result; <span class="hljs-keyword">var</span> timeout = <span class="hljs-literal">null</span>; <span class="hljs-keyword">var</span> previous = <span class="hljs-number">0</span>; options || (options = {}); <span class="hljs-keyword">var</span> later = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> previous = options.leading === <span class="hljs-literal">false</span> ? <span class="hljs-number">0</span> : _.now(); timeout = <span class="hljs-literal">null</span>; result = func.apply(context, args); context = args = <span class="hljs-literal">null</span>; }; <span class="hljs-keyword">return</span> <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">var</span> now = _.now(); <span class="hljs-keyword">if</span> (!previous &amp;&amp; options.leading === <span class="hljs-literal">false</span>) previous = now; <span class="hljs-keyword">var</span> remaining = wait - (now - previous); context = <span class="hljs-keyword">this</span>; args = <span class="hljs-built_in">arguments</span>; <span class="hljs-keyword">if</span> (remaining &lt;= <span class="hljs-number">0</span>) { clearTimeout(timeout); timeout = <span class="hljs-literal">null</span>; previous = now; result = func.apply(context, args); context = args = <span class="hljs-literal">null</span>; } <span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> (!timeout &amp;&amp; options.trailing !== <span class="hljs-literal">false</span>) { timeout = setTimeout(later, remaining); } <span class="hljs-keyword">return</span> result; }; };</pre></div></div> </li> <li id="section-72"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-72">&#182;</a> </div> <p>Returns a function, that, as long as it continues to be invoked, will not be triggered. The function will be called after it stops being called for N milliseconds. If <code>immediate</code> is passed, trigger the function on the leading edge, instead of the trailing.</p> </div> <div class="content"><div class='highlight'><pre> _.debounce = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(func, wait, immediate)</span> {</span> <span class="hljs-keyword">var</span> timeout, args, context, timestamp, result; <span class="hljs-keyword">var</span> later = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">var</span> last = _.now() - timestamp; <span class="hljs-keyword">if</span> (last &lt; wait) { timeout = setTimeout(later, wait - last); } <span class="hljs-keyword">else</span> { timeout = <span class="hljs-literal">null</span>; <span class="hljs-keyword">if</span> (!immediate) { result = func.apply(context, args); context = args = <span class="hljs-literal">null</span>; } } }; <span class="hljs-keyword">return</span> <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> context = <span class="hljs-keyword">this</span>; args = <span class="hljs-built_in">arguments</span>; timestamp = _.now(); <span class="hljs-keyword">var</span> callNow = immediate &amp;&amp; !timeout; <span class="hljs-keyword">if</span> (!timeout) { timeout = setTimeout(later, wait); } <span class="hljs-keyword">if</span> (callNow) { result = func.apply(context, args); context = args = <span class="hljs-literal">null</span>; } <span class="hljs-keyword">return</span> result; }; };</pre></div></div> </li> <li id="section-73"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-73">&#182;</a> </div> <p>Returns a function that will be executed at most one time, no matter how often you call it. Useful for lazy initialization.</p> </div> <div class="content"><div class='highlight'><pre> _.once = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(func)</span> {</span> <span class="hljs-keyword">var</span> ran = <span class="hljs-literal">false</span>, memo; <span class="hljs-keyword">return</span> <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">if</span> (ran) <span class="hljs-keyword">return</span> memo; ran = <span class="hljs-literal">true</span>; memo = func.apply(<span class="hljs-keyword">this</span>, <span class="hljs-built_in">arguments</span>); func = <span class="hljs-literal">null</span>; <span class="hljs-keyword">return</span> memo; }; };</pre></div></div> </li> <li id="section-74"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-74">&#182;</a> </div> <p>Returns the first function passed as an argument to the second, allowing you to adjust arguments, run code before and after, and conditionally execute the original function.</p> </div> <div class="content"><div class='highlight'><pre> _.wrap = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(func, wrapper)</span> {</span> <span class="hljs-keyword">return</span> _.partial(wrapper, func); };</pre></div></div> </li> <li id="section-75"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-75">&#182;</a> </div> <p>Returns a function that is the composition of a list of functions, each consuming the return value of the function that follows.</p> </div> <div class="content"><div class='highlight'><pre> _.compose = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">var</span> funcs = <span class="hljs-built_in">arguments</span>; <span class="hljs-keyword">return</span> <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">var</span> args = <span class="hljs-built_in">arguments</span>; <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = funcs.length - <span class="hljs-number">1</span>; i &gt;= <span class="hljs-number">0</span>; i--) { args = [funcs[i].apply(<span class="hljs-keyword">this</span>, args)]; } <span class="hljs-keyword">return</span> args[<span class="hljs-number">0</span>]; }; };</pre></div></div> </li> <li id="section-76"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-76">&#182;</a> </div> <p>Returns a function that will only be executed after being called N times.</p> </div> <div class="content"><div class='highlight'><pre> _.after = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(times, func)</span> {</span> <span class="hljs-keyword">return</span> <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">if</span> (--times &lt; <span class="hljs-number">1</span>) { <span class="hljs-keyword">return</span> func.apply(<span class="hljs-keyword">this</span>, <span class="hljs-built_in">arguments</span>); } }; };</pre></div></div> </li> <li id="section-77"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-77">&#182;</a> </div> <h2 id="object-functions">Object Functions</h2> </div> </li> <li id="section-78"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-78">&#182;</a> </div> </div> </li> <li id="section-79"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-79">&#182;</a> </div> <p>Retrieve the names of an object’s properties. Delegates to <strong>ECMAScript 5</strong>‘s native <code>Object.keys</code></p> </div> <div class="content"><div class='highlight'><pre> _.keys = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">if</span> (!_.isObject(obj)) <span class="hljs-keyword">return</span> []; <span class="hljs-keyword">if</span> (nativeKeys) <span class="hljs-keyword">return</span> nativeKeys(obj); <span class="hljs-keyword">var</span> keys = []; <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> key <span class="hljs-keyword">in</span> obj) <span class="hljs-keyword">if</span> (_.has(obj, key)) keys.push(key); <span class="hljs-keyword">return</span> keys; };</pre></div></div> </li> <li id="section-80"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-80">&#182;</a> </div> <p>Retrieve the values of an object’s properties.</p> </div> <div class="content"><div class='highlight'><pre> _.values = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">var</span> keys = _.keys(obj); <span class="hljs-keyword">var</span> length = keys.length; <span class="hljs-keyword">var</span> values = <span class="hljs-keyword">new</span> <span class="hljs-built_in">Array</span>(length); <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">0</span>; i &lt; length; i++) { values[i] = obj[keys[i]]; } <span class="hljs-keyword">return</span> values; };</pre></div></div> </li> <li id="section-81"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-81">&#182;</a> </div> <p>Convert an object into a list of <code>[key, value]</code> pairs.</p> </div> <div class="content"><div class='highlight'><pre> _.pairs = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">var</span> keys = _.keys(obj); <span class="hljs-keyword">var</span> length = keys.length; <span class="hljs-keyword">var</span> pairs = <span class="hljs-keyword">new</span> <span class="hljs-built_in">Array</span>(length); <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">0</span>; i &lt; length; i++) { pairs[i] = [keys[i], obj[keys[i]]]; } <span class="hljs-keyword">return</span> pairs; };</pre></div></div> </li> <li id="section-82"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-82">&#182;</a> </div> <p>Invert the keys and values of an object. The values must be serializable.</p> </div> <div class="content"><div class='highlight'><pre> _.invert = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">var</span> result = {}; <span class="hljs-keyword">var</span> keys = _.keys(obj); <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">0</span>, length = keys.length; i &lt; length; i++) { result[obj[keys[i]]] = keys[i]; } <span class="hljs-keyword">return</span> result; };</pre></div></div> </li> <li id="section-83"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-83">&#182;</a> </div> <p>Return a sorted list of the function names available on the object. Aliased as <code>methods</code></p> </div> <div class="content"><div class='highlight'><pre> _.functions = _.methods = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">var</span> names = []; <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> key <span class="hljs-keyword">in</span> obj) { <span class="hljs-keyword">if</span> (_.isFunction(obj[key])) names.push(key); } <span class="hljs-keyword">return</span> names.sort(); };</pre></div></div> </li> <li id="section-84"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-84">&#182;</a> </div> <p>Extend a given object with all the properties in passed-in object(s).</p> </div> <div class="content"><div class='highlight'><pre> _.extend = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> each(slice.call(<span class="hljs-built_in">arguments</span>, <span class="hljs-number">1</span>), <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(source)</span> {</span> <span class="hljs-keyword">if</span> (source) { <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> prop <span class="hljs-keyword">in</span> source) { obj[prop] = source[prop]; } } }); <span class="hljs-keyword">return</span> obj; };</pre></div></div> </li> <li id="section-85"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-85">&#182;</a> </div> <p>Return a copy of the object only containing the whitelisted properties.</p> </div> <div class="content"><div class='highlight'><pre> _.pick = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">var</span> copy = {}; <span class="hljs-keyword">var</span> keys = concat.apply(ArrayProto, slice.call(<span class="hljs-built_in">arguments</span>, <span class="hljs-number">1</span>)); each(keys, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(key)</span> {</span> <span class="hljs-keyword">if</span> (key <span class="hljs-keyword">in</span> obj) copy[key] = obj[key]; }); <span class="hljs-keyword">return</span> copy; };</pre></div></div> </li> <li id="section-86"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-86">&#182;</a> </div> <p>Return a copy of the object without the blacklisted properties.</p> </div> <div class="content"><div class='highlight'><pre> _.omit = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">var</span> copy = {}; <span class="hljs-keyword">var</span> keys = concat.apply(ArrayProto, slice.call(<span class="hljs-built_in">arguments</span>, <span class="hljs-number">1</span>)); <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> key <span class="hljs-keyword">in</span> obj) { <span class="hljs-keyword">if</span> (!_.contains(keys, key)) copy[key] = obj[key]; } <span class="hljs-keyword">return</span> copy; };</pre></div></div> </li> <li id="section-87"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-87">&#182;</a> </div> <p>Fill in a given object with default properties.</p> </div> <div class="content"><div class='highlight'><pre> _.defaults = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> each(slice.call(<span class="hljs-built_in">arguments</span>, <span class="hljs-number">1</span>), <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(source)</span> {</span> <span class="hljs-keyword">if</span> (source) { <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> prop <span class="hljs-keyword">in</span> source) { <span class="hljs-keyword">if</span> (obj[prop] === <span class="hljs-keyword">void</span> <span class="hljs-number">0</span>) obj[prop] = source[prop]; } } }); <span class="hljs-keyword">return</span> obj; };</pre></div></div> </li> <li id="section-88"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-88">&#182;</a> </div> <p>Create a (shallow-cloned) duplicate of an object.</p> </div> <div class="content"><div class='highlight'><pre> _.clone = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">if</span> (!_.isObject(obj)) <span class="hljs-keyword">return</span> obj; <span class="hljs-keyword">return</span> _.isArray(obj) ? obj.slice() : _.extend({}, obj); };</pre></div></div> </li> <li id="section-89"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-89">&#182;</a> </div> <p>Invokes interceptor with the obj, and then returns obj. The primary purpose of this method is to “tap into” a method chain, in order to perform operations on intermediate results within the chain.</p> </div> <div class="content"><div class='highlight'><pre> _.tap = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, interceptor)</span> {</span> interceptor(obj); <span class="hljs-keyword">return</span> obj; };</pre></div></div> </li> <li id="section-90"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-90">&#182;</a> </div> <p>Internal recursive comparison function for <code>isEqual</code>.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> eq = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(a, b, aStack, bStack)</span> {</span></pre></div></div> </li> <li id="section-91"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-91">&#182;</a> </div> <p>Identical objects are equal. <code>0 === -0</code>, but they aren’t identical. See the <a href="http://wiki.ecmascript.org/doku.php?id=harmony:egal">Harmony <code>egal</code> proposal</a>.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> (a === b) <span class="hljs-keyword">return</span> a !== <span class="hljs-number">0</span> || <span class="hljs-number">1</span> / a == <span class="hljs-number">1</span> / b;</pre></div></div> </li> <li id="section-92"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-92">&#182;</a> </div> <p>A strict comparison is necessary because <code>null == undefined</code>.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> (a == <span class="hljs-literal">null</span> || b == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> a === b;</pre></div></div> </li> <li id="section-93"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-93">&#182;</a> </div> <p>Unwrap any wrapped objects.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> (a <span class="hljs-keyword">instanceof</span> _) a = a._wrapped; <span class="hljs-keyword">if</span> (b <span class="hljs-keyword">instanceof</span> _) b = b._wrapped;</pre></div></div> </li> <li id="section-94"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-94">&#182;</a> </div> <p>Compare <code>[[Class]]</code> names.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> className = toString.call(a); <span class="hljs-keyword">if</span> (className != toString.call(b)) <span class="hljs-keyword">return</span> <span class="hljs-literal">false</span>; <span class="hljs-keyword">switch</span> (className) {</pre></div></div> </li> <li id="section-95"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-95">&#182;</a> </div> <p>Strings, numbers, dates, and booleans are compared by value.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">case</span> <span class="hljs-string">'[object String]'</span>:</pre></div></div> </li> <li id="section-96"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-96">&#182;</a> </div> <p>Primitives and their corresponding object wrappers are equivalent; thus, <code>&quot;5&quot;</code> is equivalent to <code>new String(&quot;5&quot;)</code>.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">return</span> a == <span class="hljs-built_in">String</span>(b); <span class="hljs-keyword">case</span> <span class="hljs-string">'[object Number]'</span>:</pre></div></div> </li> <li id="section-97"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-97">&#182;</a> </div> <p><code>NaN</code>s are equivalent, but non-reflexive. An <code>egal</code> comparison is performed for other numeric values.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">return</span> a != +a ? b != +b : (a == <span class="hljs-number">0</span> ? <span class="hljs-number">1</span> / a == <span class="hljs-number">1</span> / b : a == +b); <span class="hljs-keyword">case</span> <span class="hljs-string">'[object Date]'</span>: <span class="hljs-keyword">case</span> <span class="hljs-string">'[object Boolean]'</span>:</pre></div></div> </li> <li id="section-98"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-98">&#182;</a> </div> <p>Coerce dates and booleans to numeric primitive values. Dates are compared by their millisecond representations. Note that invalid dates with millisecond representations of <code>NaN</code> are not equivalent.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">return</span> +a == +b;</pre></div></div> </li> <li id="section-99"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-99">&#182;</a> </div> <p>RegExps are compared by their source patterns and flags.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">case</span> <span class="hljs-string">'[object RegExp]'</span>: <span class="hljs-keyword">return</span> a.source == b.source &amp;&amp; a.global == b.global &amp;&amp; a.multiline == b.multiline &amp;&amp; a.ignoreCase == b.ignoreCase; } <span class="hljs-keyword">if</span> (<span class="hljs-keyword">typeof</span> a != <span class="hljs-string">'object'</span> || <span class="hljs-keyword">typeof</span> b != <span class="hljs-string">'object'</span>) <span class="hljs-keyword">return</span> <span class="hljs-literal">false</span>;</pre></div></div> </li> <li id="section-100"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-100">&#182;</a> </div> <p>Assume equality for cyclic structures. The algorithm for detecting cyclic structures is adapted from ES 5.1 section 15.12.3, abstract operation <code>JO</code>.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> length = aStack.length; <span class="hljs-keyword">while</span> (length--) {</pre></div></div> </li> <li id="section-101"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-101">&#182;</a> </div> <p>Linear search. Performance is inversely proportional to the number of unique nested structures.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> (aStack[length] == a) <span class="hljs-keyword">return</span> bStack[length] == b; }</pre></div></div> </li> <li id="section-102"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-102">&#182;</a> </div> <p>Objects with different constructors are not equivalent, but <code>Object</code>s from different frames are.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> aCtor = a.constructor, bCtor = b.constructor; <span class="hljs-keyword">if</span> (aCtor !== bCtor &amp;&amp; !(_.isFunction(aCtor) &amp;&amp; (aCtor <span class="hljs-keyword">instanceof</span> aCtor) &amp;&amp; _.isFunction(bCtor) &amp;&amp; (bCtor <span class="hljs-keyword">instanceof</span> bCtor)) &amp;&amp; (<span class="hljs-string">'constructor'</span> <span class="hljs-keyword">in</span> a &amp;&amp; <span class="hljs-string">'constructor'</span> <span class="hljs-keyword">in</span> b)) { <span class="hljs-keyword">return</span> <span class="hljs-literal">false</span>; }</pre></div></div> </li> <li id="section-103"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-103">&#182;</a> </div> <p>Add the first object to the stack of traversed objects.</p> </div> <div class="content"><div class='highlight'><pre> aStack.push(a); bStack.push(b); <span class="hljs-keyword">var</span> size = <span class="hljs-number">0</span>, result = <span class="hljs-literal">true</span>;</pre></div></div> </li> <li id="section-104"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-104">&#182;</a> </div> <p>Recursively compare objects and arrays.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> (className == <span class="hljs-string">'[object Array]'</span>) {</pre></div></div> </li> <li id="section-105"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-105">&#182;</a> </div> <p>Compare array lengths to determine if a deep comparison is necessary.</p> </div> <div class="content"><div class='highlight'><pre> size = a.length; result = size == b.length; <span class="hljs-keyword">if</span> (result) {</pre></div></div> </li> <li id="section-106"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-106">&#182;</a> </div> <p>Deep compare the contents, ignoring non-numeric properties.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">while</span> (size--) { <span class="hljs-keyword">if</span> (!(result = eq(a[size], b[size], aStack, bStack))) <span class="hljs-keyword">break</span>; } } } <span class="hljs-keyword">else</span> {</pre></div></div> </li> <li id="section-107"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-107">&#182;</a> </div> <p>Deep compare objects.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> key <span class="hljs-keyword">in</span> a) { <span class="hljs-keyword">if</span> (_.has(a, key)) {</pre></div></div> </li> <li id="section-108"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-108">&#182;</a> </div> <p>Count the expected number of properties.</p> </div> <div class="content"><div class='highlight'><pre> size++;</pre></div></div> </li> <li id="section-109"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-109">&#182;</a> </div> <p>Deep compare each member.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> (!(result = _.has(b, key) &amp;&amp; eq(a[key], b[key], aStack, bStack))) <span class="hljs-keyword">break</span>; } }</pre></div></div> </li> <li id="section-110"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-110">&#182;</a> </div> <p>Ensure that both objects contain the same number of properties.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> (result) { <span class="hljs-keyword">for</span> (key <span class="hljs-keyword">in</span> b) { <span class="hljs-keyword">if</span> (_.has(b, key) &amp;&amp; !(size--)) <span class="hljs-keyword">break</span>; } result = !size; } }</pre></div></div> </li> <li id="section-111"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-111">&#182;</a> </div> <p>Remove the first object from the stack of traversed objects.</p> </div> <div class="content"><div class='highlight'><pre> aStack.pop(); bStack.pop(); <span class="hljs-keyword">return</span> result; };</pre></div></div> </li> <li id="section-112"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-112">&#182;</a> </div> <p>Perform a deep comparison to check if two objects are equal.</p> </div> <div class="content"><div class='highlight'><pre> _.isEqual = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(a, b)</span> {</span> <span class="hljs-keyword">return</span> eq(a, b, [], []); };</pre></div></div> </li> <li id="section-113"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-113">&#182;</a> </div> <p>Is a given array, string, or object empty? An “empty” object has no enumerable own-properties.</p> </div> <div class="content"><div class='highlight'><pre> _.isEmpty = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">if</span> (obj == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> <span class="hljs-literal">true</span>; <span class="hljs-keyword">if</span> (_.isArray(obj) || _.isString(obj)) <span class="hljs-keyword">return</span> obj.length === <span class="hljs-number">0</span>; <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> key <span class="hljs-keyword">in</span> obj) <span class="hljs-keyword">if</span> (_.has(obj, key)) <span class="hljs-keyword">return</span> <span class="hljs-literal">false</span>; <span class="hljs-keyword">return</span> <span class="hljs-literal">true</span>; };</pre></div></div> </li> <li id="section-114"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-114">&#182;</a> </div> <p>Is a given value a DOM element?</p> </div> <div class="content"><div class='highlight'><pre> _.isElement = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">return</span> !!(obj &amp;&amp; obj.nodeType === <span class="hljs-number">1</span>); };</pre></div></div> </li> <li id="section-115"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-115">&#182;</a> </div> <p>Is a given value an array? Delegates to ECMA5’s native Array.isArray</p> </div> <div class="content"><div class='highlight'><pre> _.isArray = nativeIsArray || <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">return</span> toString.call(obj) == <span class="hljs-string">'[object Array]'</span>; };</pre></div></div> </li> <li id="section-116"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-116">&#182;</a> </div> <p>Is a given variable an object?</p> </div> <div class="content"><div class='highlight'><pre> _.isObject = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">return</span> obj === <span class="hljs-built_in">Object</span>(obj); };</pre></div></div> </li> <li id="section-117"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-117">&#182;</a> </div> <p>Add some isType methods: isArguments, isFunction, isString, isNumber, isDate, isRegExp.</p> </div> <div class="content"><div class='highlight'><pre> each([<span class="hljs-string">'Arguments'</span>, <span class="hljs-string">'Function'</span>, <span class="hljs-string">'String'</span>, <span class="hljs-string">'Number'</span>, <span class="hljs-string">'Date'</span>, <span class="hljs-string">'RegExp'</span>], <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(name)</span> {</span> _[<span class="hljs-string">'is'</span> + name] = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">return</span> toString.call(obj) == <span class="hljs-string">'[object '</span> + name + <span class="hljs-string">']'</span>; }; });</pre></div></div> </li> <li id="section-118"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-118">&#182;</a> </div> <p>Define a fallback version of the method in browsers (ahem, IE), where there isn’t any inspectable “Arguments” type.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> (!_.isArguments(<span class="hljs-built_in">arguments</span>)) { _.isArguments = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">return</span> !!(obj &amp;&amp; _.has(obj, <span class="hljs-string">'callee'</span>)); }; }</pre></div></div> </li> <li id="section-119"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-119">&#182;</a> </div> <p>Optimize <code>isFunction</code> if appropriate.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> (<span class="hljs-keyword">typeof</span> (<span class="hljs-regexp">/./</span>) !== <span class="hljs-string">'function'</span>) { _.isFunction = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">return</span> <span class="hljs-keyword">typeof</span> obj === <span class="hljs-string">'function'</span>; }; }</pre></div></div> </li> <li id="section-120"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-120">&#182;</a> </div> <p>Is a given object a finite number?</p> </div> <div class="content"><div class='highlight'><pre> _.isFinite = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">return</span> <span class="hljs-built_in">isFinite</span>(obj) &amp;&amp; !<span class="hljs-built_in">isNaN</span>(<span class="hljs-built_in">parseFloat</span>(obj)); };</pre></div></div> </li> <li id="section-121"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-121">&#182;</a> </div> <p>Is the given value <code>NaN</code>? (NaN is the only number which does not equal itself).</p> </div> <div class="content"><div class='highlight'><pre> _.isNaN = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">return</span> _.isNumber(obj) &amp;&amp; obj != +obj; };</pre></div></div> </li> <li id="section-122"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-122">&#182;</a> </div> <p>Is a given value a boolean?</p> </div> <div class="content"><div class='highlight'><pre> _.isBoolean = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">return</span> obj === <span class="hljs-literal">true</span> || obj === <span class="hljs-literal">false</span> || toString.call(obj) == <span class="hljs-string">'[object Boolean]'</span>; };</pre></div></div> </li> <li id="section-123"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-123">&#182;</a> </div> <p>Is a given value equal to null?</p> </div> <div class="content"><div class='highlight'><pre> _.isNull = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">return</span> obj === <span class="hljs-literal">null</span>; };</pre></div></div> </li> <li id="section-124"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-124">&#182;</a> </div> <p>Is a given variable undefined?</p> </div> <div class="content"><div class='highlight'><pre> _.isUndefined = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">return</span> obj === <span class="hljs-keyword">void</span> <span class="hljs-number">0</span>; };</pre></div></div> </li> <li id="section-125"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-125">&#182;</a> </div> <p>Shortcut function for checking if an object has a given property directly on itself (in other words, not on a prototype).</p> </div> <div class="content"><div class='highlight'><pre> _.has = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj, key)</span> {</span> <span class="hljs-keyword">return</span> hasOwnProperty.call(obj, key); };</pre></div></div> </li> <li id="section-126"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-126">&#182;</a> </div> <h2 id="utility-functions">Utility Functions</h2> </div> </li> <li id="section-127"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-127">&#182;</a> </div> </div> </li> <li id="section-128"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-128">&#182;</a> </div> <p>Run Underscore.js in <em>noConflict</em> mode, returning the <code>_</code> variable to its previous owner. Returns a reference to the Underscore object.</p> </div> <div class="content"><div class='highlight'><pre> _.noConflict = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> root._ = previousUnderscore; <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>; };</pre></div></div> </li> <li id="section-129"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-129">&#182;</a> </div> <p>Keep the identity function around for default iterators.</p> </div> <div class="content"><div class='highlight'><pre> _.identity = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value)</span> {</span> <span class="hljs-keyword">return</span> value; }; _.constant = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(value)</span> {</span> <span class="hljs-keyword">return</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-params">()</span> {</span> <span class="hljs-keyword">return</span> value; }; }; _.property = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(key)</span> {</span> <span class="hljs-keyword">return</span> <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">return</span> obj[key]; }; };</pre></div></div> </li> <li id="section-130"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-130">&#182;</a> </div> <p>Returns a predicate for checking whether an object has a given set of <code>key:value</code> pairs.</p> </div> <div class="content"><div class='highlight'><pre> _.matches = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(attrs)</span> {</span> <span class="hljs-keyword">return</span> <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">if</span> (obj === attrs) <span class="hljs-keyword">return</span> <span class="hljs-literal">true</span>; <span class="hljs-comment">//avoid comparing an object to itself.</span> <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> key <span class="hljs-keyword">in</span> attrs) { <span class="hljs-keyword">if</span> (attrs[key] !== obj[key]) <span class="hljs-keyword">return</span> <span class="hljs-literal">false</span>; } <span class="hljs-keyword">return</span> <span class="hljs-literal">true</span>; } };</pre></div></div> </li> <li id="section-131"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-131">&#182;</a> </div> <p>Run a function <strong>n</strong> times.</p> </div> <div class="content"><div class='highlight'><pre> _.times = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(n, iterator, context)</span> {</span> <span class="hljs-keyword">var</span> accum = <span class="hljs-built_in">Array</span>(<span class="hljs-built_in">Math</span>.max(<span class="hljs-number">0</span>, n)); <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">0</span>; i &lt; n; i++) accum[i] = iterator.call(context, i); <span class="hljs-keyword">return</span> accum; };</pre></div></div> </li> <li id="section-132"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-132">&#182;</a> </div> <p>Return a random integer between min and max (inclusive).</p> </div> <div class="content"><div class='highlight'><pre> _.random = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(min, max)</span> {</span> <span class="hljs-keyword">if</span> (max == <span class="hljs-literal">null</span>) { max = min; min = <span class="hljs-number">0</span>; } <span class="hljs-keyword">return</span> min + <span class="hljs-built_in">Math</span>.floor(<span class="hljs-built_in">Math</span>.random() * (max - min + <span class="hljs-number">1</span>)); };</pre></div></div> </li> <li id="section-133"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-133">&#182;</a> </div> <p>A (possibly faster) way to get the current timestamp as an integer.</p> </div> <div class="content"><div class='highlight'><pre> _.now = <span class="hljs-built_in">Date</span>.now || <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">return</span> <span class="hljs-keyword">new</span> <span class="hljs-built_in">Date</span>().getTime(); };</pre></div></div> </li> <li id="section-134"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-134">&#182;</a> </div> <p>List of HTML entities for escaping.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> entityMap = { <span class="hljs-built_in">escape</span>: { <span class="hljs-string">'&amp;'</span>: <span class="hljs-string">'&amp;amp;'</span>, <span class="hljs-string">'&lt;'</span>: <span class="hljs-string">'&amp;lt;'</span>, <span class="hljs-string">'&gt;'</span>: <span class="hljs-string">'&amp;gt;'</span>, <span class="hljs-string">'"'</span>: <span class="hljs-string">'&amp;quot;'</span>, <span class="hljs-string">"'"</span>: <span class="hljs-string">'&amp;#x27;'</span> } }; entityMap.unescape = _.invert(entityMap.escape);</pre></div></div> </li> <li id="section-135"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-135">&#182;</a> </div> <p>Regexes containing the keys and values listed immediately above.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> entityRegexes = { <span class="hljs-built_in">escape</span>: <span class="hljs-keyword">new</span> <span class="hljs-built_in">RegExp</span>(<span class="hljs-string">'['</span> + _.keys(entityMap.escape).join(<span class="hljs-string">''</span>) + <span class="hljs-string">']'</span>, <span class="hljs-string">'g'</span>), <span class="hljs-built_in">unescape</span>: <span class="hljs-keyword">new</span> <span class="hljs-built_in">RegExp</span>(<span class="hljs-string">'('</span> + _.keys(entityMap.unescape).join(<span class="hljs-string">'|'</span>) + <span class="hljs-string">')'</span>, <span class="hljs-string">'g'</span>) };</pre></div></div> </li> <li id="section-136"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-136">&#182;</a> </div> <p>Functions for escaping and unescaping strings to/from HTML interpolation.</p> </div> <div class="content"><div class='highlight'><pre> _.each([<span class="hljs-string">'escape'</span>, <span class="hljs-string">'unescape'</span>], <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(method)</span> {</span> _[method] = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(string)</span> {</span> <span class="hljs-keyword">if</span> (string == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> <span class="hljs-string">''</span>; <span class="hljs-keyword">return</span> (<span class="hljs-string">''</span> + string).replace(entityRegexes[method], <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(match)</span> {</span> <span class="hljs-keyword">return</span> entityMap[method][match]; }); }; });</pre></div></div> </li> <li id="section-137"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-137">&#182;</a> </div> <p>If the value of the named <code>property</code> is a function then invoke it with the <code>object</code> as context; otherwise, return it.</p> </div> <div class="content"><div class='highlight'><pre> _.result = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(object, property)</span> {</span> <span class="hljs-keyword">if</span> (object == <span class="hljs-literal">null</span>) <span class="hljs-keyword">return</span> <span class="hljs-keyword">void</span> <span class="hljs-number">0</span>; <span class="hljs-keyword">var</span> value = object[property]; <span class="hljs-keyword">return</span> _.isFunction(value) ? value.call(object) : value; };</pre></div></div> </li> <li id="section-138"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-138">&#182;</a> </div> <p>Add your own custom functions to the Underscore object.</p> </div> <div class="content"><div class='highlight'><pre> _.mixin = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> each(_.functions(obj), <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(name)</span> {</span> <span class="hljs-keyword">var</span> func = _[name] = obj[name]; _.prototype[name] = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">var</span> args = [<span class="hljs-keyword">this</span>._wrapped]; push.apply(args, <span class="hljs-built_in">arguments</span>); <span class="hljs-keyword">return</span> result.call(<span class="hljs-keyword">this</span>, func.apply(_, args)); }; }); };</pre></div></div> </li> <li id="section-139"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-139">&#182;</a> </div> <p>Generate a unique integer id (unique within the entire client session). Useful for temporary DOM ids.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> idCounter = <span class="hljs-number">0</span>; _.uniqueId = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(prefix)</span> {</span> <span class="hljs-keyword">var</span> id = ++idCounter + <span class="hljs-string">''</span>; <span class="hljs-keyword">return</span> prefix ? prefix + id : id; };</pre></div></div> </li> <li id="section-140"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-140">&#182;</a> </div> <p>By default, Underscore uses ERB-style template delimiters, change the following template settings to use alternative delimiters.</p> </div> <div class="content"><div class='highlight'><pre> _.templateSettings = { evaluate : <span class="hljs-regexp">/&lt;%([\s\S]+?)%&gt;/g</span>, interpolate : <span class="hljs-regexp">/&lt;%=([\s\S]+?)%&gt;/g</span>, <span class="hljs-built_in">escape</span> : <span class="hljs-regexp">/&lt;%-([\s\S]+?)%&gt;/g</span> };</pre></div></div> </li> <li id="section-141"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-141">&#182;</a> </div> <p>When customizing <code>templateSettings</code>, if you don’t want to define an interpolation, evaluation or escaping regex, we need one that is guaranteed not to match.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> noMatch = <span class="hljs-regexp">/(.)^/</span>;</pre></div></div> </li> <li id="section-142"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-142">&#182;</a> </div> <p>Certain characters need to be escaped so that they can be put into a string literal.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> escapes = { <span class="hljs-string">"'"</span>: <span class="hljs-string">"'"</span>, <span class="hljs-string">'\\'</span>: <span class="hljs-string">'\\'</span>, <span class="hljs-string">'\r'</span>: <span class="hljs-string">'r'</span>, <span class="hljs-string">'\n'</span>: <span class="hljs-string">'n'</span>, <span class="hljs-string">'\t'</span>: <span class="hljs-string">'t'</span>, <span class="hljs-string">'\u2028'</span>: <span class="hljs-string">'u2028'</span>, <span class="hljs-string">'\u2029'</span>: <span class="hljs-string">'u2029'</span> }; <span class="hljs-keyword">var</span> escaper = <span class="hljs-regexp">/\\|'|\r|\n|\t|\u2028|\u2029/g</span>;</pre></div></div> </li> <li id="section-143"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-143">&#182;</a> </div> <p>JavaScript micro-templating, similar to John Resig’s implementation. Underscore templating handles arbitrary delimiters, preserves whitespace, and correctly escapes quotes within interpolated code.</p> </div> <div class="content"><div class='highlight'><pre> _.template = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(text, data, settings)</span> {</span> <span class="hljs-keyword">var</span> render; settings = _.defaults({}, settings, _.templateSettings);</pre></div></div> </li> <li id="section-144"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-144">&#182;</a> </div> <p>Combine delimiters into one regular expression via alternation.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> matcher = <span class="hljs-keyword">new</span> <span class="hljs-built_in">RegExp</span>([ (settings.escape || noMatch).source, (settings.interpolate || noMatch).source, (settings.evaluate || noMatch).source ].join(<span class="hljs-string">'|'</span>) + <span class="hljs-string">'|$'</span>, <span class="hljs-string">'g'</span>);</pre></div></div> </li> <li id="section-145"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-145">&#182;</a> </div> <p>Compile the template source, escaping string literals appropriately.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> index = <span class="hljs-number">0</span>; <span class="hljs-keyword">var</span> source = <span class="hljs-string">"__p+='"</span>; text.replace(matcher, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(match, escape, interpolate, evaluate, offset)</span> {</span> source += text.slice(index, offset) .replace(escaper, <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(match)</span> {</span> <span class="hljs-keyword">return</span> <span class="hljs-string">'\\'</span> + escapes[match]; }); <span class="hljs-keyword">if</span> (<span class="hljs-built_in">escape</span>) { source += <span class="hljs-string">"'+\n((__t=("</span> + <span class="hljs-built_in">escape</span> + <span class="hljs-string">"))==null?'':_.escape(__t))+\n'"</span>; } <span class="hljs-keyword">if</span> (interpolate) { source += <span class="hljs-string">"'+\n((__t=("</span> + interpolate + <span class="hljs-string">"))==null?'':__t)+\n'"</span>; } <span class="hljs-keyword">if</span> (evaluate) { source += <span class="hljs-string">"';\n"</span> + evaluate + <span class="hljs-string">"\n__p+='"</span>; } index = offset + match.length; <span class="hljs-keyword">return</span> match; }); source += <span class="hljs-string">"';\n"</span>;</pre></div></div> </li> <li id="section-146"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-146">&#182;</a> </div> <p>If a variable is not specified, place data values in local scope.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> (!settings.variable) source = <span class="hljs-string">'with(obj||{}){\n'</span> + source + <span class="hljs-string">'}\n'</span>; source = <span class="hljs-string">"var __t,__p='',__j=Array.prototype.join,"</span> + <span class="hljs-string">"print=function(){__p+=__j.call(arguments,'');};\n"</span> + source + <span class="hljs-string">"return __p;\n"</span>; <span class="hljs-keyword">try</span> { render = <span class="hljs-keyword">new</span> <span class="hljs-built_in">Function</span>(settings.variable || <span class="hljs-string">'obj'</span>, <span class="hljs-string">'_'</span>, source); } <span class="hljs-keyword">catch</span> (e) { e.source = source; <span class="hljs-keyword">throw</span> e; } <span class="hljs-keyword">if</span> (data) <span class="hljs-keyword">return</span> render(data, _); <span class="hljs-keyword">var</span> template = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(data)</span> {</span> <span class="hljs-keyword">return</span> render.call(<span class="hljs-keyword">this</span>, data, _); };</pre></div></div> </li> <li id="section-147"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-147">&#182;</a> </div> <p>Provide the compiled function source as a convenience for precompilation.</p> </div> <div class="content"><div class='highlight'><pre> template.source = <span class="hljs-string">'function('</span> + (settings.variable || <span class="hljs-string">'obj'</span>) + <span class="hljs-string">'){\n'</span> + source + <span class="hljs-string">'}'</span>; <span class="hljs-keyword">return</span> template; };</pre></div></div> </li> <li id="section-148"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-148">&#182;</a> </div> <p>Add a “chain” function, which will delegate to the wrapper.</p> </div> <div class="content"><div class='highlight'><pre> _.chain = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">return</span> _(obj).chain(); };</pre></div></div> </li> <li id="section-149"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-149">&#182;</a> </div> <h2 id="oop">OOP</h2> </div> </li> <li id="section-150"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-150">&#182;</a> </div> <p>If Underscore is called as a function, it returns a wrapped object that can be used OO-style. This wrapper holds altered versions of all the underscore functions. Wrapped objects may be chained.</p> </div> </li> <li id="section-151"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-151">&#182;</a> </div> <p>Helper function to continue chaining intermediate results.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> result = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(obj)</span> {</span> <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>._chain ? _(obj).chain() : obj; };</pre></div></div> </li> <li id="section-152"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-152">&#182;</a> </div> <p>Add all of the Underscore functions to the wrapper object.</p> </div> <div class="content"><div class='highlight'><pre> _.mixin(_);</pre></div></div> </li> <li id="section-153"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-153">&#182;</a> </div> <p>Add all mutator Array functions to the wrapper.</p> </div> <div class="content"><div class='highlight'><pre> each([<span class="hljs-string">'pop'</span>, <span class="hljs-string">'push'</span>, <span class="hljs-string">'reverse'</span>, <span class="hljs-string">'shift'</span>, <span class="hljs-string">'sort'</span>, <span class="hljs-string">'splice'</span>, <span class="hljs-string">'unshift'</span>], <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(name)</span> {</span> <span class="hljs-keyword">var</span> method = ArrayProto[name]; _.prototype[name] = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">var</span> obj = <span class="hljs-keyword">this</span>._wrapped; method.apply(obj, <span class="hljs-built_in">arguments</span>); <span class="hljs-keyword">if</span> ((name == <span class="hljs-string">'shift'</span> || name == <span class="hljs-string">'splice'</span>) &amp;&amp; obj.length === <span class="hljs-number">0</span>) <span class="hljs-keyword">delete</span> obj[<span class="hljs-number">0</span>]; <span class="hljs-keyword">return</span> result.call(<span class="hljs-keyword">this</span>, obj); }; });</pre></div></div> </li> <li id="section-154"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-154">&#182;</a> </div> <p>Add all accessor Array functions to the wrapper.</p> </div> <div class="content"><div class='highlight'><pre> each([<span class="hljs-string">'concat'</span>, <span class="hljs-string">'join'</span>, <span class="hljs-string">'slice'</span>], <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(name)</span> {</span> <span class="hljs-keyword">var</span> method = ArrayProto[name]; _.prototype[name] = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">return</span> result.call(<span class="hljs-keyword">this</span>, method.apply(<span class="hljs-keyword">this</span>._wrapped, <span class="hljs-built_in">arguments</span>)); }; }); _.extend(_.prototype, {</pre></div></div> </li> <li id="section-155"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-155">&#182;</a> </div> <p>Start chaining a wrapped Underscore object.</p> </div> <div class="content"><div class='highlight'><pre> chain: <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">this</span>._chain = <span class="hljs-literal">true</span>; <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>; },</pre></div></div> </li> <li id="section-156"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-156">&#182;</a> </div> <p>Extracts the result from a wrapped and chained object.</p> </div> <div class="content"><div class='highlight'><pre> value: <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>._wrapped; } });</pre></div></div> </li> <li id="section-157"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-157">&#182;</a> </div> <p>AMD registration happens at the end for compatibility with AMD loaders that may not enforce next-turn semantics on modules. Even though general practice for AMD registration is to be anonymous, underscore registers as a named module because, like jQuery, it is a base library that is popular enough to be bundled in a third party lib, but not be part of an AMD load request. Those cases could generate an error when an anonymous define() is called outside of a loader request.</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> (<span class="hljs-keyword">typeof</span> define === <span class="hljs-string">'function'</span> &amp;&amp; define.amd) { define(<span class="hljs-string">'underscore'</span>, [], <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span> {</span> <span class="hljs-keyword">return</span> _; }); } }).call(<span class="hljs-keyword">this</span>);</pre></div></div> </li> </ul> </div> </body> </html>
r24mille/WeatherHistory
src/main/webapp/resources/js/vendor/underscore-1.6.0/docs/underscore.html
HTML
apache-2.0
153,568
{{#feature request "infocard"}} <div hidden> <div class="card" id="infocard"> <div class="body"> {{#feature request "metadata"}} <form class="settings"> <label for="title">Title</label> <input type="text" id="title" value="{{{bin.settings.title}}}"> <label for="description">Description</label> <textarea rows="2" id="description">{{{bin.settings.description}}}</textarea> <details> <summary>Headers</summary> <label for="status">Status code</label> <select id="status" data-status="{{{bin.settings.statusCode}}}"> <option value=200>200 OK</option> </select> <div id="headers"> <label for="header-property">Custom headers</label> {{#eachkey bin.settings.headers}} <span class="row"><input type="text" placeholder="field" name="header-property" value="{{{this.key}}}">: <input type="text" placeholder="value" name="header-value" value="{{{this.value}}}"></span> {{/eachkey}} <span class="row"><input type="text" placeholder="field" name="header-property">: <input type="text" placeholder="value" name="header-value"></span> <button>+</button> </div> </details> </form> {{/feature}} <ul class="controls"> <li><a class="transfer" href="#transfer">Transfer</a> </li> <li><a href="/clone">Clone</a> </li> <li><a class="startingpoint" href="/save-as-template">Save as template</a> </li> <li><a class="export-as-gist" href="#export-gist">Export gist</a> </li> <li class="owner"><a href="/download">Download</a> </li> {{#feature request "delete"}} <li class="owner"><a class="deletebin" href="/delete">Delete</a></li> {{/feature}} </ul> </div> <header><img> <div class="visibility"></div> <div class="meta"> <div class="author">Bin info</div> <div class="name"><b></b><span class="pro">pro</span></div><span class="when"><canvas></canvas><time></time></span> </div> <div class="viewers"><b>0</b><span>viewers</span></div> </header> </div> </div> {{/feature}}
mingzeke/jsbin
views/partials/infocard.html
HTML
mit
2,226
<!doctype html> <html lang="en" data-framework="puremvc"> <head> <meta charset="utf-8"> <title>PureMVC • TodoMVC</title> <link rel="stylesheet" href="bower_components/todomvc-common/base.css"> </head> <body> <section id="todoapp"> <header id="header"> <h1>todos</h1> <input id="new-todo" placeholder="What needs to be done?" autofocus> </header> <section id="main"> <input id="toggle-all" type="checkbox"> <label for="toggle-all">Mark all as complete</label> <ul id="todo-list"> </ul> </section> <footer id="footer"> <span id="todo-count"><strong>1</strong> item left</span> <ul id="filters"> <li> <a id="filterAll" class="selected" href="#/">All</a> </li> <li> <a id="filterActive" href="#/active">Active</a> </li> <li> <a id="filterCompleted" href="#/completed">Completed</a> </li> </ul> <button id="clear-completed">Clear completed (1)</button> </footer> </section> <footer id="info"> <p>Double-click to edit a todo</p> <p>Created by <a href="http://puremvc.org">Mike Britton and Cliff Hall for the PureMVC Project</a></p> <p>Part of <a href="http://todomvc.com">TodoMVC</a></p> </footer> <!-- TODOMVC PROJECT BASE --> <script src="bower_components/todomvc-common/base.js"></script> <!-- FLATIRION DIRECTOR ROUTING LIBRARY --> <script src="bower_components/director/director.js"></script> <!-- PUREMVC LIBRARY --> <script src="bower_components/puremvc/puremvc-1.0.1.js"></script> <!-- APPLICATION CONSTANTS --> <script src="js/AppConstants.js"></script> <!-- PROXIES --> <script src="js/model/proxy/TodoProxy.js"></script> <!-- EVENTS --> <script src="js/view/event/AppEvents.js"></script> <!-- VIEW COMPONENTS --> <script src="js/view/component/TodoForm.js"></script> <!-- MEDIATORS --> <script src="js/view/mediator/RoutesMediator.js"></script> <script src="js/view/mediator/TodoFormMediator.js"></script> <!-- COMMANDS --> <script src="js/controller/command/StartupCommand.js"></script> <script src="js/controller/command/PrepControllerCommand.js"></script> <script src="js/controller/command/PrepModelCommand.js"></script> <script src="js/controller/command/PrepViewCommand.js"></script> <script src="js/controller/command/TodoCommand.js"></script> <!-- APPLICATION --> <script src="js/app.js"></script> <!-- START THE APPLICATION --> <script> document.addEventListener('DOMContentLoaded', function() { var app = new todomvc.Application(); }); </script> </body> </html>
ericelliott/todomvc
labs/architecture-examples/puremvc/index.html
HTML
mit
2,586
@(users: List[model.Account], members: Map[String, List[String]], includeRemoved: Boolean)(implicit context: app.Context) @import context._ @import view.helpers._ @html.main("Manage Users"){ @admin.html.menu("users"){ <div class="pull-right" style="margin-bottom: 4px;"> <a href="@path/admin/users/_newuser" class="btn">New User</a> <a href="@path/admin/users/_newgroup" class="btn">New Group</a> </div> <label for="includeRemoved"> <input type="checkbox" id="includeRemoved" name="includeRemoved" @if(includeRemoved){checked}/> Include removed users </label> <table class="table table-bordered table-hover"> @users.map { account => <tr> <td @if(account.isRemoved){style="background-color: #dddddd;"}> <div class="pull-right"> @if(account.isGroupAccount){ <a href="@path/admin/users/@account.userName/_editgroup">Edit</a> } else { <a href="@path/admin/users/@account.userName/_edituser">Edit</a> } </div> <div class="strong"> @avatar(account.userName, 20) <a href="@url(account.userName)">@account.userName</a> @if(account.isGroupAccount){ (Group) } else { @if(account.isAdmin){ (Administrator) } else { (Normal) } } @if(account.isGroupAccount){ @members(account.userName).map { userName => @avatar(userName, 20, tooltip = true) } } </div> <div> <hr> @if(!account.isGroupAccount){ <i class="icon-envelope"></i> @account.mailAddress } @account.url.map { url => <i class="icon-home"></i> @url } </div> <div> <span class="muted">Registered:</span> @datetime(account.registeredDate) <span class="muted">Updated:</span> @datetime(account.updatedDate) @if(!account.isGroupAccount){ <span class="muted">Last Login:</span> @account.lastLoginDate.map(datetime) } </div> </td> </tr> } </table> } } <script> $(function(){ $('#includeRemoved').click(function(){ location.href = '@path/admin/users?includeRemoved=' + this.checked; }); }); </script>
loveshell/gitbucket
src/main/twirl/admin/users/list.scala.html
HTML
apache-2.0
2,605
<!doctype html> <title>The content CSS property doesn't override display: contents</title> <link rel="author" href="mailto:[email protected]" title="Emilio Cobos Álvarez"> <link rel="match" href="../reference/blank.html"> <link rel="help" href="https://drafts.csswg.org/css-content-3/#content-property"> <style> div { display: contents; content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAKElEQVR42u3NQQ0AAAgEoNP+nTWFDzcoQE1udQQCgUAgEAgEAsGTYAGjxAE/G/Q2tQAAAABJRU5ErkJggg==); } </style> <div></div>
scheib/chromium
third_party/blink/web_tests/external/wpt/css/css-content/element-replacement-display-contents.html
HTML
bsd-3-clause
542
<script> if (window.testRunner) testRunner.dumpEditingCallbacks(); </script> <p>This test makes sure that content inside a list in an incoming fragment isn't pulled out of the list during paste.</p> <p><b>You should see 'bar' inside a list item.</b></p> <div id="test" contenteditable="true"></div> <script> var s = window.getSelection(); var e = document.getElementById("test"); s.collapse(e, 0); document.execCommand("InsertHTML", false , "<ul><li>bar</li></ul>"); </script>
axinging/chromium-crosswalk
third_party/WebKit/LayoutTests/editing/pasteboard/merge-start-list.html
HTML
bsd-3-clause
486
<html> <body> <span style="font-family: verdana,serif;"> This inspection is used when a variable is defined through the "global" statement but the variable is not defined in the module scope. </span> </body> </html>
ivan-fedorov/intellij-community
python/resources/inspectionDescriptions/PyGlobalUndefinedInspection.html
HTML
apache-2.0
217
<!DOCTYPE html> <html> <head> <title>CSS Test (Transforms): Transformed tbody contains fixed position elements reference.</title> <link rel="author" title="Vladimir Levin" href="mailto:[email protected]"> <style> body { overflow: hidden; } .pad { height: 50px; } .container { transform: translateX(20px) rotate(45deg); transform-origin: left; } .fixed { position: fixed; top: 15px; left: 10px; background-color: lightblue; } </style> </head> <body> <div class='pad'></div> <div class='container'>some text<div class='fixed'>fixed</div> </div> </body> </html>
chromium/chromium
third_party/blink/web_tests/external/wpt/css/css-transforms/transform-transformed-tbody-contains-fixed-position-ref.html
HTML
bsd-3-clause
709
<html> <div id="foo" style="border-image: url(images/shadow-border.png) stretch 10;">This test should not crash</div> <script> console.log(document.getElementById("foo").style.cssText); if (window.testRunner) testRunner.dumpAsText(); </script> </html>
scheib/chromium
third_party/blink/web_tests/fast/css/parse-border-image-repeat-null-crash.html
HTML
bsd-3-clause
280
<!DOCTYPE html> <html> <head> <title>Bluetooth LE Device Information Service Demo</title> <link rel="stylesheet" type="text/css" href="style.css"> <script src="ui.js"></script> <script src="main.js"></script> </head> <body> <div id="header"> <img src="bluetooth.png" alt="bluetooth icon"> <h1>BLE Device Information Service</h1> <div id="adapter-status"> <ul> <li><span id="adapter-name"></span></li> <li><span id="adapter-address"></span></li> </ul> </div> <hr> <div id="device-selection-div"> Select device with Device Information Service: <select id="device-selector"> <option id="placeholder" value="" disabled selected> No connected devices </option> </select> <button type="button" id="discovery-toggle-button"> start discovery </button> </div> </div> <div id="no-devices-error"> No device with "Device Information Service" selected. </div> <div id="info-div"> <div class="device-info-field"> Manufacturer Name: <span id="manufacturer-name-string">-</span> </div> <div class="device-info-field"> Serial Number: <span id="serial-number-string">-</span> </div> <div class="device-info-field"> Hardware Revision: <span id="hardware-revision-string">-</span> </div> <div class="device-info-field"> Firmware Revision: <span id="firmware-revision-string">-</span> </div> <div class="device-info-field"> Software Revision: <span id="software-revision-string">-</span> </div> <div class="device-info-field"> Vendor ID Source: <span id="vendor-id-source">-</span> </div> <div class="device-info-field"> Vendor ID: <span id="vendor-id">-</span> </div> <div class="device-info-field"> Product ID: <span id="product-id">-</span> </div> <div class="device-info-field"> Product Version: <span id="product-version">-</span> </div> </div> </body> </html>
Jabqooo/chrome-app-samples
samples/bluetooth-samples/device-info-demo/main.html
HTML
apache-2.0
2,015
<html> <body> Reports any calls to JUnit's <b>assertEquals()</b> method where the expected result and actual result arguments are of incompatible types. While such a call might theoretically be useful, most likely it represents a bug. <!-- tooltip end --> <p> </body> </html>
Yihy/resources_cn
src/main/resources/inspectionDescriptions/AssertEqualsBetweenInconvertibleTypes.html
HTML
apache-2.0
276
<!-- -*- markdown-extras: code-friendly -*- --> <p>This sentence talks about the Python __init__ method, which I'd rather not be interpreted as Markdown's strong.</p>
fujia666/KingOfMeeting
vendor/markdown/test/fixtures/docs-pythonmarkdown2-tm-cases-pass/emacs_head_vars.html
HTML
mit
168
<!-- ~ Copyright 2000-2007 JetBrains s.r.o. ~ ~ Licensed 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. --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html><body bgcolor="white"> Provides interfaces for working with keymaps. </body></html>
Lekanich/intellij-community
platform/platform-api/src/com/intellij/openapi/keymap/package.html
HTML
apache-2.0
765
<!-- Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ --> <!DOCTYPE html> <html> <head> <!-- The original and initial filename of this test was tall- -32px-auto- -percent-width-nonpercent-height.html --> <title>CSS Backgrounds and Borders Test: background-size: 16px auto; for percent-width-nonpercent-height.svg</title> <link rel="author" title="Jeff Walden" href="http://whereswalden.com/"> <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-size"> <link rel="help" href="http://www.w3.org/TR/SVG/coords.html#IntrinsicSizing"> <link rel="help" href="http://www.w3.org/TR/SVG/coords.html#PreserveAspectRatioAttribute"> <link rel="match" href="reference/background-size-vector-008-ref.html"> <meta name="flags" content="svg"> <style type="text/css"> div { background-image: url("support/percent-width-nonpercent-height.svg"); background-repeat: no-repeat; background-size: 16px auto; border: black solid 8px; height: 384px; width: 128px; } </style> </head> <body> <div></div> </body> </html>
nwjs/chromium.src
third_party/blink/web_tests/external/wpt/css/css-backgrounds/background-size/vector/background-size-vector-014.html
HTML
bsd-3-clause
1,139
<!DOCTYPE html> <html lang="en"> <head> <title>Bootswatch: Cyborg</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta charset="utf-8"> <link rel="stylesheet" href="./bootstrap.css" media="screen"> <link rel="stylesheet" href="../bower_components/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" href="../assets/css/bootswatch.min.css"> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="../bower_components/bootstrap/assets/js/html5shiv.js"></script> <script src="../bower_components/bootstrap/assets/js/respond.min.js"></script> <![endif]--> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-23019901-1']); _gaq.push(['_setDomainName', "bootswatch.com"]); _gaq.push(['_setAllowLinker', true]); _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> <script src="../assets/js/bsa.js"></script> <div class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <a href="../" class="navbar-brand">Bootswatch</a> <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-main"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div class="navbar-collapse collapse" id="navbar-main"> <ul class="nav navbar-nav"> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#" id="themes">Themes <span class="caret"></span></a> <ul class="dropdown-menu" aria-labelledby="themes"> <li><a tabindex="-1" href="../default/">Default</a></li> <li class="divider"></li> <li><a tabindex="-1" href="../amelia/">Amelia</a></li> <li><a tabindex="-1" href="../cerulean/">Cerulean</a></li> <li><a tabindex="-1" href="../cosmo/">Cosmo</a></li> <li><a tabindex="-1" href="../cyborg/">Cyborg</a></li> <li><a tabindex="-1" href="../flatly/">Flatly</a></li> <li><a tabindex="-1" href="../journal/">Journal</a></li> <li><a tabindex="-1" href="../readable/">Readable</a></li> <li><a tabindex="-1" href="../simplex/">Simplex</a></li> <li><a tabindex="-1" href="../slate/">Slate</a></li> <li><a tabindex="-1" href="../spacelab/">Spacelab</a></li> <li><a tabindex="-1" href="../united/">United</a></li> </ul> </li> <li> <a href="../help/">Help</a> </li> <li> <a href="http://news.bootswatch.com">Blog</a> </li> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#" id="download">Download <span class="caret"></span></a> <ul class="dropdown-menu" aria-labelledby="download"> <li><a tabindex="-1" href="./bootstrap.min.css">bootstrap.min.css</a></li> <li><a tabindex="-1" href="./bootstrap.css">bootstrap.css</a></li> <li class="divider"></li> <li><a tabindex="-1" href="./variables.less">variables.less</a></li> <li><a tabindex="-1" href="./bootswatch.less">bootswatch.less</a></li> </ul> </li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href="http://builtwithbootstrap.com/" target="_blank">Built With Bootstrap</a></li> <li><a href="https://wrapbootstrap.com/?ref=bsw" target="_blank">WrapBootstrap</a></li> </ul> </div> </div> </div> <div class="container"> <div class="page-header" id="banner"> <div class="row"> <div class="col-lg-6"> <h1>Cyborg</h1> <p class="lead">Jet black and electric blue</p> </div> <div class="col-lg-6"> <div class="bsa well"> <div id="bsap_1277971" class="bsarocks bsap_c466df00a3cd5ee8568b5c4983b6bb19"></div> </div> </div> </div> </div> <!-- Navbar ================================================== --> <div class="bs-docs-section clearfix"> <div class="row"> <div class="col-lg-12"> <div class="page-header"> <h1 id="navbar">Navbar</h1> </div> <div class="bs-example"> <div class="navbar navbar-default"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">Brand</a> </div> <div class="navbar-collapse collapse navbar-responsive-collapse"> <ul class="nav navbar-nav"> <li class="active"><a href="#">Active</a></li> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li class="dropdown-header">Dropdown header</li> <li><a href="#">Separated link</a></li> <li><a href="#">One more separated link</a></li> </ul> </li> </ul> <form class="navbar-form navbar-left"> <input type="text" class="form-control col-lg-8" placeholder="Search"> </form> <ul class="nav navbar-nav navbar-right"> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </li> </ul> </div><!-- /.nav-collapse --> </div><!-- /.container --> </div><!-- /.navbar --> <div class="navbar navbar-inverse"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-inverse-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">Brand</a> </div> <div class="navbar-collapse collapse navbar-inverse-collapse"> <ul class="nav navbar-nav"> <li class="active"><a href="#">Active</a></li> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li class="dropdown-header">Dropdown header</li> <li><a href="#">Separated link</a></li> <li><a href="#">One more separated link</a></li> </ul> </li> </ul> <form class="navbar-form navbar-left"> <input type="text" class="form-control col-lg-8" placeholder="Search"> </form> <ul class="nav navbar-nav navbar-right"> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </li> </ul> </div><!-- /.nav-collapse --> </div><!-- /.container --> </div><!-- /.navbar --> </div><!-- /example --> </div> </div> </div> <!-- Buttons ================================================== --> <div class="bs-docs-section"> <div class="page-header"> <div class="row"> <div class="col-lg-12"> <h1 id="buttons">Buttons</h1> </div> </div> </div> <div class="row"> <div class="col-lg-6"> <div class="bs-example"> <p> <button type="button" class="btn btn-default">Default</button> <button type="button" class="btn btn-primary">Primary</button> <button type="button" class="btn btn-success">Success</button> <button type="button" class="btn btn-info">Info</button> <button type="button" class="btn btn-warning">Warning</button> <button type="button" class="btn btn-danger">Danger</button> <button type="button" class="btn btn-link">Link</button> </p> </div> <div class="bs-example"> <p> <button type="button" class="btn btn-default disabled">Default</button> <button type="button" class="btn btn-primary disabled">Primary</button> <button type="button" class="btn btn-success disabled">Success</button> <button type="button" class="btn btn-info disabled">Info</button> <button type="button" class="btn btn-warning disabled">Warning</button> <button type="button" class="btn btn-danger disabled">Danger</button> <button type="button" class="btn btn-link disabled">Link</button> </p> </div> <div class="bs-example" style="margin-bottom: 15px;"> <div class="btn-toolbar" style="margin: 0;"> <div class="btn-group"> <button type="button" class="btn btn-default">Default</button> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> <div class="btn-group"> <button type="button" class="btn btn-primary">Primary</button> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> <div class="btn-group"> <button type="button" class="btn btn-success">Success</button> <button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> <div class="btn-group"> <button type="button" class="btn btn-info">Info</button> <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> <div class="btn-group"> <button type="button" class="btn btn-warning">Warning</button> <button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> </div><!-- /btn-toolbar --> </div> <div class="bs-example"> <p> <button type="button" class="btn btn-primary btn-lg">Large button</button> <button type="button" class="btn btn-primary">Default button</button> <button type="button" class="btn btn-primary btn-sm">Small button</button> <button type="button" class="btn btn-primary btn-xs">Mini button</button> </p> </div> </div> <div class="col-lg-6"> <div class="bs-example"> <p> <button type="button" class="btn btn-default btn-lg btn-block">Block level button</button> </p> </div> <div class="bs-example" style="margin-bottom: 15px;"> <div class="btn-group btn-group-justified"> <a href="#" class="btn btn-default">Left</a> <a href="#" class="btn btn-default">Right</a> <a href="#" class="btn btn-default">Middle</a> </div> </div> <div class="bs-example" style="margin-bottom: 15px;"> <div class="btn-toolbar"> <div class="btn-group"> <button type="button" class="btn btn-default">1</button> <button type="button" class="btn btn-default">2</button> <button type="button" class="btn btn-default">3</button> <button type="button" class="btn btn-default">4</button> </div> <div class="btn-group"> <button type="button" class="btn btn-default">5</button> <button type="button" class="btn btn-default">6</button> <button type="button" class="btn btn-default">7</button> </div> <div class="btn-group"> <button type="button" class="btn btn-default">8</button> <div class="btn-group"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> Dropdown <span class="caret"></span> </button> <ul class="dropdown-menu"> <li><a href="#">Dropdown link</a></li> <li><a href="#">Dropdown link</a></li> <li><a href="#">Dropdown link</a></li> </ul> </div> </div> </div> </div> <div class="bs-example"> <div class="btn-group-vertical"> <button type="button" class="btn btn-default">Button</button> <button type="button" class="btn btn-default">Button</button> <button type="button" class="btn btn-default">Button</button> <button type="button" class="btn btn-default">Button</button> </div> </div> </div> </div> </div> <!-- Typography ================================================== --> <div class="bs-docs-section"> <div class="row"> <div class="col-lg-12"> <div class="page-header"> <h1 id="type">Typography</h1> </div> </div> </div> <!-- Headings --> <div class="row"> <div class="col-lg-4"> <div class="bs-example bs-example-type"> <h1>Heading 1</h1> <h2>Heading 2</h2> <h3>Heading 3</h3> <h4>Heading 4</h4> <h5>Heading 5</h5> <h6>Heading 6</h6> </div> <div class="bs-example"> <p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p> </div> </div> <div class="col-lg-4"> <div class="bs-example"> <h2>Example body text</h2> <p>Nullam quis risus eget <a href="#">urna mollis ornare</a> vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.</p> <p><small>This line of text is meant to be treated as fine print.</small></p> <p>The following snippet of text is <strong>rendered as bold text</strong>.</p> <p>The following snippet of text is <em>rendered as italicized text</em>.</p> <p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p> </div> </div> <div class="col-lg-4"> <h2>Emphasis classes</h2> <div class="bs-example"> <p class="text-muted">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p> <p class="text-primary">Nullam id dolor id nibh ultricies vehicula ut id elit.</p> <p class="text-warning">Etiam porta sem malesuada magna mollis euismod.</p> <p class="text-danger">Donec ullamcorper nulla non metus auctor fringilla.</p> <p class="text-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p> <p class="text-info">Maecenas sed diam eget risus varius blandit sit amet non magna.</p> </div> </div> </div> <!-- Blockquotes --> <div class="row"> <div class="col-lg-12"> <h2 id="type-blockquotes">Blockquotes</h2> </div> </div> <div class="row"> <div class="col-lg-6"> <blockquote> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> <small>Someone famous in <cite title="Source Title">Source Title</cite></small> </blockquote> </div> <div class="col-lg-6"> <blockquote class="pull-right"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> <small>Someone famous in <cite title="Source Title">Source Title</cite></small> </blockquote> </div> </div> </div> <!-- Tables ================================================== --> <div class="bs-docs-section"> <div class="row"> <div class="col-lg-12"> <div class="page-header"> <h1 id="tables">Tables</h1> </div> <div class="bs-example"> <table class="table table-striped table-bordered table-hover"> <thead> <tr> <th>#</th> <th>Column heading</th> <th>Column heading</th> <th>Column heading</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>Column content</td> <td>Column content</td> <td>Column content</td> </tr> <tr> <td>2</td> <td>Column content</td> <td>Column content</td> <td>Column content</td> </tr> <tr> <td>3</td> <td>Column content</td> <td>Column content</td> <td>Column content</td> </tr> <tr class="success"> <td>4</td> <td>Column content</td> <td>Column content</td> <td>Column content</td> </tr> <tr class="danger"> <td>5</td> <td>Column content</td> <td>Column content</td> <td>Column content</td> </tr> <tr class="warning"> <td>6</td> <td>Column content</td> <td>Column content</td> <td>Column content</td> </tr> <tr class="active"> <td>7</td> <td>Column content</td> <td>Column content</td> <td>Column content</td> </tr> </tbody> </table> </div><!-- /example --> </div> </div> </div> <!-- Forms ================================================== --> <div class="bs-docs-section"> <div class="row"> <div class="col-lg-12"> <div class="page-header"> <h1 id="forms">Forms</h1> </div> </div> </div> <div class="row"> <div class="col-lg-6"> <div class="well"> <form class="bs-example form-horizontal"> <fieldset> <legend>Legend</legend> <div class="form-group"> <label for="inputEmail" class="col-lg-2 control-label">Email</label> <div class="col-lg-10"> <input type="text" class="form-control" id="inputEmail" placeholder="Email"> </div> </div> <div class="form-group"> <label for="inputPassword" class="col-lg-2 control-label">Password</label> <div class="col-lg-10"> <input type="password" class="form-control" id="inputPassword" placeholder="Password"> <div class="checkbox"> <label> <input type="checkbox"> Checkbox </label> </div> </div> </div> <div class="form-group"> <label for="textArea" class="col-lg-2 control-label">Textarea</label> <div class="col-lg-10"> <textarea class="form-control" rows="3" id="textArea"></textarea> <span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span> </div> </div> <div class="form-group"> <label class="col-lg-2 control-label">Radios</label> <div class="col-lg-10"> <div class="radio"> <label> <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked=""> Option one is this </label> </div> <div class="radio"> <label> <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2"> Option two can be something else </label> </div> </div> </div> <div class="form-group"> <label for="select" class="col-lg-2 control-label">Selects</label> <div class="col-lg-10"> <select class="form-control" id="select"> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> </select> <br> <select multiple="" class="form-control"> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> </select> </div> </div> <div class="form-group"> <div class="col-lg-10 col-lg-offset-2"> <button class="btn btn-default">Cancel</button> <button type="submit" class="btn btn-primary">Submit</button> </div> </div> </fieldset> </form> </div> </div> <div class="col-lg-4 col-lg-offset-1"> <form class="bs-example"> <div class="form-group"> <label class="control-label" for="focusedInput">Focused input</label> <input class="form-control" id="focusedInput" type="text" value="This is focused..."> </div> <div class="form-group"> <label class="control-label" for="disabledInput">Disabled input</label> <input class="form-control" id="disabledInput" type="text" placeholder="Disabled input here..." disabled=""> </div> <div class="form-group has-warning"> <label class="control-label" for="inputWarning">Input warning</label> <input type="text" class="form-control" id="inputWarning"> </div> <div class="form-group has-error"> <label class="control-label" for="inputError">Input error</label> <input type="text" class="form-control" id="inputError"> </div> <div class="form-group has-success"> <label class="control-label" for="inputSuccess">Input success</label> <input type="text" class="form-control" id="inputSuccess"> </div> <div class="form-group"> <label class="control-label" for="inputLarge">Large input</label> <input class="form-control input-lg" type="text" id="inputLarge"> </div> <div class="form-group"> <label class="control-label" for="inputDefault">Default input</label> <input type="text" class="form-control" id="inputDefault"> </div> <div class="form-group"> <label class="control-label" for="inputSmall">Small input</label> <input class="form-control input-sm" type="text" id="inputSmall"> </div> <div class="form-group"> <label class="control-label">Input addons</label> <div class="input-group"> <span class="input-group-addon">$</span> <input type="text" class="form-control"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Button</button> </span> </div> </div> </form> </div> </div> </div> <!-- Navs ================================================== --> <div class="bs-docs-section"> <div class="row"> <div class="col-lg-12"> <div class="page-header"> <h1 id="nav">Navs</h1> </div> </div> </div> <div class="row"> <div class="col-lg-4"> <h2 id="nav-tabs">Tabs</h2> <div class="bs-example"> <ul class="nav nav-tabs" style="margin-bottom: 15px;"> <li class="active"><a href="#home" data-toggle="tab">Home</a></li> <li><a href="#profile" data-toggle="tab">Profile</a></li> <li class="disabled"><a>Disabled</a></li> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#"> Dropdown <span class="caret"></span> </a> <ul class="dropdown-menu"> <li><a href="#dropdown1" data-toggle="tab">Action</a></li> <li class="divider"></li> <li><a href="#dropdown2" data-toggle="tab">Another action</a></li> </ul> </li> </ul> <div id="myTabContent" class="tab-content"> <div class="tab-pane fade active in" id="home"> <p>Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</p> </div> <div class="tab-pane fade" id="profile"> <p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit.</p> </div> <div class="tab-pane fade" id="dropdown1"> <p>Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork.</p> </div> <div class="tab-pane fade" id="dropdown2"> <p>Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater.</p> </div> </div> </div> </div> <div class="col-lg-4"> <h2 id="nav-pills">Pills</h2> <div class="bs-example"> <ul class="nav nav-pills"> <li class="active"><a href="#">Home</a></li> <li><a href="#">Profile</a></li> <li class="disabled"><a href="#">Disabled</a></li> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#"> Dropdown <span class="caret"></span> </a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </li> </ul> </div> <br> <div class="bs-example"> <ul class="nav nav-pills nav-stacked" style="max-width: 300px;"> <li class="active"><a href="#">Home</a></li> <li><a href="#">Profile</a></li> <li class="disabled"><a href="#">Disabled</a></li> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#"> Dropdown <span class="caret"></span> </a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </li> </ul> </div> </div> <div class="col-lg-4"> <h2 id="nav-breadcrumbs">Breadcrumbs</h2> <div class="bs-example"> <ul class="breadcrumb"> <li class="active">Home</li> </ul> <ul class="breadcrumb"> <li><a href="#">Home</a></li> <li class="active">Library</li> </ul> <ul class="breadcrumb" style="margin-bottom: 5px;"> <li><a href="#">Home</a></li> <li><a href="#">Library</a></li> <li class="active">Data</li> </ul> </div> </div> </div> <div class="row"> <div class="col-lg-4"> <h2 id="pagination">Pagination</h2> <div class="bs-example"> <ul class="pagination"> <li class="disabled"><a href="#">&laquo;</a></li> <li class="active"><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li><a href="#">&raquo;</a></li> </ul> <ul class="pagination pagination-lg"> <li class="disabled"><a href="#">&laquo;</a></li> <li class="active"><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">&raquo;</a></li> </ul> <ul class="pagination pagination-sm"> <li class="disabled"><a href="#">&laquo;</a></li> <li class="active"><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li><a href="#">&raquo;</a></li> </ul> </div> </div> <div class="col-lg-4"> <h2 id="pager">Pager</h2> <div class="bs-example"> <ul class="pager"> <li><a href="#">Previous</a></li> <li><a href="#">Next</a></li> </ul> </div> <div class="bs-example"> <ul class="pager"> <li class="previous disabled"><a href="#">&larr; Older</a></li> <li class="next"><a href="#">Newer &rarr;</a></li> </ul> </div> </div> <div class="col-lg-4"> </div> </div> </div> <!-- Indicators ================================================== --> <div class="bs-docs-section"> <div class="row"> <div class="col-lg-12"> <div class="page-header"> <h1 id="indicators">Indicators</h1> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <h2>Alerts</h2> <div class="bs-example"> <div class="alert alert-dismissable alert-warning"> <button type="button" class="close" data-dismiss="alert">&times;</button> <h4>Warning!</h4> <p>Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, <a href="#" class="alert-link">vel scelerisque nisl consectetur et</a>.</p> </div> </div> </div> </div> <div class="row"> <div class="col-lg-4"> <div class="alert alert-dismissable alert-danger"> <button type="button" class="close" data-dismiss="alert">&times;</button> <strong>Oh snap!</strong> <a href="#" class="alert-link">Change a few things up</a> and try submitting again. </div> </div> <div class="col-lg-4"> <div class="alert alert-dismissable alert-success"> <button type="button" class="close" data-dismiss="alert">&times;</button> <strong>Well done!</strong> You successfully read <a href="#" class="alert-link">this important alert message</a>. </div> </div> <div class="col-lg-4"> <div class="alert alert-dismissable alert-info"> <button type="button" class="close" data-dismiss="alert">&times;</button> <strong>Heads up!</strong> This <a href="#" class="alert-link">alert needs your attention</a>, but it's not super important. </div> </div> </div> <div class="row"> <div class="col-lg-4"> <h2>Labels</h2> <div class="bs-example" style="margin-bottom: 40px;"> <span class="label label-default">Default</span> <span class="label label-primary">Primary</span> <span class="label label-success">Success</span> <span class="label label-warning">Warning</span> <span class="label label-danger">Danger</span> <span class="label label-info">Info</span> </div> </div> <div class="col-lg-4"> <h2>Badges</h2> <div class="bs-example"> <ul class="nav nav-pills"> <li class="active"><a href="#">Home <span class="badge">42</span></a></li> <li><a href="#">Profile <span class="badge"></span></a></li> <li><a href="#">Messages <span class="badge">3</span></a></li> </ul> </div> </div> </div> </div> <!-- Progress bars ================================================== --> <div class="bs-docs-section"> <div class="row"> <div class="col-lg-12"> <div class="page-header"> <h1 id="progress">Progress bars</h1> </div> <h3 id="progress-basic">Basic</h3> <div class="bs-example"> <div class="progress"> <div class="progress-bar" style="width: 60%;"></div> </div> </div> <h3 id="progress-alternatives">Contextual alternatives</h3> <div class="bs-example"> <div class="progress" style="margin-bottom: 9px;"> <div class="progress-bar progress-bar-info" style="width: 20%"></div> </div> <div class="progress" style="margin-bottom: 9px;"> <div class="progress-bar progress-bar-success" style="width: 40%"></div> </div> <div class="progress" style="margin-bottom: 9px;"> <div class="progress-bar progress-bar-warning" style="width: 60%"></div> </div> <div class="progress"> <div class="progress-bar progress-bar-danger" style="width: 80%"></div> </div> </div> <h3 id="progress-striped">Striped</h3> <div class="bs-example"> <div class="progress progress-striped" style="margin-bottom: 9px;"> <div class="progress-bar progress-bar-info" style="width: 20%"></div> </div> <div class="progress progress-striped" style="margin-bottom: 9px;"> <div class="progress-bar progress-bar-success" style="width: 40%"></div> </div> <div class="progress progress-striped" style="margin-bottom: 9px;"> <div class="progress-bar progress-bar-warning" style="width: 60%"></div> </div> <div class="progress progress-striped"> <div class="progress-bar progress-bar-danger" style="width: 80%"></div> </div> </div> <h3 id="progress-animated">Animated</h3> <div class="bs-example"> <div class="progress progress-striped active"> <div class="progress-bar" style="width: 45%"></div> </div> </div> <h3 id="progress-stacked">Stacked</h3> <div class="bs-example"> <div class="progress"> <div class="progress-bar progress-bar-success" style="width: 35%"></div> <div class="progress-bar progress-bar-warning" style="width: 20%"></div> <div class="progress-bar progress-bar-danger" style="width: 10%"></div> </div> </div> </div> </div> </div> <!-- Containers ================================================== --> <div class="bs-docs-section"> <div class="row"> <div class="col-lg-12"> <div class="page-header"> <h1 id="container">Containers</h1> </div> <div class="bs-example"> <div class="jumbotron"> <h1>Jumbotron</h1> <p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p> <p><a class="btn btn-primary btn-lg">Learn more</a></p> </div> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <h2>List groups</h2> </div> </div> <div class="row"> <div class="col-lg-4"> <div class="bs-example"> <ul class="list-group"> <li class="list-group-item"> <span class="badge">14</span> Cras justo odio </li> <li class="list-group-item"> <span class="badge">2</span> Dapibus ac facilisis in </li> <li class="list-group-item"> <span class="badge">1</span> Morbi leo risus </li> </ul> </div> </div> <div class="col-lg-4"> <div class="bs-example"> <div class="list-group"> <a href="#" class="list-group-item active"> Cras justo odio </a> <a href="#" class="list-group-item">Dapibus ac facilisis in </a> <a href="#" class="list-group-item">Morbi leo risus </a> </div> </div> </div> <div class="col-lg-4"> <div class="bs-example"> <div class="list-group"> <a href="#" class="list-group-item"> <h4 class="list-group-item-heading">List group item heading</h4> <p class="list-group-item-text">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p> </a> <a href="#" class="list-group-item"> <h4 class="list-group-item-heading">List group item heading</h4> <p class="list-group-item-text">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p> </a> </div> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <h2>Panels</h2> </div> </div> <div class="row"> <div class="col-lg-4"> <div class="panel panel-default"> <div class="panel-body"> Basic panel </div> </div> <div class="panel panel-default"> <div class="panel-heading">Panel heading</div> <div class="panel-body"> Panel content </div> </div> <div class="panel panel-default"> <div class="panel-body"> Panel content </div> <div class="panel-footer">Panel footer</div> </div> </div> <div class="col-lg-4"> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title">Panel primary</h3> </div> <div class="panel-body"> Panel content </div> </div> <div class="panel panel-success"> <div class="panel-heading"> <h3 class="panel-title">Panel success</h3> </div> <div class="panel-body"> Panel content </div> </div> <div class="panel panel-warning"> <div class="panel-heading"> <h3 class="panel-title">Panel warning</h3> </div> <div class="panel-body"> Panel content </div> </div> </div> <div class="col-lg-4"> <div class="panel panel-danger"> <div class="panel-heading"> <h3 class="panel-title">Panel danger</h3> </div> <div class="panel-body"> Panel content </div> </div> <div class="panel panel-info"> <div class="panel-heading"> <h3 class="panel-title">Panel info</h3> </div> <div class="panel-body"> Panel content </div> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <h2>Wells</h2> </div> </div> <div class="row"> <div class="col-lg-4"> <div class="well"> Look, I'm in a well! </div> </div> <div class="col-lg-4"> <div class="well well-sm"> Look, I'm in a small well! </div> </div> <div class="col-lg-4"> <div class="well well-lg"> Look, I'm in a large well! </div> </div> </div> </div> <footer> <div class="row"> <div class="col-lg-12"> <ul class="list-unstyled"> <li class="pull-right"><a href="#top">Back to top</a></li> <li><a href="http://news.bootswatch.com" onclick="pageTracker._link(this.href); return false;">Blog</a></li> <li><a href="http://feeds.feedburner.com/bootswatch">RSS</a></li> <li><a href="https://twitter.com/thomashpark">Twitter</a></li> <li><a href="https://github.com/thomaspark/bootswatch/">GitHub</a></li> <li><a href="../help/#api">API</a></li> <li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=F22JEM3Q78JC2">Donate</a></li> </ul> <p>Made by <a href="http://thomaspark.me">Thomas Park</a>. Contact him at <a href="mailto:[email protected]">[email protected]</a>.</p> <p>Code licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License v2.0</a>.</p> <p>Based on <a href="http://getbootstrap.com">Bootstrap</a>. Icons from <a href="http://fortawesome.github.io/Font-Awesome/">Font Awesome</a>. Web fonts from <a href="http://www.google.com/webfonts">Google</a>. Favicon by <a href="https://twitter.com/geraldhiller">Gerald Hiller</a>.</p> </div> </div> </footer> </div> <script src="../bower_components/jquery/jquery.min.js"></script> <script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script> <script src="../assets/js/bootswatch.js"></script> </body> </html>
imaguiraga/bootstrap-css-customizer
less/bootswatch/cyborg/index.html
HTML
mit
51,635
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Transforms Test Reference File</title> <link rel="author" title="Intel" href="http://www.intel.com"> <style> #test { background-color: green; height: 50px; margin: 50px; width: 50px; } #container { background-color: gray; height: 150px; position: absolute; width: 150px; } </style> <body> <p>Test passes if there is a filled green square in the <strong>center</strong> of the gray square and no red.</p> <div id="container"><div id="test"></div></div> </body>
haoxli/web-testing-service
wts/tests/2dtransforms/csswg/transform-origin-007-ref.html
HTML
bsd-3-clause
554