Compare commits

...

9 Commits

Author SHA1 Message Date
Ashley
ea323d4b01 Merge pull request #250 from amiaopensource/moves-cc-img
moves cc-by img into repo
2017-10-13 09:49:06 -04:00
Ashley
082f9a1175 Merge pull request #248 from amiaopensource/modals-go-inline
modals go inline instead of popup
2017-10-13 09:48:56 -04:00
Ashley Blewer
04776428c8 moves cc-by img into repo 2017-10-12 22:47:58 -04:00
Ashley Blewer
b1f7f5cad4 modals go inline instead of popup 2017-10-12 22:14:47 -04:00
Ashley
6d41096dd5 Merge pull request #247 from amiaopensource/fr-to-perc
changes fractions to percentages in grid template
2017-10-12 22:01:38 -04:00
Ashley
77c31a7c5c Merge pull request #246 from bastibeckr/gh-pages
Add stream-and-record command
2017-10-12 19:29:09 -04:00
Basti Becker
0c9086d70d Update requested changes
Fix HTML, some typos and improve some explanations. Thanks for review.
2017-10-12 12:49:35 +02:00
Ashley Blewer
2b6dfac5b0 changes fractions to percentages in grid template 2017-10-11 21:02:13 -04:00
Basti Becker
ba21f8b88d Add stream-and-record command
I wanted to contribute my livestream-and-record command to this great
collection.
2017-10-11 20:12:39 +02:00
4 changed files with 1559 additions and 2013 deletions

View File

@@ -40,7 +40,7 @@
@media only screen and (min-width: 1000px) {
.grid {
grid-gap: 1rem;
grid-template-columns: 0.25fr auto;
grid-template-columns: 30% auto;
grid-template-areas:
"header header"
"sidebar content"

BIN
img/cc.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

3542
index.html

File diff suppressed because it is too large Load Diff

View File

@@ -4,25 +4,21 @@ $(document).ready(function() {
$('[data-toggle="tooltip"]').tooltip()
});
// open modal window if a hash is found in URL
// open recipe window if a hash is found in URL
if(window.location.hash) {
$(window.location.hash).modal('show');
// add direct link to modal window
$(".link").empty();
$(".link").append("<small>Link to this command: <a href="+window.location.href+">"+window.location.href+"</a></small>");
id = window.location.hash
$(id).collapse('show');
$('html, body').animate({ scrollTop: $(id).offset().top}, 1000);
$(id + " .link").empty();
$(id + " .link").append("<small>Link to this command: <a href="+window.location.href+">"+window.location.href+"</a></small>");
}
// add hash to URL when modal is opened
$('span[data-toggle="modal"]').on("click", function(){
window.location.hash = $(this).attr("data-target");
// add direct link to modal window
$(".link").empty();
$(".link").append("<small>Link to this command: <a href="+window.location.href+">"+window.location.href+"</a></small>");
});
// remove hash from URL when modal is closed
$(document).on('hide.bs.modal', function (e) {
history.pushState("", document.title, window.location.pathname);
// add hash URL when recipe is opened
$('span[data-toggle="collapse"]').on("click", function(){
id = $(this).attr("data-target");
window.location.hash = id
$(id + " .link").empty();
$(id + " .link").append("<small>Link to this command: <a href="+window.location.href+">"+window.location.href+"</a></small>");
});
});