Skip to content

devenpitaliya/WebDevelopment

Repository files navigation

WebApplication

Questions & temp notes

What's the difference between:

// Working
$(document).on("click", ".add-project-btn", function() {
    console.log($(this).parents(".project-container").);
});

// Not working
$(".add-project-btn").on("click", function() {
    console.log($(this).parents(".project-container").);
});
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
@media screen and (max-width: 600px) {
    ul.topnav li.right,
    ul.topnav li {float: none;}
}

http://www.w3schools.com/css/tryit.asp?filename=trycss_navbar_horizontal_responsive

Why doesn't work with "#navbar-container"?

#navbar-container button {
	border: none;
	background: none;
	display:inline-block;
	margin: 0;
	padding: 5px 10px;
	font-weight: 400;
}
  1. Cross origin: Cross origin requests are only supported for protocol schemes: run your html on a simple server to get rid of this:

    howler.min.js:2 XMLHttpRequest cannot load file:///C:/Users/Jiabei/Desktop/Web/partatap/src/sounds/zig-zag.mp3. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.

    I decided to run it on a local HTTP server hosted by Python, using:

    python -m SimpleHTTPServer
    

If there should be no IDs but only classes, what are we going to do with label and input?

use "$(this)" inside a listener to represent the element to be bounded

    var filters = $(".plan-filter-options .font-subtitle");
    for (var i = 0; i < filters.length; i++) {
        $(filters[i]).on("tap", function() {
            $(this).next().slideToggle(200);
            $(this).siblings(".font-subtitle").next().css("display", "none");
        });
    }

Get selected text

val() only gives the "value" of the option, like value="name"

user["gender"] = $("#register-gender option:selected").text();

// Get a list of checked:
var categories = $("input[name='interests']:checked");

Knowledge Structure of Frontend Development

Book Recommendations for Frontend-ers

The ★ less and easier, the more suitable for starters

CSS

JavaScript

Performance && Practice

CVS

Front-end Developer Interview

References: JacksonTian

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published