Skip to content

Commit

Permalink
Mobile complete. Errors fixed. Initial release.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanguard90 committed Dec 6, 2016
1 parent 600be7d commit 7175869
Show file tree
Hide file tree
Showing 43 changed files with 159 additions and 10 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
7 changes: 7 additions & 0 deletions secondary/index.html → mock-website/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KZJH48');</script>
<!-- End Google Tag Manager -->
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width-device-width, initial-scale=1">
Expand Down
5 changes: 5 additions & 0 deletions secondary/js-main.js → mock-website/js-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ headerTag.removeChild(hamburgerMenu);

/* Mobile hamburger click start */

if (windowWidth < 701) {

let hamburgerImage = document.getElementsByClassName("hamburger-image");
let nav = document.getElementsByClassName("nav");
let imgTag = document.getElementsByTagName("img")[1];
Expand All @@ -88,13 +90,16 @@ if (imgTag.classList.contains('hamburger-active')) {

}

}

/*Mobile hamburger click end */

/* No link click event start */

var buttonClick = document.getElementsByClassName("noLink");
var i;
for (i = 0; i < buttonClick.length; i++) {

buttonClick[i].addEventListener("click", function clickFunction() {alert('This link is not the link you are looking for.')}, false);
}

Expand Down
157 changes: 147 additions & 10 deletions secondary/main.css → mock-website/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0 0 0 0;
padding: 0 0 0 0;
border: 0 0 0 0;
line-height: 1;
}

Expand Down Expand Up @@ -245,7 +244,7 @@ h1 {

h2 {
font-size: 36px;
font-weight: 350;
font-weight: 400;
}

.main-section {
Expand Down Expand Up @@ -464,6 +463,11 @@ footer div h4 a:hover {
src: url("fonts/garamond/Garamond.ttf");
}

@font-face {
font-family: "Anson";
src: url("fonts/anson/Anson-Regular.otf");
}

header {

background: rgba(39,52,46,0.7);
Expand Down Expand Up @@ -661,7 +665,7 @@ h1, h2 {

h2 {
font-size: 32px;
font-weight: 350;
font-weight: 400;
}

.main-section {
Expand Down Expand Up @@ -904,6 +908,11 @@ footer div h4 a:hover {
src: url("fonts/garamond/Garamond.ttf");
}

@font-face {
font-family: "Anson";
src: url("fonts/anson/Anson-Regular.otf");
}

header {

background: rgba(39,52,46,0.7);
Expand Down Expand Up @@ -1013,7 +1022,7 @@ header ol li:hover .header-element-11, header ol li:hover .header-element-12, he

.hamburger-image {

vertical-align: center;
vertical-align: middle;
}

.nav {
Expand Down Expand Up @@ -1111,7 +1120,7 @@ h1 {

h2 {
font-size: 28px;
font-weight: 350;
font-weight: 400;
}

.main-section {
Expand Down Expand Up @@ -1304,7 +1313,7 @@ footer div h4 a:hover {
/* Mobile-specific changes */

.left {
float: center;
float: initial;
}

/*Mobile spesific changes end */
Expand All @@ -1316,7 +1325,7 @@ footer div h4 a:hover {
/* Mobile-specific changes */

.right {
float: center;
float: initial;
text-align: center;
}

Expand Down Expand Up @@ -1349,6 +1358,129 @@ footer div h4 a:hover {
src: url("fonts/garamond/Garamond.ttf");
}

@font-face {
font-family: "Anson";
src: url("fonts/anson/Anson-Regular.otf");
}

header {

background: rgba(39,52,46,0.7);
min-height: 50px;
width: 100%;
z-index: 1;
position: absolute;
}

header div {

width: 49%;
height: 50px;
padding-right: 0%;
display: inline-block;
}

header div img.first-image, header div img.second-image, header div img.third-image {

position: absolute;
}

.header-element {

font-size: 16px;
width: 100%;
font-weight: 900;
margin-top: 0.5%;
padding: 0 0.4%;
}

header ol {

list-style-type:none;
position: relative;
display: block;
float: right;
font-family: "Anson", sans-serif;
min-height: 50px;
margin-top: 0.4%;
width: 100%;
}

header ol li:last-child {

margin-right: 0;
}

header ol li {

position: relative;
display: block;
float: left;
text-align: center;
vertical-align: middle;
margin-bottom: 1%;
}

header ol li a {

color: #e1e4e7;
font-size: 18px;
text-decoration: none;
}

.header-element ul li a {

color: #27342e;
}

.header-element-11, .header-element-12, .header-element-13 {

display: none;
width: inherit;
position: relative;

}

header ol li:hover .header-element-11, header ol li:hover .header-element-12, header ol li:hover .header-element-13 {

display: block;
width: 100%;
z-index: 2;
background-color: #ffffff;
padding: 15px 5px 5px 5px;
}

.header-element-11, .header-element-12, .header-element-13 {

font-weight: 500;
padding-top: 20px;
}

.mobile-hamburger {

min-height: 50px;
}

.hamburger-menu {
position: relative;
padding-right: 3%;
padding-top: 0px;
height: 20%;
width: 20%;
float: right;
}

.hamburger-image {

vertical-align: middle;
}

.nav {

display: none;
}


.popup {

display: none;
Expand Down Expand Up @@ -1438,7 +1570,7 @@ h1 {

h2 {
font-size: 24px;
font-weight: 350;
font-weight: 400;
}

.main-section {
Expand Down Expand Up @@ -1587,6 +1719,11 @@ footer {
padding-right: 1%;
border-right: solid #e1e4e7 1px;
}

.left ul li:last-child {
border-right: none;
}

/* Mobile-specific changes */

.mobile-full {
Expand Down Expand Up @@ -1625,7 +1762,7 @@ footer div h4 a:hover {
/* Mobile-specific changes */

.left {
float: center;
float: initial;
}

/*Mobile spesific changes end */
Expand All @@ -1637,7 +1774,7 @@ footer div h4 a:hover {
/* Mobile-specific changes */

.right {
float: center;
float: initial;
text-align: center;
}

Expand Down
Binary file removed secondary/img/header/tree-thumbnail-mock-logo.jpg
Binary file not shown.

0 comments on commit 7175869

Please sign in to comment.