fork download
  1. recount = function () {
  2. var posts = 700;
  3. var abuPosts = document.getElementsByClassName('post-wrapper');
  4. for (i = 0; i = abuPosts.length; i++) {
  5. var number = abuPosts[i].id;
  6. number = number.substr(5);
  7. combinationCheck = function () {
  8. switch (number.slice( - 2)) {
  9. case '11' :
  10. if (abuPosts[i+1] > abuPosts.length) {
  11. return 0;
  12. }
  13. else {
  14. if (//вот здесь мне нужен следующий номер слдующего элемента))
  15. {
  16.  
  17. }
  18. }
  19. }
  20. }
  21. }
Runtime error #stdin #stdout #stderr 0s 107072KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
prog.js:18:5 SyntaxError: missing ) after condition:
prog.js:18:5      }
prog.js:18:5 .....^