2 <script src
="<?php echo $livesitePath ?>js/jquery.min.js"></script
>
3 <script src
="<?php echo $livesitePath ?>js/bootstrap.min.js"></script
>
4 <script src
="<?php echo $livesitePath ?>js/jquery.validate.min.js"></script
>
5 <script src
="<?php echo $livesitePath ?>js/script.js"></script
>
6 <script src
="<?php echo $livesitePath ?>js/effect.js"></script
>
7 <script src
="<?php echo $livesitePath ?>js/dropdown-enhancement.js"></script
>
10 $
(document
).ready(function(){
11 $
('input[type="checkbox"]').change(function(){
13 if($
(this
).is(":checked")){
21 data
: { toggle
: bool }
23 .done(function( msg
) {
30 $
(document
).ready(function(){
33 $
('#emoji li img').click(function(){
34 var emoji
= $
(this
).data("alt");
36 $
('textarea[name="msg"]').val(function(_
,val
){
41 $
('.destroy').click(function(){
46 $
('#deleteM').click(function(){
47 $
(parentLink
).closest('.deleteForm').submit();
52 if(basename($_SERVER['PHP_SELF'])=='message.php'){
54 if($messages[1]=="FALSE"){
55 if(isset($_GET['d'])){ ?
>
56 <script type
="text/javascript">
57 $
(document
).ready(function(){
61 $
('#pageMessage2, #pageMessage').scroll(function(){
63 if($
('#pageMessage2, #pageMessage').scrollTop() == 0 && !content
&& !scrollT
){
70 var firstMsg
= $
('.panel').first();
71 var message
= $
.ajax({
75 data
: { load
: load
, data
: <?php
echo $_GET['d'] ?
>}
78 message
.done(function(data
) {
80 $
('#pageMessage2, #pageMessage').prepend(data
.array);
81 $
('#pageMessage2, #pageMessage').scrollTop(firstMsg
.offset().top
);
82 if(data
.breaker || data
.start
==0){
83 $
('#pageMessage2, #pageMessage').prepend("<div id=\"status\" class=\"col-md-12 alert alert-warning\" style=\"text-align:center;\"><small>End of Conversation</small></div>");
90 $
(document
).ajaxSend(function() {
91 $
('#pageMessage2, #pageMessage').prepend("<div id=\"load\" class=\"col-md-12 alert alert-info loadIng\" style=\"text-align:center;\"><small>Loading..</small></div>");
92 }).ajaxComplete(function() {