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
.validator.addMethod('requiredif', | |
function (value, element, parameters) { | |
var id = '#' + parameters['dependentproperty']; | |
// get the target value (as a string, | |
// as that's what actual value will be) | |
var targetvalue = parameters['targetvalue']; | |
targetvalue = | |
(targetvalue == null ? '' : targetvalue).toString(); | |
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
[DataContract(Name="Client")] | |
public class ClientData | |
{ | |
[DataMember] | |
public int ClientId { get; set; } | |
} |
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
/* | |
Fix for Windows Phone 8 device width bug | |
*/ | |
@-ms-viewport { | |
width: device-width; | |
} |
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
<script type="text/javascript" src="/js/[email protected]()"></script> |
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
public static string BuildNumber(this HtmlHelper html) | |
{ | |
if (html.ViewContext.HttpContext.Cache["_buildnumber_"] == null) | |
{ | |
var version = System.Reflection.Assembly | |
.GetExecutingAssembly().GetName().Version; | |
html.ViewContext.HttpContext.Cache["_buildnumber_"] = | |
version.Build.ToString(); | |
} |
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
[assembly: AssemblyVersion("1.0.*")] | |
[assembly: AssemblyFileVersion("1.0.*")] |
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).ready(function () { | |
var clickableLink = $('a'), | |
container = $('.container'), | |
popup = $('.popup'), | |
body = $('body'), | |
activePosition = 0, | |
popupActive = false, | |
win = $(window); | |
clickableLink.click(function (e) { |
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> | |
<style type="text/css"> | |
.container { | |
width: 100%; | |
color: #ccc; | |
} | |
.large-content { | |
width: 800px; | |
margin: 0px auto; |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Web.UI; | |
namespace Cyberkruz | |
{ | |
/// <summary> |
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
<link rel="stylesheet" href="/css/global/nuvis.less" type="text/css" /> |