Sponsored Content
Top Forums Web Development Turning jQuery Code into Vue.js Post 303025667 by Neo on Thursday 8th of November 2018 07:36:53 PM
Old 11-08-2018
Thanks Scott,

On a number of occasions I have had trouble with the order of execution of included Javascript file.

Looking back, it seems obvious that the JS vars from vB global_start should have been before the Vue files. That also seem to explain why I could get it to work as a computed property before.

Thanks for your help sorting this out!

Much appreciated!

Now, I need to figure out why the HTML layout is different between the two conditions (guest vs. logged in user)..... That should be an easy CSS issue (update: confirmed CSS fixed).
 

6 More Discussions You Might Find Interesting

1. What is on Your Mind?

JQuery and CSS Flex Code for Responsive WOL Page

I have just wrote this jQuery to the WOL page, so the table of users on line will not need scrollbars and will instead transform into a responsive table: <script> jQuery(document).ready(function (){ jQuery("#neo-who-flex-tcat"). css({"display":"flex","flex-flow":"row wrap", ... (0 Replies)
Discussion started by: Neo
0 Replies

2. What is on Your Mind?

JQuery and CSS Flex Code for Responsive Forum Home Page

So far, I have completed making the home page more responsive (except for the forum stats at the top and the WOL box at the bottom, they still use scroll bars). xevV3_iZ8-s For full screen use the link below and set your YT resolution to 1080p60 HD https://youtu.be/xevV3_iZ8-s Here is... (1 Reply)
Discussion started by: Neo
1 Replies

3. What is on Your Mind?

JQuery to Add Code Tags to Selected Text

Hey. Someone find or write some jQuery code where we can select text with our mouse and then click or double click the highlighted / selected text and then it will wrap code tags around the highlighted text (in our editors). :) (0 Replies)
Discussion started by: Neo
0 Replies

4. Web Development

Simple Vue.js Component to Redirect to External Web Page Using Vue Router

Vue Router has some quirks and on of the quirks is that it is not reliable when adding external links using the vue-router library. After struggling with many solutions, I have found that creating a simple Vue.js component like this one seems to work the best (so far): Component Example: ... (0 Replies)
Discussion started by: Neo
0 Replies

5. Web Development

Vue JS 2 Tutorial by The Net Ninja: A Recommended Vue.js Video Tutorial Series

A number of people have asked me how to get started with Vue.js and my reply before today was to Google "Vue.js". That has changed and my recommendation to anyone who wants to learn the fastest growing, easiest to learn and use Vue.js web dev framework is to watch this video tutorial series: ... (0 Replies)
Discussion started by: Neo
0 Replies

6. Web Development

Vue.js component: Beautiful code highlighter

Sooner than later I will render forum discussions in Vue.js to complement the standard way of showing forum threads. Today, I ran across this component, vue-code-highlight Beautiful code syntax highlighting as Vue.js component. https://www.unix.com/members/1-albums225-picture1199.jpg ... (1 Reply)
Discussion started by: Neo
1 Replies
CSS(3pm)						User Contributed Perl Documentation						  CSS(3pm)

NAME
CSS - Object oriented access to Cascading Style Sheets (CSS) SYNOPSIS
use CSS; # create a CSS object with the default options my $css = CSS->new(); # create a CSS object with a specific parser my $css = CSS->new( { 'parser' => 'CSS::Parse::Lite' } ); my $css = CSS->new( { 'parser' => 'CSS::Parse::Heavy' } ); my $css = CSS->new( { 'parser' => 'CSS::Parse::Compiled' } ); # create a CSS object with a specific adaptor my $css = CSS->new( { 'adaptor' => 'CSS::Adaptor' } ); my $css = CSS->new( { 'adaptor' => 'CSS::Adaptor::Pretty' } ); my $css = CSS->new( { 'adaptor' => 'CSS::Adaptor::Debug' } ); # parse some CSS from a string $css->read_string( $css_data ); $css->read_string( ( $css_data, $more_css_data ) ); # parse some CSS from a file $css->read_file( 'my_file.css' ); $css->read_file( ( 'my_file.css', 'my_other_file.css' ) ); # output the CSS using the current adaptor print $css->output(); # set a new adaptor and then output the CSS $css->set_adaptor( 'CSS::Adaptor::Foo' ); print $css->output(); # output the CSS using a tempory adaptor print $css->output( 'CSS::Adaptor::Bar' ); # forget about the CSS we've already parsed $css->purge(); DESCRIPTION
This module can be used, along with a CSS::Parse::* module, to parse CSS data and represent it as a tree of objects. Using a CSS::Adaptor::* module, the CSS data tree can then be transformed into other formats. NOTICE
From version 1.00 of this module onwards, backwards compatibility is broken. This is due to large changes in the way data is parsed and then represented internally. Version 0.08 is still available on CPAN: http://search.cpan.org/author/IAMCAL/CSS-0.08/ <http://search.cpan.org/author/IAMCAL/CSS-0.08/> TREE STRUCTURE
The CSS object is the head of the tree. It contains a list of CSS::Style objects which each represent a CSS ruleset. Each of these objects contains a list of selectors and properties. Each selector is stored as a CSS::Selector object. Each property object is stored as a CSS::Property object and contains a list of values. These values are stored as CSS::Value objects. foo, bar { baz: fop; woo: yay houpla; } The above example would be represented as a single CSS::Style object. That object would then have two CSS::Selector objects representing 'foo' and 'bar'. It would also have two CSS::Property objects representing 'baz' and 'woo'. The 'baz' object then has a single child CSS::Value object for 'fop', whilst the 'woo' object has two child objects for 'yay' and 'houpla'. METHODS
CONSTRUCTOR "new()" or "new( { ..options.. } )" An optional hash can contain arguments: parser module to use as the CSS parser adaptor adaptor to use for output ACCESSORS "read_file( $filename )" or "read_file( @filenames )" Read one or mores files and parse the CSS within them. "read_string( $scalar )" or "read_string( @strings )" Read one or more strings and parse the CSS within them. "output()" or "output( 'CSS::Adaptor::Foo' )" Return a string representation of the CSS tree, using either the current adaptor or the specified one. "set_adaptor( 'CSS::Adaptor::Bar' )" Set the current adaptor for the CSS tree. "purge()" Forget all the objects in the CSS tree; "get_style_by_selector( 'selector_name' )" Returns the first CSS::Style object with the specified selector name attached. Returns zero on failure. AUTHORS
Copyright (C) 2001-2002, Allen Day <allenday@ucla.edu> Copyright (C) 2003-2004, Cal Henderson <cal@iamcal.com> SEE ALSO
CSS::Style, CSS::Selector, CSS::Property, CSS::Value, CSS::Parse, CSS::Parse::Lite, CSS::Parse::Heavy, CSS::Parse::Compiled, CSS::Parse::PRDGrammar, CSS::Adaptor, CSS::Adaptor::Pretty, CSS::Adaptor::Debug, perl(1) perl v5.14.2 2008-04-23 CSS(3pm)
All times are GMT -4. The time now is 06:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy