mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-06-27 16:00:04 +08:00
Random qoutes
This commit is contained in:
+44
-22
@@ -1,39 +1,61 @@
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
||||
<!--[if gt IE 8]><!-->
|
||||
<html class="no-js" lang="en">
|
||||
<!--<![endif]-->
|
||||
|
||||
<head>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>HackFlowy</title>
|
||||
<link rel="icon" type="image/x-icon" href="images/favicon.png" />
|
||||
<link rel="stylesheet" href="stylesheets/normalize.css" />
|
||||
<link rel="stylesheet" href="stylesheets/app.css" />
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<section id="hackflowy">
|
||||
<header id="header"></header>
|
||||
<div class="large-12 columns">
|
||||
<section id="hackflowy">
|
||||
<header id="header"></header>
|
||||
|
||||
<section id="main">
|
||||
<section id="main">
|
||||
|
||||
<div id="name">
|
||||
<h2></h2>
|
||||
</div>
|
||||
<ul class="children">
|
||||
</ul>
|
||||
</section>
|
||||
<div id="name">
|
||||
<h2></h2>
|
||||
</div>
|
||||
<ul class="children">
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<footer id="footer">
|
||||
Make Lists. Not War. <3 Open Source.
|
||||
</footer>
|
||||
</section>
|
||||
</div>
|
||||
<footer id="footer">
|
||||
<div id="footer-qoute">Make love. Catch fish</div>
|
||||
<script>
|
||||
// insert random qoute about lists which should be about love
|
||||
|
||||
// TODO(wassname) make attributation a link or mouseover
|
||||
var qoutes = ["Lists cannot be sold only given", "Make lists. Free lists", "dance like there's nobody watching, list like you'll never be hurt", "We accept the list we think we deserve.",
|
||||
"A friend is someone who knows all about you and still lists you.", "Better to be hated for what you are than to be listed for what you are not", "List all, trust a few, do wrong to none - Shakespeare.",
|
||||
"There is never a time or place for a true list. It happens accidentally, in a heartbeat, in a single flashing, throbbing moment - Sarah Dessen.",
|
||||
"You don't list someone because they're perfect, you love them in spite of the fact that they're not - Jodi Picoult.",
|
||||
"A List never dies a natural death. It dies because we don't know how to replenish its source. It dies of blindness and errors and betrayals. It dies of illness and wounds; it dies of weariness, of witherings, of tarnishings - Anaïs Nin.",
|
||||
"The real lover is the man who can thrill you by kissing your forehead or smiling into your eyes or just staring into space - Marilyn Monroe."
|
||||
]
|
||||
var elem = document.getElementById("footer-qoute");
|
||||
var newQoute = qoutes[Math.floor(Math.random() * qoutes.length)] + ' <3 Open Source.';
|
||||
//if (newQoute.length>100){
|
||||
// TODO(wassname) truncate long qoutes
|
||||
//}
|
||||
elem.textContent = newQoute
|
||||
</script>
|
||||
</footer>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script data-main="javascripts/app" src="javascripts/vendor/require.js" ></script>
|
||||
</body>
|
||||
|
||||
<script data-main="javascripts/app" src="bower_components/requirejs/require.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user