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
/** | |
* Add this at the end of jQueryClone.js file to export the $ function | |
* Check if we are using modules and export the $ function else attach it to the window object | |
*/ | |
if (typeof exports != "undefined") { | |
exports.$ = $; | |
} else { | |
window.$ = $ | |
} |
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
// Login in your terminal in the root directory. | |
npm login | |
//Now we are ready to publish our library. | |
npm publish | |
//Now install in any project for use. | |
npm i customised-jquery-obuae --save | |
//USAGE |
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
{ | |
"name": "customised-jquery-obuae", | |
"version": "1.0.0", | |
"description": "This is a customised jquery library with extra features for manipulating the DOM elements", | |
"main": "jQueryClone.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"repository": { | |
"type": "git", |
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
/** | |
* The $ function | |
* It takes in a param which can either be a string like class selector .active or | |
* an element selector like div | |
* @param param | |
* @returns ElementCollection | |
* | |
*/ | |
function $(param) { |
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> | |
<head> | |
<title>JQSlider</title> | |
<link rel="stylesheet" href="css/style.css"> | |
<!-- |
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
/** | |
* Select the document then call the ready function which then checks if DOM content is loaded, | |
* then executes the callback. | |
*/ | |
$(document) | |
.ready(function () { | |
$(document) | |
.on("click", ".next", function () { |
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
/* Set the background and color of text on the body */ | |
body { | |
font-family: "Arial",sans-serif; | |
font-size: 14px; | |
color: #fff; | |
background: #333; | |
} | |
/* Color all the anchor tags white and remove default text-decoration of underlining */ | |
a { |
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
<?php | |
namespace App\Http\Controllers\Auth; | |
use App\Http\Controllers\Controller; | |
use App\Providers\RouteServiceProvider; | |
use App\User; | |
use App\Profile; | |
use Illuminate\Foundation\Auth\RegistersUsers; | |
use Illuminate\Support\Facades\Hash; |
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
<?php | |
/** | |
* User | |
* | |
* @author Obua Emmanuel <eobua6882@gmail.com> | |
* @copyright 2021 Obua Emmanuel | |
* @link http://emmanuelobua.me | |
* @version 1.0.0 | |
* |
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
@extends('layouts.app') | |
@section('content') | |
<div class="container"> | |
<div class="row justify-content-center"> | |
<div class="col-md-8"> | |
<div class="card"> | |
<div class="card-header">{{ __('Dashboard') }}</div> |