Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8868989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:22:55+00:00 2026-06-14T17:22:55+00:00

Kundan Singh Chouhan helped me to solve this problem a few weeks ago: Call

  • 0

“Kundan Singh Chouhan” helped me to solve this problem a few weeks ago:
Call a CSS file by Jquery .append(), and delete this by second click on the same element

But the problem became more complex. I want to use our ancient writing, the “Rovás” on the site:
Jakabszallas.hu

I can’t use a simple font-face CSS, because there are letters (dzs, cs, gy, ty) which have one simple character in the Rovás writing. That’s why the creators of the “Rovás” font families not putted the characters on the keyboard where they belonging. So, the rovás “á” letter is not under the latin “á” character on my keyboard.

That’s why they created this javascript:
Rovásmag

Right now I using this on my site and I triggering with the same link on the site (top right corner), when I used with font-face in the past.

So, there is this link:

<li class="skip-link-rovas"><a class="assistive-text" href="#" accesskey="7">Rovás</a></li>

There is this javascript on the bottom of my site:

<script src="http://jakabszallas.hu/wp-content/themes/jakabszallasv2/js/rovasmag.js" type="text/javascript"></script><!-- Rovas -->
<script src="http://jakabszallas.hu/wp-content/themes/jakabszallasv2/js/scripts.js" type="text/javascript"></script><!-- Additional scripts -->

In the scripts.js this two jquery scripts:

// Jquery CSS switcher (Rovás)
$(document).ready(function() {
    $(".skip-link-rovas").click(function(){
        if($(this).find("link").length <= 0)
            $(this).append('<link rel="stylesheet" type="text/css" media="all" href="http://jakabszallas.hu/wp-content/themes/jakabszallasv2/css/rovas.css" />');
        else
            $(this).find("link").remove();
    });
});

$(document).ready(function() {
    $('.skip-link-rovas').click(function(){
        rovasmag_atro();
    });
});

“rovasmag_atro();” is calling the “rovasmag.js” javascript, which is changing every font to “Rovás” writing and also changing the writing direction from right to left. This javascript is the only way to change the “dzs, cs, gy, ty” letters to the proper character in the “Rovás” font.

I’m not javascript programmer at all!
My question is:
Is it possible to integrate somehow the “rovasmag_atro()” into the upper javascript, which is call the css file and on the second click, it’s turning off?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T17:22:56+00:00Added an answer on June 14, 2026 at 5:22 pm

    It does not appear that you can simply turn if off because you would need to reverse all those character translations. Instead, as the page loads, you can copy the entire page contents to a JS variable. Then add the CSS and start the font/character translation. Then to remove the font translation, simply replace the entire page contents with the Javascript variable. I’ve created a jsFiddle with this technique :

    http://jsfiddle.net/DF2w9/5/

    <a class="remove" href="#">remove</a>
    
    <script type="text/JavaScript">
    var normalHTML = '';
    $(document).ready(function() {
        normalHTML = $('html').html();
        $('html').append('<link rel="stylesheet" type="text/css" media="all" href="http://jakabszallas.hu/wp-content/themes/jakabszallasv2/css/rovas.css" />');
        rovasmag_atro();
    
        $("a.remove").click(function() {
            $('html').html(normalHTML);
        });
    });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am struggeling with a Jquery post call that returns SyntaxError unexpected token if
I have a problem with a method which i want to use to read
I have a simple signup form with the following jQuery validation code: $(document).ready(function(){ $(#registerForm).validate({
_OBJC_CLASS_$_CustomerNameViewController, referenced from: objc-class-ref-to-CustomerNameViewController in Kunden.o I am getting this error even i have
I successfully created the Database and inserted a row however I cannot Query it
How do I format my string in GWT? I made a method Formatter format
How can I select the Value where id == id && key == key
I have a simple ASP.NET MVC 3 site, from my Controller out of the
I have a HTML page in which I have a button; pressing that button
I am very new with ios dev and I have been struggling with almost

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.