1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/static/src/js/app.js
Jake Howard 97601a7b53 Refactor view code
- Compress codebase
- Remove duplicate bulky code
- Use template directory to dictate sitemap
2016-04-05 19:38:09 +01:00

24 lines
462 B
JavaScript

/* global $ */
import './events.js';
import './globals.js';
import 'whatwg-fetch';
import React from 'react';
import NavBar from './components/navbar/navbar';
import Breadcrumbs from './components/breadcrumbs';
if ($('navbar').length > 0) {
React.render(<NavBar />, $('navbar')[0]);
}
if ($('#breadcrumbs').length > 0) {
React.render(<Breadcrumbs />, $('#breadcrumbs')[0]);
}
if ($('.header h1').text()) {
$('.markdown-content h1').eq(0).hide();
}