-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #544 from rg3h/master
Added ES6 version of apiDemo
- Loading branch information
Showing
7 changed files
with
612 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
/** apiDemoMain.css **/ | ||
|
||
html { | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
body { | ||
animation: wtfHelperFadeUpAnim 1s ease-in-out 0.2s forwards; | ||
font-size: 14px; | ||
height: 100%; | ||
opacity: 0; | ||
overflow: hidden; | ||
padding: 2em; | ||
width: 100%; | ||
} | ||
|
||
.apiDemoRoot { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-start; | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
.apiDemoHeader { | ||
align-items: center; | ||
color: var(--wtfHelperOrange); | ||
display: flex; | ||
flex-direction: row; | ||
flex-grow: 0; | ||
font-size: 1.5em; | ||
justify-content: center; | ||
margin-bottom: 0.5em; | ||
overflow: hidden; | ||
width: 100%; | ||
} | ||
|
||
.apiDemoMainContainer { | ||
border: var(--wtfHelperBorder); | ||
border-top-left-radius: var(--wtfHelperBorderRadius); | ||
height: 100%; | ||
overflow: auto; | ||
padding: 0.5em 0.5em 2em 0.5em; | ||
width: 100%; | ||
} | ||
|
||
.apiDemoSectionHeader, | ||
.apiDemoSectionHeaderFirst { | ||
border-top: var(--wtfHelperBorder); | ||
color: var(--wtfHelperGreen); | ||
font-size: 1.3em; | ||
font-weight: 500; | ||
margin-top: 2em; | ||
} | ||
|
||
.apiDemoSectionHeaderFirst { | ||
border-top: none; | ||
margin-top: 0; | ||
} | ||
|
||
.apiDemoEntry, | ||
.apiDemoEntryWithSpacing { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: flex-start; | ||
width: 100%; | ||
} | ||
|
||
.apiDemoEntryWithSpacing { | ||
margin-bottom: 1em; | ||
} | ||
|
||
.apiDemoEntryTitle { | ||
flex-grow: 0; | ||
font-weight: 600; | ||
margin-left: 2em; | ||
min-width: 12em; | ||
} | ||
|
||
.apiDemoEntryResult { | ||
min-width: 10em; | ||
} | ||
|
||
.apiDemoImageListContainer { | ||
align-items: flex-start; | ||
display: flex; | ||
flex-direction: row; | ||
gap: 1em; | ||
height: 200px; | ||
justify-content: flex-start; | ||
margin: 0.5em 0em 1em 2em; | ||
overflow-x: auto; | ||
padding: 0.5em 0em 0.5em 0em; | ||
width: calc(100% - 4em); | ||
} | ||
|
||
.apiDemoImage { | ||
height: calc(200px - 1em - 20px); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE html> <!-- apiDemoES6.html demonstrates wtf_wikipedia api calls --> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="stylesheet" type="text/css" href="./wtfHelper/wtfHelper.css" /> | ||
<link rel="stylesheet" type="text/css" href="./apiDemo.css" /> | ||
<script type="module" src="./apiDemoES6.js"></script> | ||
</head><body></body></html> |
Oops, something went wrong.