INSTALLED_APPS = [Then to urls.py:'django.contrib.admin' 'django.contrib.auth' ...........'helptools' ]
urlpatterns = [ path(And after that into the template:'admin/' admin.site.urls), path('hlptls/' include('helptools.urls' )) ]
Done! You can now use the HelpTools!!DOCTYPE html {% load helpTags %}Loading HelpTools Tags html lang head meta charset meta name content title Document/title {% help_tools_load %}Loading helpTools.js itself, works even without setting up static files ...........
helpTools.js has two parts:
VoiceRecorder
helpTools
let Rec = new VoiceRecorder;Also, you can start and stop recording manually:Create new VoiceRecorder The recordOnclick method will allow you to start and end recording with a single button. Rec.recordOnclick('#identifier' function(blob) {The first argument that the function takes is the button that will activate the recording, The second argument is the function that will be executed at the end of the recording, the result in the Blob format is passed to it });
The record itself after that will be in the variables Rec.recBlob and Rec.recFormStart recording: Rec.startRec()Stop recording: Rec.stopRec()
After this animation, the element will be removed: helpTools.anim('selector' 'delete' ).fade('in' 0.15 );Equivalent to this entry: helpTools.anim('selector' function() { document.querySelector('selector' ).remove(); }).fade('in' 0.15 );After this animation, the element will be hidden: helpTools.anim('selector' 'hide' ).fade('in' 0.15 );
The "pause" and "drop" methods return the time that the stopwatch has counted in the format '{minutes}: {seconds}'Start: timer.start()Pause (You can run it again via timer.start ()): timer.pause()Reset: timer.drop()