Skip to content
This repository has been archived by the owner on Nov 3, 2019. It is now read-only.

Commit

Permalink
Minor Standard fixes and code commented (still WIP nav part)
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolinicolae committed Jan 17, 2017
1 parent e90cd54 commit 0408ace
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions app/src/renderer/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ function backHomeButton (location) {

link.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22.84 17.39"><polygon points="22.84 8.22 1.82 8.22 9.37 0.67 8.7 0 0 8.7 8.7 17.39 9.37 16.72 1.82 9.17 22.84 9.17 22.84 8.22"/></svg>'

if ( location === 'home' )
if (location === 'home') {
element.classList.add('back-btn')
else
} else {
element.classList.add('back-btn', 'inactive')
}

element.appendChild(link)
body.appendChild(element)
Expand Down Expand Up @@ -107,18 +108,19 @@ function setDarkMode () {
document.documentElement.classList.toggle('dark-mode', config.get('darkMode'))
}

function fix404() {
function fix404 () {
// Add missing elements
const span = $('.root')
const section = $('.page')
const nav = document.createElement('nav')

let user = $('#link_profile a').href

span.id = 'react-root'
section.classList.add('_8f735')
nav.classList.add('_onabe', '_5z3y6')

/*
let user = $('#link_profile a').href
nav.innerHTML = '<div class="_fjpuc _hykpq">\
<div>\
<div class="_bfc7q">\
Expand Down Expand Up @@ -149,6 +151,7 @@ function fix404() {
</div>\
</div>\
</div>'
*/

section.appendChild(nav)

Expand All @@ -159,7 +162,6 @@ function fix404() {
}

function init () {

setDarkMode()

if (!$(selectors.notFoundPage)) {
Expand Down

0 comments on commit 0408ace

Please sign in to comment.