/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
page << "if($('some_div').visible()){" page['some_div'].replace :partial => 'some_partial' page << '}else{' page.insert_html :after, 'something_else', :partial => 'header' page << '}'