This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getQueryParams = function () { | |
var params = []; | |
var query = window.location.search; | |
query = query.slice(1, query.length); | |
var nv = query.split('&'); | |
for (var i = 0; i < nv.length; i++) { | |
var q = nv[i].split('='); | |
params[q[0]] = q[1]; | |
} | |
return params; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<link rel="stylesheet" href="../css/style.css"> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> | |
</head> | |
<body> | |
<header></header> | |
<div class="container"> | |
<div class="spinner-overlay"> | |
<i class="fa fa-cog fa-spin"></i> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.preload = function () { | |
this.each(function () { | |
$('<img/>')[0].src = this; | |
}); | |
} | |
Site.home = {} | |
Site.home.init = function () { | |
var t = this; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias "vh_y2" "viewmodel_offset_y 2; echo_y_2; alias toggle_down vh_y1; Notice1" | |
alias "vh_y1" "viewmodel_offset_y 1; echo_y_1; alias toggle_down vh_y0; alias toggle_up vh_y2" | |
alias "vh_y0" "viewmodel_offset_y 0; echo_y_0; alias toggle_down vh_y-1;alias toggle_up vh_y1" | |
alias "vh_y-1" "viewmodel_offset_y -1; echo_y_-1; alias toggle_down vh_y-2;alias toggle_up vh_y0" | |
alias "vh_y-2" "viewmodel_offset_y -2; echo_y_-2; Notice2 ;alias toggle_up vh_y-1" | |
vh_y0 | |
Bind "downarrow" "toggle_down" | |
Bind "uparrow" "toggle_up" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getQueryParams = function () { | |
var params = []; | |
var query = window.location.search; | |
query = query.slice(1, query.length); | |
var nv = query.split('&'); | |
for (var i = 0; i < nv.length; i++) { | |
var q = nv[i].split('='); | |
params[q[0]] = q[1]; | |
} | |
return params; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.body { | |
background: repeating-linear-gradient( | |
45deg, | |
#1d1d1d, | |
#1d1d1d 60px, | |
#111111 60px, | |
#111111 120px | |
); | |
background-color: #1f1f1f; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private ActionResult RedirectToLocal(string returnUrl) | |
{ | |
string hostUrl = Request.Url.Scheme + "://" + Request.UrlReferrer.Authority; | |
if (Url.IsLocalUrl(returnUrl)) | |
{ | |
return Redirect(hostUrl + returnUrl); | |
} | |
return RedirectToAction("Index", "Home"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Web.Helpers; | |
using System.Web.Hosting; | |
using comSite.Models.Products; | |
namespace comSite.DataProviders | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener("DOMContentLoaded", function() { | |
/* | |
========================================== | |
May 13, 2016 | |
github.com/jmahc | |
--- | |
require.js with Bootstrap v4.0.0-alpha.2 | |
Even if you aren't using the tooltips... | |
Get rid of the console error using this! :) | |
--- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace ProjectName.Helpers | |
{ | |
public static class HtmlExtensions | |
{ | |
public static HtmlString DividerHelper(this HtmlHelper helper, string color) | |
{ | |
var builder = new StringBuilder() | |
.Append( | |
helper.Partial( | |
"~/Views/Shared/_Divider.cshtml", // Location of partial view file |
OlderNewer