Skip to content

Commit 4da535f

Browse files
committed
create template puzzle and update placeholder in complete message
1 parent 964e1b5 commit 4da535f

File tree

2 files changed

+67
-1
lines changed

2 files changed

+67
-1
lines changed

puzzles/crossword_message.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@
542542

543543
<!-- Row 3 -->
544544
<div class="bonus-row" data-row="3" style="display:none;">
545-
<input type="text" class="bonus-input" data-answer="WILL" placeholder="WILL" maxlength="4">
545+
<input type="text" class="bonus-input" data-answer="WILL" placeholder="text" maxlength="4">
546546
<input type="text" class="bonus-input" data-answer="YOU" placeholder="YOU" maxlength="3">
547547
<input type="text" class="bonus-input" data-answer="BEND" placeholder="?" maxlength="4">
548548
<input type="text" class="bonus-input" data-answer="MY" placeholder="MY" maxlength="2">

puzzles/puzzle_template.html

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
layout: default
3+
title: TITLE
4+
description: Nathan Ryan's TITLE puzzle.
5+
---
6+
7+
<section>
8+
<header class="main">
9+
<meta name="description" content="Nathan Ryan's TITLE puzzle.">
10+
<meta name="keywords" content="Nathan, Nathan Ryan, puzzle, trick, word play, words, numbers, sudoku, word search, word ladder, number game, adding, challenge, personal, fun, game, ready, play">
11+
</header>
12+
</section>
13+
14+
<!-- Content -->
15+
<div id="main">
16+
<div class="inner">
17+
18+
<!-- Header -->
19+
<header id="header">
20+
<meta name="description" content="Nathan Ryan's TITLE puzzle.">
21+
<a class="logo">TITLE</a>
22+
</header>
23+
24+
<!-- Banner -->
25+
<section id="banner">
26+
<div class="content">
27+
<p>By: Nathan Ryan</p>
28+
<p>Created: Date</p>
29+
<p>Last Updated: Date</p>
30+
<p>Brief description of the puzzle goes here.</p>
31+
</div>
32+
</section>
33+
</div>
34+
</div>
35+
<script>
36+
var currentPageURL = window.location.href;
37+
38+
function shareOnTwitter() {
39+
var textToTweet = "Check out this puzzle by @nathan_ryancz";
40+
var url = encodeURIComponent(currentPageURL);
41+
window.open('https://twitter.com/intent/tweet?text=' + textToTweet + '&url=' + url, '_blank');
42+
}
43+
44+
function shareOnLinkedIn() {
45+
var textToLinkedIn = "Check out this puzzle!";
46+
var url = encodeURIComponent(currentPageURL);
47+
window.open('https://www.linkedin.com/sharing/share-offsite/?url=' + url + '&text=' + textToLinkedIn, '_blank');
48+
}
49+
50+
function shareOnFacebook() {
51+
var url = encodeURIComponent(currentPageURL);
52+
window.open('https://www.facebook.com/sharer/sharer.php?u=' + url, '_blank');
53+
}
54+
</script>
55+
56+
<section>
57+
<p>Content for the puzzle goes here.</p>
58+
</section>
59+
60+
<div class="share-buttons">
61+
<span style="margin-right: 5px;">Share: </span>
62+
<button onclick="shareOnTwitter()">Twitter</button>
63+
<button onclick="shareOnLinkedIn()">LinkedIn</button>
64+
<button onclick="shareOnFacebook()">Facebook</button>
65+
</div>
66+
<p></p>

0 commit comments

Comments
 (0)