alteracoes_erros.txt~ 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. 2018/11/17
  2. Usei marcador "//leo1"
  3. /home/leo/projetos/iMA/ima/ivprog_html5/2018/manual_ima/www/ivprogh/i18n/i18n-engine.js
  4. + fuction i18n(identifier): no Vivaldi resulta erro (e NAO carrega)
  5. at i18n (i18n-engine.js:11)
  6. Uncaught TypeError: Cannot read property 'ERROR' of undefined
  7. Solucao: acrescentei 'try/catch'
  8. try { // Vivaldi: error 'Uncaught TypeError: Cannot read property 'ERROR' of undefined
  9. if (StringTypes.ERROR === type) ...
  10. } catch (error) {
  11. //DEBUG alert('./ivprogh/i18n/i18n-engine.js: i18n('+identifier+'): error ' + error);
  12. }
  13. /home/leo/projetos/iMA/ima/ivprog_html5/2018/manual_ima/www/ivprogh/build/ivprog.bundle.js:
  14. + linha 49198/50226: var lang = localStorage.getItem(this.lsKey);
  15. Erro: SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
  16. Rever: essa funcao esta sendo chamada MUITAS vezes!
  17. LanguageService.prototype.getLang = function (): linha "var lang = localStorage.getItem(this.lsKey);"
  18. Troque por:
  19. var lang;
  20. try { lang = localStorage.getItem(this.lsKey); } catch (error) {
  21. //DEBUG alert('./ivprogh/build/ivprog.bundle.js: LanguageService.prototype.getLang(): error ' + error);
  22. /TODO rever aqui, pois ao carregar iVProg esse metodo esta sendo chamado MUITAS vezes!
  23. return "pt"; //TODO "pt_BR" "en_US"
  24. }
  25. /home/leo/projetos/iMA/ima/ivprog_html5/2018/manual_ima/www/ivprogh/js/iassign-integration-functions.js
  26. + linha 20/340 (antes de alterar, depois 341)
  27. Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
  28. at file:///home/leo/projetos/iMA/ima/ivprog_html5/2018/manual_ima/www/ivprogh/js/iassign-integration-functions.js:20:1
  29. Troqui: localStorage.setItem('ivprog.lang', iLMparameters.lang);
  30. Por:
  31. try { localStorage.setItem('ivprog.lang', iLMparameters.lang); }
  32. catch (error) { } //leo1 If NOT in iAssign 'localStorage' is undefined! Do not try: localStorage.setItem('ivprog.lang', 'pt');
  33. ---
  34. Botao 'submit'
  35. /home/leo/projetos/iMA/ima/ivprog_html5/2018/manual_ima/www/ivprogh/js/iassign-integration-functions.js
  36. + function getEvaluation (): if (iLMparameters.iLM_PARAM_SendAnswer == 'false') runCodeAssessment();
  37. /home/leo/projetos/iMA/ima/ivprog_html5/2018/manual_ima/www/ivprogh/build/ivprog.bundle.js
  38. + 19265/50232:
  39. window.runCodeAssessment = runCodeAssessment;
  40. + 19587/50232:
  41. function runCodeAssessment(): ...
  42. ---
  43. Manual
  44. Eliminar recurso de: https://www.w3schools.com/w3css/4/w3.css
  45. Usar origem: https://pastebin.com/raw/VLAn1rV0
  46. Eliminar recurso de: https://www.w3schools.com/lib/w3-theme-teal.css
  47. Eliminar: https://fonts.googleapis.com/css?family=Roboto
  48. Eliminar: https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css
  49. index.html
  50. + 'myAccordion' -> 'manuItem'
  51. + "onclick="carregar('..." -> "onclick="carregar('menu_...": 24 mudancas
  52. Alterados nomes de quase todos os HTML.
  53. Alterados inicio de quase todos os HTML.
  54. Alteradas explicacoes em quase todos os HTML.
  55. w3.css
  56. .w3-button:hover: color:#000 -> color:#fff e background-color:#ccc -> background-color:#001A66
  57. .w3-show: acresc ";color:#001065;background-color:#eee" em "{display:block!important;color:#001065;background-color:#eee}"
  58. .w3-item{padding:4px;display:block;border:1pt;border-bottom:1px solid #001A66;width:100%}: novo!