Skip to content

adding tooltip #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
d2076c5
Rename 50-01.html to 13-03.html
joshhazelhurst123 Aug 6, 2017
5cf4b26
Create readme.md
joshhazelhurst123 Feb 21, 2019
252bfa1
Update progress.css
joshhazelhurst123 Feb 21, 2019
fba8a8e
Update tutorial.html
joshhazelhurst123 Feb 21, 2019
c078de3
Update tutorial.html
joshhazelhurst123 Feb 22, 2019
92dc22c
Update tutorial.html
joshhazelhurst123 Feb 22, 2019
dca7748
Update tutorial.html
joshhazelhurst123 Feb 22, 2019
15007db
Update tutorial.html
joshhazelhurst123 Feb 22, 2019
39a8372
Update tutorial.html
joshhazelhurst123 Feb 22, 2019
ade7cdd
Update progress.css
joshhazelhurst123 Feb 22, 2019
840ccbe
Update tutorial.html
joshhazelhurst123 Feb 22, 2019
ccb268a
Update tutorial.html
joshhazelhurst123 Feb 22, 2019
1b0ece3
Update tutorial.html
joshhazelhurst123 Feb 23, 2019
293cb5c
Update tutorial.html
joshhazelhurst123 Feb 23, 2019
edd223a
Update tutorial.html
joshhazelhurst123 Feb 23, 2019
9d0a8b4
Update tutorial.html
joshhazelhurst123 Feb 23, 2019
f595182
Update tutorial.html
joshhazelhurst123 Feb 23, 2019
c6659b5
Update tutorial.html
joshhazelhurst123 Feb 23, 2019
684f998
Update tutorial.html
joshhazelhurst123 Feb 23, 2019
e92e6d4
Update tutorial.html
joshhazelhurst123 Feb 23, 2019
6cdead1
Update tutorial.html
joshhazelhurst123 Feb 23, 2019
1ce6fa9
Update tutorial.html
joshhazelhurst123 Feb 23, 2019
3ab70d2
Update tutorial.html
joshhazelhurst123 Feb 23, 2019
f471bd1
Update tutorial.html
joshhazelhurst123 Feb 23, 2019
89aa28f
Update tutorial.html
joshhazelhurst123 Feb 23, 2019
efe8f1c
Update tutorial.html
joshhazelhurst123 Feb 23, 2019
3c4d1a9
Update tutorial.html
joshhazelhurst123 Feb 23, 2019
16f0302
Update tutorial.html
joshhazelhurst123 Feb 24, 2019
95c4de4
Update tutorial.html
joshhazelhurst123 Feb 24, 2019
28d85b0
Update tutorial.html
joshhazelhurst123 Feb 24, 2019
f4a709f
Update tutorial.html
joshhazelhurst123 Feb 24, 2019
b3886c0
Update tutorial.html
joshhazelhurst123 Feb 24, 2019
e3fff28
Update tutorial.html
joshhazelhurst123 Feb 24, 2019
22f3b15
Update tutorial.html
joshhazelhurst123 Feb 24, 2019
afa9f03
Update tutorial.html
joshhazelhurst123 Feb 24, 2019
894cfcc
Update tutorial.html
joshhazelhurst123 Feb 25, 2019
5630c98
Update tutorial.html
joshhazelhurst123 Feb 25, 2019
1e4b8c1
Update tutorial.html
joshhazelhurst123 Feb 25, 2019
baad297
Update tutorial.html
joshhazelhurst123 Feb 25, 2019
f479c35
Update tutorial.html
joshhazelhurst123 Feb 25, 2019
f1b5c2d
Update tutorial.html
joshhazelhurst123 Feb 26, 2019
21eb749
Update tutorial.html
joshhazelhurst123 Feb 26, 2019
722ae1d
Update tutorial.html
joshhazelhurst123 Feb 26, 2019
9c139cd
Update tutorial.html
joshhazelhurst123 Feb 26, 2019
6f522a9
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
60e5266
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
42d4346
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
84a4988
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
45b1c74
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
f4a4288
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
efe8666
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
110d4fb
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
8d28bf0
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
1745753
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
a604db6
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
9025b5d
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
68020a3
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
45ec1bd
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
97086f5
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
5f591b3
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
724f05b
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
cf00574
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
4eb0c98
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
a83a76d
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
672ab6e
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
6b9a9bd
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
aa506bd
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
7d16851
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
2fb7b23
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
b4717b2
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
1cba92c
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
d41d7de
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
9bd3b3c
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
293a74f
Update tutorial.html
joshhazelhurst123 Feb 27, 2019
d04a9d3
Delete readme.md
joshhazelhurst123 Feb 28, 2019
748216f
Update progress.css
joshhazelhurst123 Mar 6, 2019
6573e75
Update progress.css
joshhazelhurst123 Mar 6, 2019
3851893
Update progress.css
joshhazelhurst123 Mar 6, 2019
7c140de
Update progress.css
joshhazelhurst123 Mar 6, 2019
6711dbc
Update progress.css
joshhazelhurst123 Mar 6, 2019
ff9bbe0
Update progress.css
joshhazelhurst123 Mar 6, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 72 additions & 44 deletions _layouts/tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,31 @@
<script type="text/javascript" async="" src="../js/cookies.js"></script>
<script type="text/javascript" async="" src="../js/requirements.js"></script>
<script type="text/javascript" async="" src="../js/compatibility.js"></script>
<script type="text/javascript" async="" src="../js/languages.js"></script>
<script type="text/javascript" async="" src="../js/switch-language.js"></script>
<link type="text/css" rel="stylesheet" href="../css/tutorial.css" media="screen"/>
<link type="text/css" rel="stylesheet" href="../css/playfield.css" media="screen"/>
<link type="text/css" rel="stylesheet" href="../css/quiz.css" media="screen"/>
<link type="text/css" rel="stylesheet" href="../css/hint.css" media="screen"/>
<link type="text/css" rel="stylesheet" href="../css/progress.css" media="screen"/>
<link type="text/css" rel="stylesheet" href="../css/requirements.css" media="screen"/>
<link type="text/css" rel="stylesheet" href="../css/languages.css" media="screen"/>
<link type="text/css" rel="stylesheet" href="../css/Ubuntu.css" media="screen"/>
<link rel="shortcut icon" href="../favicon.ico?v=2" type="image/x-icon">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>

<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip({title: "Hooray", placement: "bottom"});
});
</script>



<title>{{ page.title | escape }} - {{ site.data.localization.title[page.lang] }}</title>
<script type="text/javascript">
var current_page_id = "page-" + {{ page.path | jsonify }};
Expand All @@ -24,39 +40,30 @@
.clicked .toggle-hint:before {
content: "{{ site.data.localization.hint.shown[page.lang] }}";
}

.secret .toggle-hint:before {
content: "{{ site.data.localization.hint.hidden[page.lang] }}";
}

.playfield.verbose .match.ok:after {
content: "{{ site.data.localization.match.matched[page.lang] }}";
}

.playfield.verbose .match.fail:after {
content: "{{ site.data.localization.match.shouldNotMatch[page.lang] }}";
}

.playfield.verbose .nomatch.ok:after {
content: "{{ site.data.localization.match.shouldMatch[page.lang] }}";
}

.playfield.verbose .nomatch.fail:after {
content: "{{ site.data.localization.match.noMatch[page.lang] }}";
}

.quiz .expression:before {
content: "{{ site.data.localization.quiz.before[page.lang] }}";
}

.quiz .expression:after {
content: "{{ site.data.localization.quiz.after[page.lang] }}";
}

.quiz .button-ok:before {
content: "{{ site.data.localization.quiz.yes[page.lang] }}";
}

.quiz .button-fail:before {
content: "{{ site.data.localization.quiz.no[page.lang] }}";
}
Expand All @@ -65,50 +72,71 @@
<body>
<header>
<div class="progress">
{% assign same_topic_started = false %}
{% assign should_assign_next = false %}
{% assign has_next_page = false %}
{% assign next_page = nil %}
{% for p in site.pages %}
{% assign p_language = p.path | split: "/" | first %}
{% assign file_name = p.path | split: "/" %}
{% assign file_name = file_name[1] %}
{% assign topic = page.path | split: "-" | first %}
{% assign p_topic = p.path | split: "-" | first %}
{%- assign same_topic_started = false %}
{%- assign should_assign_next = false %}
{%- assign has_next_page = false %}
{%- assign step_index = 0 %}
{%- assign next_page = nil %}
{%- for p in site.pages %}
{%- assign file_name = page.path | split: "/" %}
{%- assign file_name = file_name[1] %}

{% if p_language == page.lang %}
{% if p_topic == topic and same_topic_started == false %}
{%- assign p_file_name = p.path | split: "/" %}
{%- assign p_file_name = p_file_name[1] %}

{%- assign topic = file_name | split: "-" | first %}
{%- assign p_topic = p_file_name | split: "-" | first %}

{%- if p.lang == page.lang %}
{%- assign step_index = step_index | plus: 1 %}
{%- if p_topic == topic and same_topic_started == false %}
<div class="same-topic">
{% assign same_topic_started = true %}
{% endif %}
{% if p_topic != topic and same_topic_started == true %}
{%- assign same_topic_started = true %}
{%- endif %}
{%- if p_topic != topic and same_topic_started == true %}
</div>
{% assign same_topic_started = false %}
{% endif %}
<a id="page-{{ p.path }}" class="step {% if page == p %}current{% endif %}" href="..{{ p.url }}"></a>
{% if should_assign_next %}
{% assign should_assign_next = false %}
{% assign has_next_page = true %}
{% assign next_page = p %}
{% endif %}
{% if page == p %}
{% assign should_assign_next = true %}
{% endif %}
{% endif %}
{% endfor %}
{% if same_topic_started %}
{%- assign same_topic_started = false %}
{%- endif %}
<a id="page-{{ p.path }}" data-toggle="tooltip" title="Hooray!" class="step {% if page == p %}current{% endif %}" href="..{{ p.url }}">{%- if page == p %}{{ step_index }}{% endif %}</a>
{%- if should_assign_next %}
{%- assign should_assign_next = false %}
{%- assign has_next_page = true %}
{%- assign next_page = p %}
{%- endif %}
{%- if page == p %}
{%- assign should_assign_next = true %}
{%- endif %}
{%- endif %}
{%- endfor %}
{%- if same_topic_started %}
</div>
{% endif %}
{%- endif %}
</div>
<h2>{{ page.title | escape }}</h2>
</header>
<div class="main">
{{ content }}
{% if has_next_page %}
{%- if has_next_page %}
<a href="..{{ next_page.url }}" class="next-page">{{ site.data.localization.footer.nextStep[page.lang] }}</a>
{% endif %}
{%- endif %}
</div>
<footer>
<div class="languageFooterMenu" >
<select id="languageMenu" onchange="changeLanguage()">
{%- assign languagesArray = 'English,Deutsch,Svenska' | split: ',' %}
{%- for language in languagesArray %}
{%- assign lang = language | slice: 0, 2 | downcase %}
{%- if lang == page.lang %}
<option id="{{lang}}" selected href="..{{page.url}}">{{language}}</option>
{%- endif %}
{%- if lang != page.lang %}
<option id="{{lang}}" href="..{{page.url | replace: page.lang, lang}}">{{language}}</option>
{%- endif %}
{%- endfor %}
</select>
<script>
</script>
</div>
<div class="links">
<a href="{{ site.data.localization.github.edit }}/{{ page.path }}">{{ site.data.localization.footer.edit[page.lang] }}</a>
<a href="{{ site.data.localization.github.newIssue }}">{{ site.data.localization.footer.newIssue[page.lang] }}</a>
Expand All @@ -120,10 +148,10 @@ <h2>{{ page.title | escape }}</h2>
<img alt="Creative Commons Lizenzvertrag" style="border-width:0" src="../img/cc-by-sa.png" />
</a>
{{ site.data.localization.license[page.lang] }}
{% assign lowercase_content = content | downcase %}
{% if lowercase_content contains "<img" %}
{%- assign lowercase_content = content | downcase %}
{%- if lowercase_content contains "<img" %}
{{ site.data.localization.licenseImage[page.lang] }}
{% endif %}
{%- endif %}
</div>
</footer>
</body>
Expand Down
32 changes: 20 additions & 12 deletions css/progress.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,48 @@
.progress {
text-align: center;
width: 100%;
padding: 5px;
padding: 30px;
background-color: {{ site.data.colors.progress-color }};
display: block;
}

.progress .step {
.step {
width: 10px;
height: 10px;
height: 60px;
border: 3px solid {{ site.data.colors.step-color }};
border-radius: 10px;
border-radius: 5px;
display: inline-block;
vertical-align: middle;
}

.progress > .step {
margin-top: 5px;
margin-bottom: 5px;
margin-top: 10px;
margin-bottom: 10px;
display: inline-block;
}

.progress .step.done {
.step.done {
background-color: {{ site.data.colors.step-done-color }};
border-color: {{ site.data.colors.step-done-border-color }};
}

.progress .step.current {
.step.current {
background-color: {{ site.data.colors.step-color }};
color: white;
text-decoration: none;
font-size: 7px;
width: 20px;
height: 40px;
line-height: 40px;
border-radius: 10px;
border-width: 4px;
}

.progress .same-topic {
.same-topic {
background-color: {{ site.data.colors.header-color }};
clear: none;
padding: 5px;
border-radius: 20px;
padding: 20px;
border-radius: 10px;
display: inline-block;
line-height: 10px;
line-height: 40px;
}
File renamed without changes.