Baidu single point mobile function

I haven't written CSDN blog for a long time. Today I wrote two at a time. This is the third one. I can't stop at all. Haha, the last one let us know how to call Baidu map to locate. This time, I'll tell you how to call Baidu single point mobile function. The so-called single point mobile function, in fact, is that Baid ...

Posted by eliezer on Sun, 03 May 2020 01:30:04 -0700

Mobile sliding event method

Today, when using jquery.fullpage.js, I found that the mobile debugging does not support sliding events, so I wrote a sliding event. As follows, when using this plug-in, I only need to bind a sliding event to the window, and I don't need to add a method. Since I used it for the first time, I haven't seen the specific information of his JS, but ...

Posted by jamie85 on Sun, 03 May 2020 00:49:08 -0700

Zepto source 5 assets module

;(function($){ var cache = [], timeout $.fn.remove = function(){ return this.each(function(){ if(this.parentNode){ if(this.tagName === 'IMG'){ cache.push(this) this.src = 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=' if (timeout) clearTimeout(timeout) timeout = setTi ...

Posted by buroy on Sat, 02 May 2020 23:57:24 -0700

Android immersive status bar - font color and background color modification implementation and compatibility

Immersive status bar research is to extend the layout content to the status bar, so that the status bar can be covered or hidden on the layout. Realization First of all, to modify the android version of the status bar at least above 4.4, and in 4.4, it is not allowed to make the status bar transparent, only to achieve a translucent shadow ...

Posted by ruddyu78 on Sat, 02 May 2020 20:52:59 -0700

Eye movement effect of ofo home page based on HTML5 gyroscope

When using the ofo Mini yellow car App recently, I found that the previous bottom scan turned into a little yellow person with moving eyes. I think it's quite interesting. Here, I'll use HTML5 to imitate the effect. ofo eye effect Effect analysis It is not difficult to see from the effect that it is realized by using gyroscope events. Let's ta ...

Posted by Lijoyx on Sat, 02 May 2020 09:29:12 -0700

Use of chimee component in web video playing scheme

1. Overview In view of the fact that H5 video is quite different (compatible) in the Web ecological environment, this paper mainly introduces the usage of developing chimee component with qiwutuan to play video. chimee component address: http://chimee.org/docs/index.html   2. Features of chimee components Chimee supports MP4, M3U8, FLV an ...

Posted by morpheuz on Sat, 02 May 2020 09:14:05 -0700

Network state judgment of android (wifi and mobile network data)

Sometimes we need to monitor the network status changes to remind users of the network status in time. Therefore, we need to monitor more network changes. We don't need to talk about much nonsense. We have listed all network situations in the code. If there is a need, we can prompt according to the actual situation. 1. First of all, it is nece ...

Posted by hermand on Sat, 02 May 2020 04:24:55 -0700

Content provider of Android's four components

1 Introduction As one of the four components of Android, the main function of content provider is to expose private data for other applications. For example, an application needs to read the mobile contacts in the mobile phone for its own use. From this we can know that this is also a way of communication between processes in Android. Content ...

Posted by sava on Sat, 02 May 2020 02:34:36 -0700

Recommend Huploadify to upload pictures or files

In the previous project, uploadify(flash version) was used to realize the image upload function. The upload plug-in browser that relies on flash is not compatible enough, so Huploadify was used to replace uploadify for the following reasons: 1. Does not depend on flash. 2. The library file size is one third of uploadify. 3. Browser c ...

Posted by dr.wong on Fri, 01 May 2020 15:17:11 -0700

Abstract factory pattern -- the creation pattern

Abstract factory pattern Package structure as shown in the figure ps: it's a little abstract to understand   1. Function interface PlayGame.java public interface PlayGame { public void game(); } 2. Two kinds of devices, Computer.java and Phone.java, to realize the function interface public class Computer implements PlayGame{ @Overr ...

Posted by kutchbhi on Fri, 01 May 2020 07:13:42 -0700