Skip to content

Added support for 3-symbol hex strings.#50

Open
MadCat9k wants to merge 2 commits intobennyguitar:masterfrom
MadCat9k:hexFix
Open

Added support for 3-symbol hex strings.#50
MadCat9k wants to merge 2 commits intobennyguitar:masterfrom
MadCat9k:hexFix

Conversation

@MadCat9k
Copy link
Copy Markdown
Contributor

No description provided.

@bennyguitar
Copy link
Copy Markdown
Owner

Thanks for the PR, would you mind making this change on the swift side too and then I'll merge it in?

@MadCat9k
Copy link
Copy Markdown
Contributor Author

I made some changes, but I am not 100% sure in the result. I will try to add some tests later.


switch (hexString.length) {
case 3:
base = 8;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

function hasAnyCalc() {
return hasCalc("-moz-") || hasCalc("-ms-") || hasCalc("-o-") || hasCalc("-webkit-") || hasCalc();
}

  function calcHeight() {
    return window.innerHeight - {{#newScript}}190{{/newScript}}{{^newScript}}303{{/newScript}};
  }

  editor.setTheme("ace/theme/dawn");
  editor.getSession().setMode("ace/mode/javascript");

  {{#readOnly}}editor.setReadOnly(true);{{/readOnly}}
  {{^readOnly}}
  // TODO: Submit using AJAX
  $('#submit_code').click(function () {
    $('#source').val(editor.getValue());
    $('#code_form').submit();
  });
  {{/readOnly}}

  // Older browser JavaScript work-around for #136
  if (!hasAnyCalc()) {
    $("#editor").height(calcHeight());
    $(document).on("resize", function () {
      $("#editor").height(calcHeight);
    });
  }
});

})();
</script>

kincaid/

request_id=1&ios_base_sdk=9.3&platform=iPhone&app_name=26.iphone.com.tigervpns.hideme.ios.HideMe&u_so=p&js=afma-sdk-i-v7.6.0&ios_app_volume=1&ios_output_volume=0.344048&eid=318475625%2C46621136&ms=JWrkcPUl_IpumByXcxOud6yFysZvvAIBNHUclooCFb5hqW2yBQz5sjBIau1rDDJOWEQ37NGzhXiHutUuPswb4oQ-OwqwF3G-0WQwYIh2204cAo-

User-agent: *
Disallow: /admin/
Disallow: /mod/
Disallow: /flag/
Disallow: /vote/
Disallow: /auth/
Disallow: /github/
Disallow: /css/
Disallow: /dist/
Disallow: /fonts/
Disallow: /js/
Disallow: /redist/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants