Giter VIP home page Giter VIP logo

stefplaysound's Introduction

StefPlaySound.JS

Apa Itu StefPlaySound.js merupakan sebuah Plugin Jquery yang untuk mendengarkan audio secara langsung sesuai pilihan user.



Plugin ini di buat oleh Stefanus Prasetyo Nugroho.

Instalasi

Untuk bisa memakai plugin ini anda membutuhkan jquery terlebih dahulu bebas versi berapa aja, dan anda bisa menginstall jQueryStefPlaySound.js lewat NPM jika komputer anda sudah terpasang node.js dengan cara ketik di command line :

npm install jQueryStefPlaySound.js

Atau anda juga bisa menggunakan seperti ini menggunakan tag script biasa, contoh:

<script
  src="http://code.jquery.com/jquery-3.3.1.min.js"
  integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
  crossorigin="anonymous"></script>

<script src="asset/js/jQueryStefPlaySound.js"></script>

Anda Bisa mendapatkan jQueryStefPlaySound.JS berikut:
https://raw.githubusercontent.com/stefanuspn/StefPlaySound/master/asset/js/jQueryStefPlaySound.js

Cara Menggunakan

Siapkan terlebih dahulu file-file yang sudah disebutkan diatas yaitu jquery-3.2.1.min.js dan jQueryStefPlaySound.js :

<script>
  src="http://code.jquery.com/jquery-3.3.1.min.js"
  integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
  crossorigin="anonymous"></script>

<script src="asset/js/jQueryStefPlaySound.js"></script>

<script>
$(document).ready(function(){
   var sounds = new  StefPlaySound("alone.mp3");
  // Memanggil metode untuk sounds
    sounds.show();
    //sounds.stopSound(); // Memanggil metode untuk mematikan audio
});

</script>

stefplaysound's People

Contributors

stefanuspn avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.