JQuery svg pan zoom for svg drag and zoom
jquery-svg-pan-zoom.js download and documentation here https://github.com/DanielHoffmann/jquery-svg-pan-zoom
Principle: control the viewbox property of svg
viewbox is an attribute of SVG image. It defines the visible area of SVG, which is defined by four numbers: abscissa X, ordinate Y, Width, ...
Posted by ganlal on Fri, 01 Nov 2019 21:58:25 -0700
JavaScript key highlight, browser like (Ctrl+F) search
Many times in the project development, the front-end search function text highlighting problem. Every time we encounter keywords across elements, because of the limited front-end knowledge, we can make do with regular, poor experience and high development difficulty.
——Today, I found that this plug-in has solved the problem perfectl ...
Posted by blueovaltv on Fri, 01 Nov 2019 21:16:38 -0700
Application of user password encryption and interceptor
Front-end code
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script src="${pageContext.request.contextPath}/js/jquery.js"></script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title&g ...
Posted by programmer79 on Fri, 01 Nov 2019 11:09:42 -0700
Detailed explanation of jQuery source code analysis ready event
The ready event is to execute a function (excluding pictures, css, etc.) after the DOM document tree is loaded, so it is triggered earlier than the load event. Usage:
$(document).ready(fun); fun is a function that executes the anonymous function when the DOM tree is loaded
There is a shorthand for ready, which can be directly passed in $(fun) ...
Posted by happyme on Thu, 31 Oct 2019 19:26:52 -0700
Some problems in using bootstrap select
Here is a summary of some problems encountered during the last use of bootstrap select. As for the specific usage of bootstrap select, I will not introduce it here. There are many examples on the Internet.
Address:
Official plug-in address: https://developer.snapappointments.com/bootstrap-select/
GitHub address: h ...
Posted by john0117 on Thu, 31 Oct 2019 18:59:29 -0700
Use the front and back end to separate and search the database data of the book management system
The user login page displays the renderings:
The previous js+JQuery code shows:
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<script src="jquery.js"></script>
<style>
body{
background-image: url(t01f6feb7e1e ...
Posted by Nuser on Wed, 30 Oct 2019 09:16:46 -0700
Develop WebSocket online chat communication system, use TP and Swoole
To use Swoole in ThinkPHP, you need to install the think Swoole composer package, provided that the system has installed the Swoole PECL extension.
To install think swoole, execute the composer command in the project root directory of tp5:
composer require topthink/think-swoole
If you don't say much, go straight to the code:
To create a WebSock ...
Posted by invincible_virus on Mon, 28 Oct 2019 07:38:07 -0700
[JS pocket book] Chapter 9: using JS to operate HTML elements
By valentinogagliardiTranslator: front-end witSource: github
In recent days, I have no way to send 200 + cash to my public account. The way of participation is as follows:https://mp.weixin.qq.com/s/PT...
Document object model (DOM)
JS there are many places for us to Tucao, but not so bad. As a script language running in browser, it is very us ...
Posted by sanchan on Tue, 22 Oct 2019 18:19:26 -0700
jQuery source code analysis data operation module class style operation details
There are four parts in jQuery's attribute operation module. The third part is the class style operation part, which is used to modify the class characteristics of DOM elements. For class style operation, jQuery does not define static methods, but only instance methods, as follows:
addClass(value); add one or more class styles for each element ...
Posted by don117 on Tue, 22 Oct 2019 16:44:17 -0700
html+js implementation of markdown editor
The official website of markdown's Editor.md plug-in: https://pandao.github.io/edit...
One: Download Editor.md
1: download directly on the official website
github download address: https://github.com/pandao/edi...
2: Download with npm
npm install editor.md
The downloaded file structure is as follows:2. Simple use of Editor.md
1: premise:
Introd ...
Posted by brucensal on Tue, 22 Oct 2019 07:43:29 -0700