@@ -14,6 +14,7 @@ $(document).ready(function () {
hub.client.newMatch = function (gameDisplay) {
betId = 0;
$(".checkShow").removeClass("checkShow");
new Audio("/Audio/UrfIntro.mp3").play();

$("#gameDetail").empty().append(timeLeftTemplate.supplant(gameDisplay));
$("#participant1").empty().append('<img src="/Images/Champion/' + gameDisplay.BlueTeam[0].ChampionImage + '"\>');
@@ -27,6 +28,17 @@ $(document).ready(function () {
$("#participant9").empty().append('<img src="/Images/Champion/' + gameDisplay.PurpleTeam[3].ChampionImage + '"\>');
$("#participant10").empty().append('<img src="/Images/Champion/' + gameDisplay.PurpleTeam[4].ChampionImage + '"\>');

$("#participant1").attr("data-x-betId", gameDisplay.BlueTeam[0].ParticipantId)
$("#participant2").attr("data-x-betId", gameDisplay.BlueTeam[1].ParticipantId)
$("#participant3").attr("data-x-betId", gameDisplay.BlueTeam[2].ParticipantId)
$("#participant4").attr("data-x-betId", gameDisplay.BlueTeam[3].ParticipantId)
$("#participant5").attr("data-x-betId", gameDisplay.BlueTeam[4].ParticipantId)
$("#participant6").attr("data-x-betId", gameDisplay.PurpleTeam[0].ParticipantId)
$("#participant7").attr("data-x-betId", gameDisplay.PurpleTeam[1].ParticipantId)
$("#participant8").attr("data-x-betId", gameDisplay.PurpleTeam[2].ParticipantId)
$("#participant9").attr("data-x-betId", gameDisplay.PurpleTeam[3].ParticipantId)
$("#participant10").attr("data-x-betId", gameDisplay.PurpleTeam[4].ParticipantId)

if (gameDisplay.BetType == 0) {
$(".blueTeam, .purpleTeam, .summoner").off();
$(".summoner").removeClass("selectable");
@@ -67,6 +79,14 @@ $(document).ready(function () {
+ '</strong>:&nbsp;&nbsp;' + encodedMsg + '</li>');
};

hub.client.applause = function () {
new Audio("/Audio/Applause.mp3").play();
};

hub.client.fart = function () {
new Audio("/Audio/Fart.mp3").play();
};

if (authenticated)
{
toggleBet(true);
@@ -93,6 +113,14 @@ $(document).ready(function () {
$.connection.hub.start().done(function () {
hub.server.getCurrentMatch();

$('#applause').click(function () {
hub.server.applause(getCookie("clientName"), getCookie("clientKey"));
});

$('#fart').click(function () {
hub.server.fart(getCookie("clientName"), getCookie("clientKey"));
});

$('#sendmessage').click(function () {
// Call the Send method on the hub.
hub.server.send(getCookie("clientName"), getCookie("clientKey"), $('#message').val()).done(function (result) {
@@ -9,13 +9,13 @@ var section_show_time = 1300;
jQuery(document).ready(function($) {

// Switch section
$("a", '.mainmenu').click(function()
$("a.sectionSwitch").click(function()
{
if( ! $(this).hasClass('active') ) {
current_item = this;
// close all visible divs with the class of .section
$('.section:visible').fadeOut( section_hide_time, function() {
$('a', '.mainmenu').removeClass( 'active' );
$('a.sectionSwitch').removeClass('active');
$(current_item).addClass( 'active' );
var new_section = $( $(current_item).attr('href') );
new_section.fadeIn( section_show_time );
@@ -12,7 +12,6 @@
<div class="well panelBackground" id="guestEntry" @((!User.Identity.IsAuthenticated && Request.Cookies["clientName"] == null) ? "style=\"display: none;\"" : "")>
<input type="text" class="form-control" placeholder="Enter your name" id="guestName" autocomplete="off" />
</div>

<div id="betArena" style="display: none;">
<div class="well col-md-6">
<h5><span class="label label-default">Blue Team</span></h5>
@@ -48,13 +47,14 @@
</div>
<div>&nbsp;</div>
<div class="well panelBackground ">
<div id="gameDetail"></div>
<div class="form-group">
<div class="col-md-3">
<input type="text" id="message" class="form-control" placeholder="Chat with your fellow URFers" autocomplete="off" />
</div>
<div class="col-md-3 btn-group">
<div class="col-md-5 btn-group">
<input type="button" class="btn btn-default" id="sendmessage" value="Send" />
<input type="button" class="btn btn-danger" id="applause" value="Live for the applause" />
<input type="button" class="btn btn-danger" id="fart" value="#FishFarts" />
</div>
</div>
<div id="discussion-wrapper">
@@ -5,34 +5,19 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>@ViewBag.Title - The manatee hath spoken. Get NURFt</title>
<title>@ViewBag.Title - The manatee hath spoken. Get URFt</title>
<meta name="Description" content="@ViewBag.Description">

<link rel="shortcut icon" href="/favicon.ico">

<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" type="text/css">

<link rel="stylesheet" href="/Content/magister.css">
<link rel="stylesheet" href="/Content/Site.css">

@Styles.Render("~/Content/css")
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Wire+One' rel='stylesheet' type='text/css'>
</head>

<body class="theme-invert">

@*<nav class="mainmenu">
<div class="container">
<div class="dropdown">
<button type="button" class="navbar-toggle" data-toggle="dropdown"><span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
<ul class="dropdown-menu panelBackground" role="menu" aria-labelledby="dLabel">
<li><a href="#head" class="active">Manatee Mania!</a></li>
<li><a href="#about">About the Nurf.Us crew</a></li>
<li><a href="#contact">Get in touch</a></li>
</ul>
</div>
</div>
</nav>*@
<header class="navbar navbar-inverse navbar-fixed-top bs-docs-nav" role="banner">
<div class="container">
<div class="navbar-header">
@@ -42,31 +27,15 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="./" class="navbar-brand">Bootstrap 3 Menu Generator</a>
<a href="#head" class="navbar-brand sectionSwitch">Match Gambling<div id="gameDetail"></div></a>
</div>
<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
<ul class="nav navbar-nav">
<li>
<a href="#">Getting started</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li><a href="#">Separated link</a></li>
<li><a href="#">One more separated link</a></li>
</ul>
<a href="#about" class="sectionSwitch">About</a>
</li>
<li>
<a href="#">Components</a>
</li>
<li>
<a href="#">JavaScript</a>
</li>
<li class="active">
<a href="#">Customize</a>
<a href="#contact" class="sectionSwitch">Get In Touch</a>
</li>
</ul>
</nav>
@@ -128,10 +97,9 @@
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<script src="/Scripts/modernizr.custom.72241.js"></script>
<script src="/Scripts/magister.js"></script>
<script src="/Scripts/jquery.signalR-2.2.0.min.js"></script>
<script src="/signalr/hubs"></script>
<script src="/Scripts/Common.js"></script>
@Scripts.Render("~/bundles/nurf")
@RenderSection("scripts", required: false)
<script>
(function (i, s, o, g, r, a, m) {