- el: can be string | HTMLElement, but never body or html
- Vue Global Components will not work in some html structure
- template: you can configure the directive prefix to start with data-
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
(function ($) { | |
$.fn.EventHandler = function (options) { | |
var defaults = $.extend({}, options), $element, $eventsArray = [], $activityArray = []; | |
$element = $(this); | |
if (options.onEvent.length != 0) { | |
if(options.startEvent){ |
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 o = { | |
"firstName": "John", | |
"lastName" : "doe", | |
"age" : 26, | |
"arr":[1,2,3], | |
"address" : { | |
"streetAddress": "naist street", | |
"city" : "Nara", | |
"postalCode" : "630-0192" | |
}, |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public static class Pager | |
{ | |
/// <summary> | |
/// Pages the specified items. |
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
ko.bindingHandlers.kocalender = { | |
init: function (element, valueAccessor, allBindingsAccessor, viewModel) { | |
var value = valueAccessor(), | |
instanceOptions = $.extend({ | |
previousYearSelector: ".previousyear", | |
nextYearSelector: ".nextyear", | |
previousMonthSelector: ".previousmonth", | |
nextMonthSelector: ".nextmonth", | |
eventTemplate: '<div data-id="{{id}}" class="event">{{name}}</div>', | |
dateCallbacks: [ |
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
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Mvc.Infrastructure; | |
using Microsoft.AspNetCore.Mvc.Internal; | |
using Microsoft.AspNetCore.Routing; | |
using Microsoft.Extensions.DependencyInjection; | |
using Newtonsoft.Json; | |
using System; | |
using System.Linq; | |
using System.Threading.Tasks; |
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
type TemplateParameterType = { [key: string]: string }; | |
/** | |
* If the template from @member CompiledRouteType.template | |
* is an object, this type will be extended with all the | |
* members of that object. | |
*/ | |
type TemplateMatchResponseType = { | |
params: TemplateParameterType, | |
/** |
- https://www.indiehackers.com/forum/resources-to-help-you-improve-your-ui-design-134dbd3367
- https://www.indiehackers.com/forum/how-do-you-make-apps-look-polished-with-no-design-background-cc1183aad2?utm_source=Indie+Hackers+Newsletter&utm_campaign=indie-hackers-newsletter-20180314&utm_medium=email
- https://www.julian.com/learn/growth/intro
- https://www.thinkwithgoogle.com/marketing-resources/experience-design/speed-is-key-optimize-your-mobile-experience/
- https://developers.google.com/web/fundamentals/design-and-ux/principles/
- https://lawsofux.com/
- https://twitter.com/i/moments/880688233641848832
- http://nelucebotari.webflow.io/#contact
- https://codeburst.io/5-javascript-style-guides-including-airbnb-github-google-88cbc6b2b7aa
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
if (!Element.prototype.fullScreen) { | |
var full_screen = function (element) { | |
var self = this; | |
this.change = null; | |
var isFullScreen = this.isFullScreen = function () { | |
return (document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen || document.msFullscreenElement) ? true : false; | |
}; | |
this.requestFullScreen = function () { //https://stackoverflow.com/a/33768712 | |
// Supports most browsers and their versions. |
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
font-size:calc(12px + 1.5vw); | |
/* | |
* How to set min-font-size in CSS | |
* https://stackoverflow.com/a/37836926 | |
* This is because the static part of calc() defines the minimum. | |
* Even though the dynamic part might shrink to something near 0. | |
*/ |
OlderNewer