Ajax Poll Script showing insecure XMLHttpRequest

Ajax Poll Script showing insecure XMLHttpRequest

I created a new website which ask user to poll. I am using "Ajax Poll Script" by phpkobo. Site is ok on non-ssl but when I install ssl certificate then its showing Mixed content error. 
I search about it here but didn't got any solution and also tried to fix it myself but failed. I am new to this type of mixed content error.


**Exact Mixed Content Error Showing is:**

Mixed Content: The page at 'https://onlinevoter.org/site/' was  
jquery.js:4 loaded over HTTPS, but requested an insecure  
This content should also be served over HTTPS.

The code of the ajax-poll file is:

The code of jquery.js : https://codepad.co/snippet/mfQaz2OT 

The code of CTClassSys.inc.php file is: https://codepad.co/snippet/7FlnO9hX