// jQuery
$(document).ready(function() {
// code
})
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
| var x = function(){}; |
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
| const eventMap = { | |
| onClick: 'click', | |
| onChange: 'change', | |
| onKeyDown: 'keydown', | |
| onKeyUp: 'keyup' | |
| } | |
| const ROOT_KEY = '__rektroot_'; | |
| const instancesByRootID = {}; | |
| let ROOT_ID = 1; |
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> | |
| <head> | |
| <title>Box Shadow</title> | |
| <style> | |
| .box { | |
| height: 150px; | |
| width: 300px; | |
| margin: 20px; |
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
| <html> | |
| <head> | |
| <title>Random User!</title> | |
| <link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css"> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h1 class="text-center">Random User!</h1> | |
| </div> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.0/angular.min.js"></script> |
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
| /** | |
| * /app.js | |
| */ | |
| var app = angular.module("RandomApp", []); |
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
| // /userFactory.js | |
| app.factory("UserF", function($http) { | |
| var UserF = {}; | |
| UserF.getUsers = function(){ | |
| return $http({ | |
| method: 'GET', | |
| url: 'https://www.reqres.in/api/users', | |
| }) | |
| }; | |
| return UserF; |
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
| // /userController.js | |
| app.controller("userController", function($scope, UserF){ | |
| $scope.users = []; | |
| UserF.getUsers() | |
| .then(function(res) { | |
| $scope.users = res.data.data; | |
| }) | |
| }); |
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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" | |
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Random User!</title> | |
| <link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css"> | |
| </head> |
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
Show hidden characters
| // .eslintrc.json | |
| { | |
| "extends": [ | |
| "airbnb/legacy" | |
| ], | |
| "env": { | |
| "browser": true | |
| } | |
| } |
OlderNewer