Commit 7638a00ce1e2efb210209973246ba5fe24d727b4
- Diff rendering mode:
- inline
- side by side
server/wsgi/pageEditor.js
(1 / 2)
  | |||
352 | 352 | if ($('#loc-select').val() == '' || $('#lang-select').val() == '' || $('#auth-select').val() == '' || ($('#your-check').attr('checked') == undefined && $('#our-check').attr('checked') == undefined )) { | |
353 | 353 | alert("please furnish all the details"); | |
354 | 354 | } else { | |
355 | if(document.getElementById('your-check').checked) | ||
355 | if($('#your-check').attr('checked') != undefined) | ||
356 | 356 | { | |
357 | 357 | localStorage.myContent = buildDataString(); | |
358 | 358 | window.location.href = "http://dev.a11y.in/test.html"; | |
359 | window.location.reload(); | ||
360 | 359 | } | |
361 | 360 | else{ | |
362 | 361 | $(function(){ |
wsgi/scrape.wsgi
(5 / 2)
  | |||
2 | 2 | import pymongo | |
3 | 3 | from urllib import unquote_plus | |
4 | 4 | import random | |
5 | |||
5 | from lxml import etree | ||
6 | 6 | def application(environ, start_response): | |
7 | 7 | #set the headers | |
8 | 8 | status = '200 OK' | |
… | … | ||
43 | 43 | else: | |
44 | 44 | temp['about'] = element.attrib['about'] | |
45 | 45 | temp['xpath'] = element.attrib['xpath'] | |
46 | temp['data'] = element.text | ||
46 | data ='' | ||
47 | for i in element.iterdescendants(): | ||
48 | data += etree.tostring(i) | ||
49 | temp['data'] = data | ||
47 | 50 | temp['blog'] = url | |
48 | 51 | temp['ren_id'] = ren_id | |
49 | 52 | store_list.append(temp) |