javascript - how to move page sections (paragraphs) on web page using mouse? -


i have resume displayed on web page. contains sections (paragraphs) education, experience, projects etc, here client wants move these sections on page dragging mouse on paragraphs(sections) of web page. how can implement feature. using ruby on rails framework. there rails gem or jquery framework achieving task?

yes, jquery ui sortable, try it: https://jqueryui.com/sortable/

if have this:

<div id="sections">   <p>...</p>   <p>...</p>   <p>...</p> </div> 

then need install sortable and:

$( "#sections" ).sortable(); 

you can find full api documentation here: http://api.jqueryui.com/sortable/

and here's jquery ui rails: https://github.com/jquery-ui-rails/jquery-ui-rails


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -