This is a modal.
+Gumby modals are easy to make using Toggles & Switches. The .modal class already has the required styles which you can open and close using Toggles & Switches.
+ + +diff --git a/new-racket-web/css/gumby.css b/new-racket-web/css/gumby.css index 95969ca7a3..5c6eab3cf8 100644 --- a/new-racket-web/css/gumby.css +++ b/new-racket-web/css/gumby.css @@ -1,5 +1,6 @@ @charset "UTF-8"; -@import url(//fonts.googleapis.com/css?family=Open+Sans:400,300,600,700); +@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700); +@import url(http://fonts.googleapis.com/css?family=Inconsolata); /** * Gumby Framework * --------------- @@ -1844,11 +1845,11 @@ body .video.twitch, body .video.youtube.show_controls { padding-top: 30px; } .drawer { position: relative; width: 100%; max-height: 0; background: #3e4144; -webkit-box-shadow: inset 0 -2px 5px #313436, inset 0 2px 5px #313436; -moz-box-shadow: inset 0 -2px 5px #313436, inset 0 2px 5px #313436; box-shadow: inset 0 -2px 5px #313436, inset 0 2px 5px #313436; overflow: hidden; -webkit-transition-duration: 0.3s; -moz-transition-duration: 0.3s; -o-transition-duration: 0.3s; transition-duration: 0.3s; } .drawer.active { height: auto; max-height: 800px; -webkit-transition-duration: 0.5s; -moz-transition-duration: 0.5s; -o-transition-duration: 0.5s; transition-duration: 0.5s; } -.modal { width: 100%; height: 100%; position: fixed; top: 0; left: 0; z-index: -999999; background: black; background: rgba(0, 0, 0, 0.8); } -.modal > .content { width: 50%; min-height: 50%; max-height: 65%; position: relative; top: 25%; margin: 0 auto; padding: 20px; background: white; z-index: 2; overflow: auto; } +.modal { width: 100%; height: 100%; position: fixed; top: 0; left: 0; z-index: -999999; background: black; background: rgba(0, 0, 0, 0.8); display: none;} +.modal > .content { width: 50%; min-height: 50%; max-height: 95%; position: relative; top: 5%; margin: 0 auto; padding: 10px; background: white; z-index: 2; overflow: auto; } @media only screen and (max-width: 768px) { .modal > .content { width: 80%; min-height: 80%; max-height: 80%; top: 10%; } } @media only screen and (max-width: 767px) { .modal > .content { width: 92.5%; min-height: 92.5%; max-height: 92.5%; top: 3.75%; } } .modal > .content > .close { position: absolute; top: 10px; right: 10px; cursor: pointer; } -.modal, .modal > .content { filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0); opacity: 0; -webkit-transition-duration: 0.3s; -moz-transition-duration: 0.3s; -o-transition-duration: 0.3s; transition-duration: 0.3s; } -.modal.active { z-index: 999999; } +.modal, .modal > .content { filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0); opacity: 0; -webkit-transition-duration: 0.1s; -moz-transition-duration: 0.1s; -o-transition-duration: 0.1s; transition-duration: 0.1s; } +.modal.active { z-index: 999999; display: block;} .modal.active, .modal.active > .content { filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100); opacity: 1; } diff --git a/new-racket-web/demo2.html b/new-racket-web/demo2.html new file mode 100644 index 0000000000..483d8c5f26 --- /dev/null +++ b/new-racket-web/demo2.html @@ -0,0 +1,1251 @@ + + + + + + + + +
+ + + + + + +Skip to drawers and open top one
+This is my awesome paragraph text, it is the base style/size for paragraph text. We love 16px for body copy as it provides for a more consistent cross browser experience. It is also digitally equivalent to to 12pt standard set in print design. We also love the golden ratio, all of the type set here is based off of that deliciously elegant ratio. Enjoy!
+This is my awesome paragraph text, it is the base style/size for paragraph text. We love 16px for body copy as it provides for a more consistent cross browser experience. It is also digitally equivalent to to 12pt standard set in print design. We also love the golden ratio, all of the type set here is based off of that deliciously elegant ratio. Enjoy!
+This is my awesome paragraph text, it is the base style/size for paragraph text. We love 16px for body copy as it provides for a more consistent cross browser experience. It is also digitally equivalent to to 12pt standard set in print design. We also love the golden ratio, all of the type set here is based off of that deliciously elegant ratio. Enjoy!
+This is my awesome paragraph text, it is the base style/size for paragraph text. We love 16px for body copy as it provides for a more consistent cross browser experience. It is also digitally equivalent to to 12pt standard set in print design. We also love the golden ratio, all of the type set here is based off of that deliciously elegant ratio. Enjoy!
+This is my awesome paragraph text, it is the base style/size for paragraph text. We love 16px for body copy as it provides for a more consistent cross browser experience. It is also digitally equivalent to to 12pt standard set in print design. We also love the golden ratio, all of the type set here is based off of that deliciously elegant ratio. Enjoy!
+This is my awesome paragraph text, it is the base style/size for paragraph text. We love 16px for body copy as it provides for a more consistent cross browser experience. It is also digitally equivalent to to 12pt standard set in print design. We also love the golden ratio, all of the type set here is based off of that deliciously elegant ratio. Enjoy!
+This is my awesome paragraph text, it is the base style/size for paragraph text. We love 16px for body copy as it provides for a more consistent cross browser experience. It is also digitally equivalent to to 12pt standard set in print design. We also love the golden ratio, all of the type set here is based off of that deliciously elegant ratio. Enjoy!
+This is my awesome paragraph text, it is the base style/size for paragraph text. We love 16px for body copy as it provides for a more consistent cross browser experience. It is also digitally equivalent to to 12pt standard set in print design. We also love the golden ratio, all of the type set here is based off of that deliciously elegant ratio. Enjoy!
+Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.
+Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.
+Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.
+Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio.
+ +Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.
+ +Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.
+Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.
+Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.
+Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.
+Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.
+Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.
+Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio.
++ Open Top Drawer +
+ + +Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Unstyled skip link. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante.
+Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis.
+Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Unstyled skip link. Vestibulum non ante.
+ ++ Top of page +
+ ++ Skip to 240px +
+All icons are (class="icon-*")
++Uses a hash table to record previously seen lines. You can run this program in DrRacket, but it makes more sense from the command line. + +
+ +
+To run the example, install Racket, start DrRacket, paste the example
+program into the top area in DrRacket, and click the Run
+button. Alternatively, save the program to a file and run racket
on
+the file.
+
+Form and function names in the code are hyperlinked to +documentation, so click on them for more information. +
++#lang racket ; An echo server +(define listener (tcp-listen 12345)) +(let echo-server () + (define-values (in out) (tcp-accept listener)) + (thread (lambda () (copy-port in out) + (close-output-port out))) + (echo-server)) ++
+Racket makes it easy to use TCP sockets and spawn threads to handle +them. This program starts a server at TCP port 12345 that echos +anything a client sends back to the client.
+ +
+To run the example, install Racket, start DrRacket, paste the example
+program into the top area in DrRacket, and click the Run
+button. Alternatively, save the program to a file and run racket
on
+the file.
+
+Form and function names in the code are hyperlinked to +documentation, so click on them for more information. +
++#lang racket +;; Report each unique line from stdin +(let ([saw (make-hash)]) + (for ([line (in-lines)]) + (unless (hash-ref saw line #f) + (displayln line)) + (hash-set! saw line #t))) ++ + + + + +
+#lang racket ; An echo server +(define listener (tcp-listen 12345)) +(let echo-server () + (define-values (in out) (tcp-accept listener)) + (thread (lambda () (copy-port in out) + (close-output-port out))) + (echo-server)) ++
+Draw more pictures or +build a web server from scratch. Racket includes both +batteries and a programming environment, +so get started! +
+940px
+60px
+860px
+60px
+60px
+60px
+60px
+60px
+60px
+60px
+60px
+60px
+60px
+60px
+60px
+140px
+780px
+140px
+140px
+140px
+140px
+140px
+140px
+220px
+700px
+220px
+220px
+220px
+220px
+300px
+620px
+300px
+300px
+300px
+380px
+540px
+460px
+460px
+Columns pushed right by 'x'
+11 Columns Push 1
+60px
+10 Columns Push 1
+10 Columns Push 2
+60px
+9 Columns Push 2
+9 Columns Push 3
+60px
+8 Columns Push 3
+8 Columns Push 4
+60px
+7 Columns Push 4
+7 Columns Push 5
+60px
+6 Columns Push 5
+6 Columns Push 6
+60px
+5 Columns Push 6
+5 Columns Push 7
+60px
+4 Columns Push 7
+4 Columns Push 8
+60px
+3 Col Push 8
+3 Col Push 9
+60px
+2 - Push 9
+2 - Push 10
+60px
+60px
+60px
+Centered Columns
+11 Columns
+10 Columns
+9 Columns
+8 Columns
+7 Columns
+6 Columns
+5 Columns
+4 Columns
+3 Columns
+2 Columns
+1 Col
+Responsive 16 Column Grid
+940px
+40
+880px
+40
+40
+40
+40
+40
+40
+40
+40
+40
+40
+40
+40
+40
+40
+40
+40
+100px
+820px
+100px
+100px
+100px
+100px
+100px
+100px
+100px
+100px
+160px
+760px
+160px
+160px
+220px
+160px
+160px
+220px
+700px
+220px
+220px
+220px
+220px
+280px
+640px
+280px
+340px
+280px
+340px
+580px
+340px
+220px
+340px
+400px
+520px
+400px
+100px
+400px
+460px
+460px
+Columns pushed right by 'x'
+15 Columns Push 1
+40px
+14 Columns Push 1
+14 Columns Push 2
+40px
+13 Columns Push 2
+13 Columns Push 3
+40px
+12 Columns Push 3
+12 Columns Push 4
+40px
+11 Columns Push 4
+11 Columns Push 5
+40px
+10 Columns Push 5
+10 Columns Push 6
+40px
+9 Columns Push 6
+9 Columns Push 7
+40px
+8 Columns Push 7
+8 Columns Push 8
+40px
+7 Columns Push 8
+7 Columns Push 9
+40px
+6 Columns Push 9
+6 Columns Push 10
+40px
+5 Columns Push 10
+5 Columns Push 11
+40px
+4 Columns Push 11
+4 Columns Push 12
+40px
+3 Col Push 12
+3 Col Push 13
+40px
+2 - Push 13
+2 - Push 14
+40px
+40px
+40px
+Centered Columns
+15 Columns
+14 Columns
+13 Columns
+12 Columns
+11 Columns
+10 Columns
+9 Columns
+8 Columns
+7 Columns
+6 Columns
+5 Columns
+4 Columns
+3 Columns
+2 Columns
+1 Col
+