New WAC Site 2

by Koubenec

HTML

<!doctype html>

<html>

	<head>
		<title>Simple Grid</title>
		<meta charset="utf-8" />
        <link rel="stylesheet" type="text/css" href="simpleGrid.css" />
        <link rel="stylesheet" type="text/css" href="modernpictograms.css" />
        <link href='http://fonts.googleapis.com/css?family=Ledger' rel='stylesheet' type='text/css'>
        <link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
        <script type="text/javascript" src="http://www.competitivenarratives.com/wactest/jquery.dotdotdot-1.5.6-packed.js"></script>
            <script type="text/javascript" src="http://www.competitivenarratives.com/wactest/backstretch.js"></script>
        <script type="text/javascript" language="javascript">
$(document).ready(function(){
    $('.mainnewstext, .secondnewstext').dotdotdot({
        //    see http://dotdotdot.frebsite.nl/ for configuration notes
        ellipsis    : '... ',
        wrap        : 'word',
        after       : null,
        watch       : true,
        height      : 100
    });
    
});
</script>
<!--            <script type="text/javascript">
    $(function(){
    $("#firststorypic").backstretch("http://www.competitivenarratives.com/wactest/highres_capital_modded.jpg");
})
</script>-->
	</head>
	<body>
        <div id="logocontainer">
        <img id="logoimg" src="http://competitivenarratives.com/Top_logo_1.png">
        </div>
    <div class='menu-button'>Menu</div>	
		<nav>
			<ul id="nav" role="navigation">
				<li class="top-level"><a href="">MENU ITEM 1</a>
					<ul class="sub-menu">
						<li><a href="#content">Sub 1 Item #1</a></li>
						<li><a href="">Sub 1 Item #2</a></li>
						<li><a href="">Sub 1 Item #3</a></li>
						<li><a href="">Sub 1 Item #4</a></li>
					</ul>
				</li>

				<li class="top-level"><a href="">MENU ITEM 2</a>
					<ul class="sub-menu">
						<li class="second-level"><a href="">Sub 1 Item #1</a>
							<ul class="sub-menu">
								<li><a href="">Sub 2...

CSS

/*
  Simple Grid
  Learn More - http://dallasbass.com/simple-grid-a-lightweight-responsive-css-grid/
  Project Page - http://thisisdallas.github.com/Simple-Grid/
  Author - Dallas Bass
  Site - dallasbass.com
*/

*, *:after, *:before {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

body {
	margin: 0px;
    font-family: 'Ledger', serif;
    height: 100%;
}

/*#bottom {
    position: fixed;
    bottom: 0px;
    background-color: transparent;
        }*/

#bottombar {
    background-color: #fff;
}

/*.positionmaster {
    background-color: blue;
}*/

/*.mainback {
    background-color: transparent;
    height: 90%;
}*/


#logocontainer {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#logoimg {
    max-width: 100%;
    height: auto;
}

.mainnewsheadline {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 2.0em;
    color: #000;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.newsline {
    width: 100%;
    height: 1px;
    background-color: #000;
}

.mainnewstext { 
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 1.0em;
    color: #000;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

#firststorypic {
    width: 100%;
    height: auto;
}

#secondstorypic {
    width: 100%;
    height: auto;
}

#thirdstorypic {
    width: 100%;
    height: auto;
}

.secondnewsheadline {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 2.0em;
    color: #000;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.secondnewstext { 
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 1.0em;
    color: #000;
}

.pictograms {
    font-family: 'Modern pictograms';
    font-size: 20px;
}

.pictocaption {
    font-family: 'Ledger', serif;
   ...

JavaScript

/*global jQuery */
/*!	
 * FlexNav.js 0.3.2
 *
 * Copyright 2013, Jason Weaver http://jasonweaver.name
 * Released under the WTFPL license
 * http://sam.zoy.org/wtfpl/
 *
 * Date: Thursday Jan 16 2013
 */

(function($) {
	$.fn.flexNav = function(options) {
		var settings = $.extend({
			'breakpoint': '767',
			'animationSpeed': 'fast'
		},
		options);

		var $this = $(this);

		var resizer = function() {
			if ($(window)
				.width() < settings.breakpoint) {
				$("body")
					.removeClass("lg-screen")
					.addClass("sm-screen");
			} else {
				$("body")
					.removeClass("sm-screen")
					.addClass("lg-screen");
			}
			if ($(window)
				.width() >= settings.breakpoint) {
				$this.show();
			}
		};

		// Call once to set.
		resizer();

		// Function for testing touch screens

		function is_touch_device() {
			return !!('ontouchstart' in window);
		}

		// Set class on html element for touch/no-touch
		if (is_touch_device()) {
			$('html')
				.addClass('flexNav-touch');
		} else {
			$('html')
				.addClass('flexNav-no-touch');
		}

		// Set some classes in the markup	
		$this.find("li")
			.each(function() {
			if ($(this)
				.has("ul")
				.length) {
				$(this)
					.addClass("item-with-ul");
			}
		});

		// Toggle for nav menu
		$('.menu-button')
			.click(function() {
			$this.slideToggle(settings.animationSpeed);
		});

		// Toggle click for sub-menus on touch and or small screens
		$('.item-with-ul')
			.click(function() {
			$(this)
				.find('.sub-menu')
				.slideToggle(settings.animationSpeed);
		});

		// Call on resize.
		$(window)
			.on('resize', resizer);

	};

})(jQuery);