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
import { Component } from '@angular/core'; | |
import { SelectComponent } from './select.component'; | |
@Component({ | |
selector: 'my-app', | |
template: ` | |
<h1>Select component demo</h1> | |
<custom-select placeholder-text="Select a country" [items]="countries" (onItemSelected)="setCountrySelection($event, 1)"></custom-select> | |
<h3 *ngIf="selectedCountry">You selected <strong>{{selectedCountry}}</strong></h3> | |
`, |
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
/* | |
Optional adjustments for md-autocomplete in mobile screens | |
*/ | |
#place-autocomplete > md-autocomplete md-input-container { | |
margin-top: -10px; | |
} | |
/*Media query for tablets and above */ |
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
<!DOCTYPE html> | |
<html ng-app="CustomSearchDemo"> | |
<!-- Plunker: http://plnkr.co/edit/8qagvK --> | |
<head> | |
<link rel="stylesheet" href="style.css"/> | |
</head> | |
<body ng-controller="DemoCtrl"> | |
<div> |
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
/** | |
* This script does the following on the "Delay in Payment" section of NREGA | |
* "Approved" = No | |
* "Disapproval reason" = "Funds not available at the paying authority level" | |
* "Select" = check | |
* | |
* Usage: When the website (http://164.100.129.3/netnrega/payorder_delayPayment.aspx) is open, press | |
* Ctrl + Shift + K in Firefox and Ctrl + Shift + J in Chrome, select Console (if it isn't already selected) | |
* and paste the code into the console. Some values may need modification depending on your internet connection | |
* |
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
/* | |
* Include this code in your theme's functions.php | |
*/ | |
add_action( 'woocommerce_checkout_process', 'wc_minimum_cart_count' ); | |
function wc_minimum_cart_count() { | |
global $woocommerce; | |
$minimum = 6; | |
if ( $woocommerce->cart->get_cart_contents_count() < $minimum ) { |