switch to raw HTML and CSS concept
This commit is contained in:
parent
c9f885fd6b
commit
bd6fbe4aff
14 changed files with 109 additions and 2767 deletions
|
|
@ -1,7 +0,0 @@
|
|||
source 'http://rubygems.org'
|
||||
gem 'github-pages', group: :jekyll_plugins
|
||||
gem 'jekyll-tagging'
|
||||
gem 'jekyll-feed'
|
||||
gem 'rouge'
|
||||
|
||||
|
||||
209
src/Gemfile.lock
209
src/Gemfile.lock
|
|
@ -1,209 +0,0 @@
|
|||
GEM
|
||||
remote: http://rubygems.org/
|
||||
specs:
|
||||
activesupport (4.2.8)
|
||||
i18n (~> 0.7)
|
||||
minitest (~> 5.1)
|
||||
thread_safe (~> 0.3, >= 0.3.4)
|
||||
tzinfo (~> 1.1)
|
||||
addressable (2.5.1)
|
||||
public_suffix (~> 2.0, >= 2.0.2)
|
||||
coffee-script (2.4.1)
|
||||
coffee-script-source
|
||||
execjs
|
||||
coffee-script-source (1.12.2)
|
||||
colorator (1.1.0)
|
||||
ethon (0.10.1)
|
||||
ffi (>= 1.3.0)
|
||||
execjs (2.7.0)
|
||||
faraday (0.12.2)
|
||||
multipart-post (>= 1.2, < 3)
|
||||
ffi (1.9.18)
|
||||
forwardable-extended (2.6.0)
|
||||
gemoji (3.0.0)
|
||||
github-pages (146)
|
||||
activesupport (= 4.2.8)
|
||||
github-pages-health-check (= 1.3.5)
|
||||
jekyll (= 3.4.5)
|
||||
jekyll-avatar (= 0.4.2)
|
||||
jekyll-coffeescript (= 1.0.1)
|
||||
jekyll-default-layout (= 0.1.4)
|
||||
jekyll-feed (= 0.9.2)
|
||||
jekyll-gist (= 1.4.0)
|
||||
jekyll-github-metadata (= 2.5.1)
|
||||
jekyll-mentions (= 1.2.0)
|
||||
jekyll-optional-front-matter (= 0.2.0)
|
||||
jekyll-paginate (= 1.1.0)
|
||||
jekyll-readme-index (= 0.1.0)
|
||||
jekyll-redirect-from (= 0.12.1)
|
||||
jekyll-relative-links (= 0.4.1)
|
||||
jekyll-sass-converter (= 1.5.0)
|
||||
jekyll-seo-tag (= 2.2.3)
|
||||
jekyll-sitemap (= 1.0.0)
|
||||
jekyll-swiss (= 0.4.0)
|
||||
jekyll-theme-architect (= 0.0.4)
|
||||
jekyll-theme-cayman (= 0.0.4)
|
||||
jekyll-theme-dinky (= 0.0.4)
|
||||
jekyll-theme-hacker (= 0.0.4)
|
||||
jekyll-theme-leap-day (= 0.0.4)
|
||||
jekyll-theme-merlot (= 0.0.4)
|
||||
jekyll-theme-midnight (= 0.0.4)
|
||||
jekyll-theme-minimal (= 0.0.4)
|
||||
jekyll-theme-modernist (= 0.0.4)
|
||||
jekyll-theme-primer (= 0.3.1)
|
||||
jekyll-theme-slate (= 0.0.4)
|
||||
jekyll-theme-tactile (= 0.0.4)
|
||||
jekyll-theme-time-machine (= 0.0.4)
|
||||
jekyll-titles-from-headings (= 0.2.0)
|
||||
jemoji (= 0.8.0)
|
||||
kramdown (= 1.13.2)
|
||||
liquid (= 3.0.6)
|
||||
listen (= 3.0.6)
|
||||
mercenary (~> 0.3)
|
||||
minima (= 2.1.1)
|
||||
rouge (= 1.11.1)
|
||||
terminal-table (~> 1.4)
|
||||
github-pages-health-check (1.3.5)
|
||||
addressable (~> 2.3)
|
||||
net-dns (~> 0.8)
|
||||
octokit (~> 4.0)
|
||||
public_suffix (~> 2.0)
|
||||
typhoeus (~> 0.7)
|
||||
html-pipeline (2.6.0)
|
||||
activesupport (>= 2)
|
||||
nokogiri (>= 1.4)
|
||||
i18n (0.8.6)
|
||||
jekyll (3.4.5)
|
||||
addressable (~> 2.4)
|
||||
colorator (~> 1.0)
|
||||
jekyll-sass-converter (~> 1.0)
|
||||
jekyll-watch (~> 1.1)
|
||||
kramdown (~> 1.3)
|
||||
liquid (~> 3.0)
|
||||
mercenary (~> 0.3.3)
|
||||
pathutil (~> 0.9)
|
||||
rouge (~> 1.7)
|
||||
safe_yaml (~> 1.0)
|
||||
jekyll-avatar (0.4.2)
|
||||
jekyll (~> 3.0)
|
||||
jekyll-coffeescript (1.0.1)
|
||||
coffee-script (~> 2.2)
|
||||
jekyll-default-layout (0.1.4)
|
||||
jekyll (~> 3.0)
|
||||
jekyll-feed (0.9.2)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-gist (1.4.0)
|
||||
octokit (~> 4.2)
|
||||
jekyll-github-metadata (2.5.1)
|
||||
jekyll (~> 3.1)
|
||||
octokit (~> 4.0, != 4.4.0)
|
||||
jekyll-mentions (1.2.0)
|
||||
activesupport (~> 4.0)
|
||||
html-pipeline (~> 2.3)
|
||||
jekyll (~> 3.0)
|
||||
jekyll-optional-front-matter (0.2.0)
|
||||
jekyll (~> 3.0)
|
||||
jekyll-paginate (1.1.0)
|
||||
jekyll-readme-index (0.1.0)
|
||||
jekyll (~> 3.0)
|
||||
jekyll-redirect-from (0.12.1)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-relative-links (0.4.1)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-sass-converter (1.5.0)
|
||||
sass (~> 3.4)
|
||||
jekyll-seo-tag (2.2.3)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-sitemap (1.0.0)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-swiss (0.4.0)
|
||||
jekyll-tagging (1.1.0)
|
||||
nuggets
|
||||
jekyll-theme-architect (0.0.4)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-theme-cayman (0.0.4)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-theme-dinky (0.0.4)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-theme-hacker (0.0.4)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-theme-leap-day (0.0.4)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-theme-merlot (0.0.4)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-theme-midnight (0.0.4)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-theme-minimal (0.0.4)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-theme-modernist (0.0.4)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-theme-primer (0.3.1)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-theme-slate (0.0.4)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-theme-tactile (0.0.4)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-theme-time-machine (0.0.4)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-titles-from-headings (0.2.0)
|
||||
jekyll (~> 3.3)
|
||||
jekyll-watch (1.5.0)
|
||||
listen (~> 3.0, < 3.1)
|
||||
jemoji (0.8.0)
|
||||
activesupport (~> 4.0)
|
||||
gemoji (~> 3.0)
|
||||
html-pipeline (~> 2.2)
|
||||
jekyll (>= 3.0)
|
||||
kramdown (1.13.2)
|
||||
liquid (3.0.6)
|
||||
listen (3.0.6)
|
||||
rb-fsevent (>= 0.9.3)
|
||||
rb-inotify (>= 0.9.7)
|
||||
mercenary (0.3.6)
|
||||
mini_portile2 (2.2.0)
|
||||
minima (2.1.1)
|
||||
jekyll (~> 3.3)
|
||||
minitest (5.10.3)
|
||||
multipart-post (2.0.0)
|
||||
net-dns (0.8.0)
|
||||
nokogiri (1.8.0)
|
||||
mini_portile2 (~> 2.2.0)
|
||||
nuggets (1.5.0)
|
||||
octokit (4.7.0)
|
||||
sawyer (~> 0.8.0, >= 0.5.3)
|
||||
pathutil (0.14.0)
|
||||
forwardable-extended (~> 2.6)
|
||||
public_suffix (2.0.5)
|
||||
rb-fsevent (0.10.2)
|
||||
rb-inotify (0.9.10)
|
||||
ffi (>= 0.5.0, < 2)
|
||||
rouge (1.11.1)
|
||||
safe_yaml (1.0.4)
|
||||
sass (3.5.1)
|
||||
sass-listen (~> 4.0.0)
|
||||
sass-listen (4.0.0)
|
||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||
rb-inotify (~> 0.9, >= 0.9.7)
|
||||
sawyer (0.8.1)
|
||||
addressable (>= 2.3.5, < 2.6)
|
||||
faraday (~> 0.8, < 1.0)
|
||||
terminal-table (1.8.0)
|
||||
unicode-display_width (~> 1.1, >= 1.1.1)
|
||||
thread_safe (0.3.6)
|
||||
typhoeus (0.8.0)
|
||||
ethon (>= 0.8.0)
|
||||
tzinfo (1.2.3)
|
||||
thread_safe (~> 0.1)
|
||||
unicode-display_width (1.3.0)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
github-pages
|
||||
jekyll-feed
|
||||
jekyll-tagging
|
||||
rouge
|
||||
|
||||
BUNDLED WITH
|
||||
1.15.0
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
name: Public APIs
|
||||
description: A collective list of public JSON APIs for use in web development.
|
||||
github_username: davemachado
|
||||
|
||||
markdown: kramdown
|
||||
kramdown:
|
||||
input: GFM
|
||||
encoding: utf-8
|
||||
highlighter: rouge
|
||||
excerpt_separator: "<!--more-->"
|
||||
|
||||
gems:
|
||||
- jekyll-sitemap
|
||||
|
||||
port: 4242
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,13 +0,0 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
|
||||
<!-- styles -->
|
||||
<script src="{{ site.baseurl }}/css/jquery-2.1.4.min.js"></script>
|
||||
<script src="{{ site.baseurl }}/css/bootstrap.min.js"></script>
|
||||
<link href="{{ site.baseurl }}/css/journal.css" rel="stylesheet">
|
||||
<link href="{{ site.baseurl }}/css/tables.css" rel="stylesheet">
|
||||
<script src="{{ site.baseurl }}/css/jets.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
<header>
|
||||
<div class="navbar navbar-static-top" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand" href="{{ site.baseurl }}/">Public APIs</a>
|
||||
</div>
|
||||
<!--/.nav-collapse -->
|
||||
</div>
|
||||
<!--/.container -->
|
||||
</div>
|
||||
<!--/.navbar -->
|
||||
|
||||
<a href="http://github.com/kuhnrl30/public-apis" class="github-corner" aria-label="View source on Github"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
|
||||
|
||||
</header>
|
||||
<hr>
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
{% include head.html %}
|
||||
<body>
|
||||
<div class="container">
|
||||
{% include header.html %}
|
||||
<div class="row">{{ content }}</div>
|
||||
</div> <!-- /container -->
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,78 +0,0 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<h1> Contributing to public-apis</h1>
|
||||
|
||||
|
||||
> While the masses of pull requests and community involvement is appreciated, some pull requests have been specifically
|
||||
opened to market company APIs that offer paid solutions. This API list is not a marketing tool, but a tool to help the
|
||||
community build applications and use free, public APIs quickly and easily. Pull requests that are identified as marketing attempts will not be accepted.
|
||||
>
|
||||
> Thanks for understanding! :)
|
||||
|
||||
|
||||
<h2> Formatting </h2>
|
||||
|
||||
<table class="table table-bordered table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>API</td>
|
||||
<td>Description</td>
|
||||
<td>Auth</td>
|
||||
<td>HTTPS</td>
|
||||
<td>Link</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr>
|
||||
<td>API title</td>
|
||||
<td>Description of API</td>
|
||||
<td>Does this API require authentication? *</td>
|
||||
<td>Does the API support HTTPS?</td>
|
||||
<td>Link to API webpage</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
Example Entry:
|
||||
|
||||
| NASA | NASA data, including imagery | No | Yes | [Go!](https://api.nasa.gov) |
|
||||
|
||||
Currently, the only accepted inputs for the Auth field are as follows:
|
||||
|
||||
* `oAuth` - _the API supports oAuth_
|
||||
* `apiKey` - _the API uses a private key string/token for authentication - try and use the correct parameter_
|
||||
* `X-Mashape-Key` - _the name of the header which may need to be sent_
|
||||
* `No` - _the API requires no authentication to run_
|
||||
|
||||
Please continue to follow the alphabetical ordering that is in place per section.
|
||||
|
||||
If an API seems to fall into multiple categories, please place the listing within the section most in line with the services offered through the API. For example, the Instagram API is listed under Social since it is mainly a social network, even though it could also apply to Photography.
|
||||
|
||||
## Pull Request
|
||||
|
||||
After you've created a branch on your fork with your changes, it's time to make a pull request!
|
||||
Once you've submitted a pull request, the collaborators can review your proposed changes and decide whether or not to incorporate (pull in) your changes.
|
||||
|
||||
|
||||
### Pull Request Pro Tips
|
||||
|
||||
* [Fork](http://guides.github.com/activities/forking/) the repository and [clone](https://help.github.com/articles/cloning-a-repository/) it locally.
|
||||
Connect your local repository to the original `upstream` repository by adding it as a [remote](https://help.github.com/articles/adding-a-remote/).
|
||||
Pull in changes from `upstream` often so that you stay up to date and so when you submit your pull request,
|
||||
merge conflicts will be less likely. See more detailed instructions [here](https://help.github.com/articles/syncing-a-fork).
|
||||
* Create a [branch](http://guides.github.com/introduction/flow/) for your edits.
|
||||
* Contribute in the style of the project as outlined above. This makes it easier for the collaborators to merge
|
||||
and for others to understand and maintain in the future.
|
||||
|
||||
### Open Pull Requests
|
||||
|
||||
Once you've opened a pull request, a discussion will start around your proposed changes.
|
||||
|
||||
Other contributors and users may chime in, but ultimately the decision is made by the collaborators.
|
||||
|
||||
During the discussion, you may be asked to make some changes to your pull request.
|
||||
|
||||
If so, add more commits to your branch and push them -- they will automatically go into the existing pull request!
|
||||
|
||||
Opening a pull request will trigger a Travis CI build to check the validity of all links in the project. After the build completes, please ensure that the build has passed. Otherwise, view the Travis CI log and see what errors the build found for your contribution. If the build error is not related to your link(s), don't worry! Your pull request will not be delayed because of already existing link causing an error.
|
||||
13
src/css/jets.min.js
vendored
13
src/css/jets.min.js
vendored
|
|
@ -1,13 +0,0 @@
|
|||
/*! Jets.js - v0.14.0 - 2017-02-11
|
||||
* http://NeXTs.github.com/Jets.js/
|
||||
* Copyright (c) 2015 Denis Lukov; Licensed MIT */
|
||||
|
||||
;(function(d,c){"undefined"!=typeof module?module.exports=c():"function"==typeof define&&"object"==typeof define.amd?define(c):d.Jets=c()})(this,function(){function d(c){if(!(this instanceof d))return new d(c);var a=this,b={searchSelector:"*AND",hideBy:"display:none",diacriticsMap:{}};a.options={};"columns addImportant searchSelector hideBy manualContentHandling callSearchManually searchInSpecificColumn diacriticsMap didSearch invert".split(" ").forEach(function(f){a.options[f]=c[f]||b[f]});if(1<this.options.searchSelector.length){var g=
|
||||
a.options.searchSelector.trim();a.options.searchSelector=g.substr(0,1);a.options.searchSelectorMode=g.substr(1).toUpperCase()}a.content_tag=document.querySelectorAll(c.contentTag);if(!a.content_tag)throw Error("Error! Could not find contentTag element");a.content_param=c.contentTag;a.search_tag=document.querySelector(c.searchTag);if(!a.search_tag&&!a.options.callSearchManually)throw Error('Error! Provide one of search methods: searchTag or callSearchManually and call .search("phrase") manually');
|
||||
var e=a.search_tag&&a.search_tag.value||"";a.search=function(b,c){e!=(e=a.options.callSearchManually&&"undefined"!=typeof b?b:a.search_tag?a.search_tag.value:"")&&(0,a._applyCSS(e,c),a.options.didSearch&&a.options.didSearch(e))};a._onSearch=function(b){if("keydown"==b.type)return setTimeout(a.search,0);a.search()};a.destroy=function(){a.options.callSearchManually||a._processEventListeners("remove");a._destroy()};a.options.callSearchManually||a._processEventListeners("add");a._addStyleTag();a._setJets();
|
||||
a._applyCSS(e)}d.prototype={constructor:d,_processEventListeners:function(c){["input","keydown","change"].forEach(function(a){this.search_tag[c+"EventListener"](a,this._onSearch)}.bind(this))},_applyCSS:function(c,a){for(var b=this.options,g=this.replaceDiacritics(c.trim().toLowerCase().replace(/\s\s+/g," ")).replace(/\\/g,"\\\\"),e=b.searchSelectorMode?g.split(" ").filter(function(a,b,c){return c.indexOf(a)==b}):[g],f="AND"==b.searchSelectorMode,h=Array(e.length),d=0,k=e.length;d<k;d++)h[d]=(f?this.content_param+
|
||||
">":"")+(b.invert?"":":not(")+"[data-jets"+("undefined"!=typeof a?"-col-"+a:"")+b.searchSelector+'="'+e[d]+'"]'+(b.invert?"":")");e=b.hideBy.split(";").filter(Boolean).map(function(a){return a+(b.addImportant?"!important":"")});f=(f?"":this.content_param+">")+h.join(f?",":"")+"{"+e.join(";")+"}";this.styleTag.innerHTML=g.length?f:""},_addStyleTag:function(){this.styleTag=document.createElement("style");document.head.appendChild(this.styleTag)},_getText:function(c){return c&&(c.textContent||c.innerText)||
|
||||
""},_sanitize:function(c){return this.replaceDiacritics(c).trim().replace(/\s+/g," ").toLowerCase()},_getContentTags:function(c){return Array.prototype.slice.call(this.content_tag).reduce(function(a,b){return a.concat(Array.prototype.slice.call(b.querySelectorAll(c||":scope > *")))},[])},_handleSpecificColumns:function(c,a){var b=this;b.options.searchInSpecificColumn&&Array.prototype.slice.call(c.children).map(function(g,e){if(!b.options.columns||!b.options.columns.length||-1!=b.options.columns.indexOf(e))c[(a||
|
||||
"remove")+"Attribute"]("data-jets-col-"+e,a&&b._sanitize(b._getText(g)))})},_setJets:function(c,a){for(var b=this,g=b._getContentTags(a?"":c),e,f=0,d;d=g[f];f++)if(!d.hasAttribute("data-jets")||a)e=this.options.manualContentHandling?this.options.manualContentHandling(d):b.options.columns&&b.options.columns.length?b.options.columns.map(function(a){return b._getText(d.children[a])}).join(" "):b._getText(d),d.setAttribute("data-jets",b._sanitize(e)),b._handleSpecificColumns(d,"set")},replaceDiacritics:function(c){var a=
|
||||
this.options.diacriticsMap,b;for(b in a)if(a.hasOwnProperty(b))for(var d=0,e=a[b].length;d<e;d++)c=c.replace(new RegExp(a[b][d],"g"),b);return c},update:function(c){this._setJets(":scope > :not([data-jets])",c)},_destroy:function(){this.styleTag.parentNode&&document.head.removeChild(this.styleTag);for(var c=this._getContentTags(),a=0,b;b=c[a];a++)b.removeAttribute("data-jets"),this._handleSpecificColumns(b)}};(function(c,a){try{c.querySelector(":scope body")}catch(b){["querySelector","querySelectorAll"].forEach(function(b){var d=
|
||||
a[b];a[b]=function(a){if(/(^|,)\s*:scope/.test(a)){var e=this.id;this.id="ID_"+Date.now();a=a.replace(/((^|,)\s*):scope/g,"$1#"+this.id);a=c[b](a);this.id=e;return a}return d.call(this,a)}})}})(window.document,Element.prototype);return d});
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,27 +0,0 @@
|
|||
#jetsSearch {
|
||||
border: 15px;
|
||||
border-radius: 30px;
|
||||
border-color: black;
|
||||
}
|
||||
|
||||
td {
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.page-head {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#search-wrapper {
|
||||
width: 75%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
thead {
|
||||
font-size: 1.2em;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
#jetsSearch {
|
||||
box-shadow: inset 0 1px 1px rgba(1,1,1,1)
|
||||
}
|
||||
95
src/index.html
Executable file → Normal file
95
src/index.html
Executable file → Normal file
|
|
@ -1,63 +1,36 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
<!doctype html>
|
||||
|
||||
<div class="page-head">
|
||||
<h2> Public APIs</h2>
|
||||
A collective list of free JSON APIs for use in web development.
|
||||
<br>
|
||||
For information on contributing to this project, please see the <a href="{{ site.baseurl }}/contribute">contributing guide</a>.
|
||||
</div>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="styles.css"/>
|
||||
<script src="https://unpkg.com/vue"></script>
|
||||
<title>Public APIs</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div style="overflow-x:auto;">
|
||||
<table id="entries" border="1">
|
||||
<thead>
|
||||
<tr class="tbl-head">
|
||||
<th>API</th>
|
||||
<th>Description</th>
|
||||
<th>Authorization</th>
|
||||
<th>HTTPS</th>
|
||||
<th>Category</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="item in data" v-show="filtered(item)">
|
||||
<td><a :href="item.Link">{{ item.API }}</a></td>
|
||||
<td>{{ item.Description }}</td>
|
||||
<td>{{ (item.Auth) ? item.Auth : '-' }}</td>
|
||||
<td>{{ (item.HTTPS) ? '✔' : '✖' }}</td>
|
||||
<td class="lol">{{ item.Section }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<script src="scripts.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- search input results -->
|
||||
<form>
|
||||
<div id="search-wrapper" class="form-group">
|
||||
<label for="jetsSearch">
|
||||
<i class="search icon"></i>
|
||||
</label>
|
||||
<input type="search" class="form-control" id="jetsSearch" placeholder="Search APIs" autocomplete="off" spellcheck="false" tabindex="0">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<br>
|
||||
|
||||
<!-- tbale goes here -->
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
<table class="table table-hover col-sm-12">
|
||||
<thead>
|
||||
<tr class="tbl-head">
|
||||
<td>API</td>
|
||||
<td>Description</td>
|
||||
<td>Authorization</td>
|
||||
<td>HTTPS</td>
|
||||
<td>Category</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="jetsContent">
|
||||
{% assign catlist = site.data.entries %}
|
||||
{% for cat in catlist %}
|
||||
{% for api in cat[1] %}
|
||||
<tr>
|
||||
<td><a href="{{ api.Link }}"> {{ api.API }} </a></td>
|
||||
<td>{{ api.Description }}</td>
|
||||
<td>{{ api.Auth }}</td>
|
||||
<td>{{ api.HTTPS }}</td>
|
||||
<td>{{ cat[0] }} </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var jets = new Jets({
|
||||
searchTag: '#jetsSearch',
|
||||
contentTag: '#jetsContent',
|
||||
columns: [0,1,2,4],
|
||||
});
|
||||
</script>
|
||||
44
src/scripts.js
Normal file
44
src/scripts.js
Normal file
File diff suppressed because one or more lines are too long
31
src/styles.css
Normal file
31
src/styles.css
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#entries {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#entries td, #entries th {
|
||||
border: 1px solid #ddd;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
#entries tr:nth-child(even){background-color: #f2f2f2;}
|
||||
|
||||
#entries tr:hover {background-color: #ddd;}
|
||||
|
||||
#entries th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: center;
|
||||
background-color: #4783e5;
|
||||
color: white;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 15px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.isHidden {
|
||||
display: none;
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue