This file contains 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
/* | |
* Programming Quiz: Laugh it Off 2 (5-2) | |
*/ | |
function laugh(num) { | |
var ha = ''; | |
for (i = 0; i < num; i++) { | |
ha = ha + 'ha'; | |
} |
This file contains 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 num = 99; | |
var bottle = " bottle "; | |
var bottles = " bottles "; | |
while (num >= 1) { | |
if (num >= 3 ) { // start checking on >=3, lyrics are different in 2 and 1 | |
console.log(num + bottles +"of juice on the wall! " + num + bottles +"of juice! Take one down, pass it around... " + (num - 1) + bottles + "of juice on the wall!"); | |
} else if (num === 2) { | |
console.log(num + bottles+"of juice on the wall! " + num + bottles+"of juice! Take one down, pass it around... " + (num - 1 ) + bottle + "of juice on the wall!"); | |
} else if (num === 1) { | |
console.log(num + bottle +"of juice on the wall! " + num + bottle+"of juice! Take one down, pass it around... 0" + bottles + "of juice on the wall!"); |
This file contains 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 x = 1; | |
while (x <= 20) { | |
if((x % 3) === 0){ | |
console.log("Julia"); | |
}else if((x % 5) === 0){ | |
console.log("James"); | |
}else if(((x % 3) === 0) && ((x % 5) === 0)){ | |
console.log("JuliaJames"); | |
}else { |
This file contains 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
<section class="single-product"> | |
<div class="container"> | |
<div class="product-thumb"> | |
<img src="media/images/woocommerce/product-detail.png" class="attachment-shop_catalog" alt="Product"> | |
</div> | |
<div class="single-product-details"> | |
<h2 class="product_title entry-title">Event tee shirt(Maroon)</h2> | |
<p class="price"> | |
<ins> | |
<span class="woocommerce-Price-amount amount"> |
This file contains 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
<section class="woocommerce-cart cart-content-area"> | |
<div class="container"> | |
<article class="type-page hentry"> | |
<div class="entry-content"> | |
<div class="woocommerce"> | |
<form class="woocommerce-cart-form" action="#" method="post"> | |
<table class="woocommerce-cart-form__contents"> | |
<thead> | |
<tr> | |
<th class="product-remove"></th> |
This file contains 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
<div class="woocommerce columns-4 "> | |
<ul class="products"> | |
<li class="product"> | |
<a href="#" class="woocommerce-LoopProduct-link"> | |
<div class="product-thumb"> | |
<img src="media/images/woocommerce/tshirt-one.png" class="attachment-shop_catalog" alt="Product"> | |
</div> | |
<h2 class="woocommerce-loop-product__title">Event tee shirt(Maroon)</h2> | |
<div class="star-rating"> |
This file contains 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
// Convert All Image to SVG | |
$('img.svg').each(function() { | |
var $img = $(this), | |
imgID = $img.attr('id'), | |
imgClass = $img.attr('class'), | |
imgURL = $img.attr('src'); | |
$.get(imgURL, function(data) { | |
// Get the SVG tag, ignore the rest | |
var $svg = $(data).find('svg'); |
This file contains 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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>jQuery UI Tabs - Open on mouseover</title> | |
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> | |
<link rel="stylesheet" href="/resources/demos/style.css"> | |
<script src="https://code.jquery.com/jquery-1.12.4.js"></script> | |
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> |
This file contains 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
styles: [{"featureType":"all","elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#000000"},{"lightness":40}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#000000"},{"lightness":16}]},{"featureType":"all","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":17},{"weight":1.2}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":21}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":29},{"weight":0.2}]},{"fea |
This file contains 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 code:: | |
<div class="panel-group" id="accordion"> | |
<div class="panel panel-default"> | |
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapsetwo"> | |
<div class="panel-title"> | |
<p></p> | |
</div> | |
</a> | |
<div id="collapsetwo" class="panel-collapse collapse"> | |
<div class="panel-body"> |
NewerOlder