Skip to content

Instantly share code, notes, and snippets.

View hidaytrahman's full-sized avatar
:octocat:
In source code

Hidayt Rahman hidaytrahman

:octocat:
In source code
View GitHub Profile
This file has been truncated, but you can view the full file.
[
{
"sc": "NDLS",
"en": "NEW DELHI",
"hi": "नई दिल्ली",
"ps": true,
"ec": "NEW DELHI",
"hc": "नयी दिल्ली",
"se": "DELHI",
"sh": "दिल्ली",
import { NgModule } from "@angular/core";
//Angular Material Components
import { MatCheckboxModule } from "@angular/material";
import { MatButtonModule } from "@angular/material";
import { MatInputModule } from "@angular/material/input";
import { MatAutocompleteModule } from "@angular/material/autocomplete";
import { MatDatepickerModule } from "@angular/material/datepicker";
import { MatFormFieldModule } from "@angular/material/form-field";
import { MatRadioModule } from "@angular/material/radio";
@hidaytrahman
hidaytrahman / SassMeister-output.css
Last active October 14, 2016 12:18
Generated by SassMeister.com.
body {
background: red;
}
ul li, ol li {
float: left;
}
ul li a, ol li a {
font-size: 14px;
}
/*--------------------------------------
Name : HR Unique Class Adder
Functionality : Add unique class on all pages dynamically
Inventor : Md Hidaytullah Rahmani
----------------------------------- */
$(document).ready(function(){
var currentUrl=window.location.pathname;
var pageName = currentUrl.split("/").pop();
@hidaytrahman
hidaytrahman / get_url_using_jquery
Created April 13, 2015 10:23
Do something in particular page using get URL in jquery, Very helpful for unique page
//Md Hidaytullah - Web Designer and UI Developer
$(document).ready(function() {
var myTargetPath = "/website-main/allergy.html";
if(window.location.pathname==myTargetPath)
{
$('.about-us').addClass('allergy-page');
}
//alert(window.location.pathname);
@hidaytrahman
hidaytrahman / fixed-height-All-screen
Created April 13, 2015 10:20
Equal height for all screen. all resolations will same layout, Use it without any terms ;)
/*For Equal height for all screen*/
//Md Hidaytullah - Web Designer and UI Developer
$(window).resize(function() {
$('.home-article').height($(window).height() - 100);
});
$(window).trigger('resize');
@hidaytrahman
hidaytrahman / equal-height-of-biggest-section
Created April 13, 2015 10:18
Equal height for maximum height section for all div where applied this class, very useful for product base layout.
//Md Hidaytullah - Web Designer and UI Developer
$(document).ready(function(){
var biggesthei = 0;
$(".equal-height").each(function(){
if( $(this).height() > biggesthei )
{
biggesthei = $(this).height()
@hidaytrahman
hidaytrahman / make-custom-paralax-effect
Created April 13, 2015 10:10
Custom parallax effect for all modern browser computability with simple code.
//Hidayt Rahman - UI Developer
//Custom Parallax effect
$(window).bind("load resize scroll",function(e) {
var y = $(window).scrollTop();
$(".bg").filter(function() {
return $(this).offset().top < (y + $(window).height()) && $(this).offset().top + $(this).height() > y;
}).css('background-position', '0px ' + parseInt(-y / 9) + 'px');
});
.another-li{width:50% !important}
.another-li ul{width:100%}
.another-li ul li{width:30%}