Skip to content

Instantly share code, notes, and snippets.

View alvinchesaro's full-sized avatar

Alvin Chesaro alvinchesaro

View GitHub Profile
@alvinchesaro
alvinchesaro / ActiveLinkTagHelper.cs
Created December 17, 2019 16:11 — forked from oguzhaneren/ActiveLinkTagHelper.cs
Asp.net Core TagHelper for adding 'active' class to current active link
[HtmlTargetElement(Attributes = ControllersAttributeName)]
[HtmlTargetElement(Attributes = ActionsAttributeName)]
[HtmlTargetElement(Attributes = RouteAttributeName)]
[HtmlTargetElement(Attributes = ClassAttributeName)]
public class ActiveLinkTagHelper : TagHelper
{
private const string ActionsAttributeName = "asp-active-actions";
private const string ControllersAttributeName = "asp-active-controllers";
private const string ClassAttributeName = "asp-active-class";
private const string RouteAttributeName = "asp-active-route";
@alvinchesaro
alvinchesaro / ActiveRouteTagHelper.cs
Created December 17, 2019 16:11 — forked from is-consulting/ActiveRouteTagHelper.cs
Asp.net Core 2.0 TagHelper for adding 'active' class to current active link. Compatible to lowercase routing, LowercaseUrls
[HtmlTargetElement(Attributes = ControllersAttributeName)]
[HtmlTargetElement(Attributes = ActionsAttributeName)]
[HtmlTargetElement(Attributes = RouteAttributeName)]
[HtmlTargetElement(Attributes = ClassAttributeName)]
public class ActiveRouteTagHelper : TagHelper
{
private const string ActionsAttributeName = "asp-active-actions";
private const string ControllersAttributeName = "asp-active-controllers";
private const string ClassAttributeName = "asp-active-class";
private const string RouteAttributeName = "asp-active-route";
@alvinchesaro
alvinchesaro / 1. Neto.md
Created September 4, 2019 10:43 — forked from philcon93/1. Neto.md
Product Page Image and Alt Images to Slick and Fancybox with alt images

Product Page Image and Alt Images to Slick and Fancybox with alt images

	$('.slider-for').slick({
	  slidesToShow: 1,
	  slidesToScroll: 1,
	  arrows: false,
	  asNavFor: '.slider-nav'
	});
	$('.slider-nav').slick({
if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed) {
System.Deployment.Application.ApplicationDeployment cd =
System.Deployment.Application.ApplicationDeployment.CurrentDeployment;
string publishVersion = cd.CurrentVersion;
// show publish version in title or About box...
}
@alvinchesaro
alvinchesaro / index.html
Created October 15, 2018 20:30
Portfolio Filter Gallery
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="portfolioFilter clearfix">
<a href="#" data-filter="*" class="current">All Categories</a>
<a href="#" data-filter=".webTemplates">Web Templates</a>
<a href="#" data-filter=".logos">Logos</a>
<a href="#" data-filter=".drawings">Drawings</a>
<a href="#" data-filter=".ui">UI Elements</a>
</div>