Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use libjs-jquery debian package in a project?

I wish to use libjs-jquery package instead of attaching jquery file in my project.

After installing: sudo apt-get install libjs-jquery

how can I use it in my project?

Note: my project is sever side implemented in Python and it has web page access for panel. I wish to use libjs-jquery in that web page panel.

like image 853
mortymacs Avatar asked Nov 02 '14 21:11

mortymacs


1 Answers

The libjs-jquery package contains /usr/share/doc/libjs-jquery/README.Debian which explains how to use the provided jQuery in your web site. Basically, all it takes is

<script language="javascript" type="text/javascript"
src="/javascript/jquery/jquery.js"></script>

in your HTML header.

Alternatively, you can symlink /usr/share/javascript/jquery/jquery.js to the appropriate place in your own project.

In all instances jquery.js can be replaced with jquery.min.js or jquery.lite.js depending on your requirements.

like image 115
Stephen Kitt Avatar answered Oct 06 '22 01:10

Stephen Kitt