Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Defaulting publication to 1 column full zise and using jquery to change the layout
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  14 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Carlos Araya  
View profile  
 More options May 6 2012, 2:28 pm
From: Carlos Araya <carlos.ar...@gmail.com>
Date: Sun, 6 May 2012 11:28:35 -0700 (PDT)
Local: Sun, May 6 2012 2:28 pm
Subject: Defaulting publication to 1 column full zise and using jquery to change the layout

I'm looking at Treesaver and have the following questions

Is it possible to have a 1 column-full page layout by default? I think it
is but want to make sure as to how

How does Treesaver interact with JQuery and Modernizr? I'm thinking about
using JQuery to change the number of columns by changing the container
class and changing the class of all associated resources. Would this work?
Are there alternatives?

Thanks

Carlos


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrea Campi  
View profile  
 More options May 7 2012, 2:38 am
From: Andrea Campi <andrea.ca...@zephirworks.com>
Date: Mon, 7 May 2012 08:38:18 +0200
Local: Mon, May 7 2012 2:38 am
Subject: Re: [Treesaver.js] Defaulting publication to 1 column full zise and using jquery to change the layout

On Sun, May 6, 2012 at 8:28 PM, Carlos Araya <carlos.ar...@gmail.com> wrote:
> I'm looking at Treesaver and have the following questions

> Is it possible to have a 1 column-full page layout by default? I think it is
> but want to make sure as to how

> How does Treesaver interact with JQuery and Modernizr? I'm thinking about
> using JQuery to change the number of columns by changing the container class
> and changing the class of all associated resources. Would this work? Are
> there alternatives?

At face value, you only need to make sure that at a given page size
you only have 1 column grids in resources.

But given the way your question is phrased, I get the feeling there is
more to it :) Am I right?

You shouldn't need to use Modernizr, as we have something very similar
already; if you inspect the page you will see some classes have been
added to the html tag.
As for jQuery, no problem using it with Treesaver. Treesaver also
gives you some convenient events you can hook into.

Using it to change the number of columns, on the other hand, may not be trivial.
Can you give us a high-level overview of what you are trying to do?
That should make it easier to answer your question.

Andrea


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carlos Araya  
View profile  
 More options May 7 2012, 10:53 am
From: Carlos Araya <carlos.ar...@gmail.com>
Date: Mon, 7 May 2012 07:53:25 -0700
Local: Mon, May 7 2012 10:53 am
Subject: Re: [Treesaver.js] Defaulting publication to 1 column full zise and using jquery to change the layout

I'm trying to create a settings sidebar to do the following via JQuery

Change the number of columns the text is displayed on (1 by default, with
option for 2 or 3 if the size allows). There is some text I'm working on
that displays best in 1 column but I want to give the user the option of
displaying it in columns

My original thought was that by changing the class of the container I would
be able to reflow to the number of columns that I wanted. It this a good
assumption to make?

Carlos
On Sun, May 6, 2012 at 11:38 PM, Andrea Campi
<andrea.ca...@zephirworks.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
MaccG  
View profile  
 More options May 14 2012, 2:24 pm
From: MaccG <maccgiz...@gmail.com>
Date: Mon, 14 May 2012 11:24:31 -0700 (PDT)
Local: Mon, May 14 2012 2:24 pm
Subject: Re: [Treesaver.js] Defaulting publication to 1 column full zise and using jquery to change the layout

To piggyback on Carlos' question, I too am seeking a way to display 3
columns of text on an iPhone in portrait mode, but when rotated to
landscape mode display 5 columns of text. Is this not trivial either,
solutions?

Jason


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrea Campi  
View profile  
 More options May 14 2012, 4:28 pm
From: Andrea Campi <andrea.ca...@zephirworks.com>
Date: Mon, 14 May 2012 22:28:23 +0200
Local: Mon, May 14 2012 4:28 pm
Subject: Re: [Treesaver.js] Defaulting publication to 1 column full zise and using jquery to change the layout

On Mon, May 14, 2012 at 8:24 PM, MaccG <maccgiz...@gmail.com> wrote:
> To piggyback on Carlos' question, I too am seeking a way to display 3
> columns of text on an iPhone in portrait mode, but when rotated to landscape
> mode display 5 columns of text. Is this not trivial either, solutions?

that's pretty easy to do, you just need two grids, with 3 and 5
columns respectively.
As long as your CSS sets their width, Treesaver will pick the one that
fits best.

Andrea


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason McGovern  
View profile  
 More options May 14 2012, 4:34 pm
From: Jason McGovern <maccgiz...@gmail.com>
Date: Mon, 14 May 2012 16:34:31 -0400
Local: Mon, May 14 2012 4:34 pm
Subject: Re: [Treesaver.js] Defaulting publication to 1 column full zise and using jquery to change the layout

I actually have two grids for landscape and portrait with 5 and 3 columns
respectively:

<div class="grid test w3 fixed iphone vertical">
<div class="column c1 w3"></div>
</div>

<div class="grid test w5 fixed iphone horizontal">
<div class="column c1 w5"></div>
</div>

Yet it's not expanding to 5 columns wide. Caveat - I'm using Scott Kellum's
Season's template. I've yet to see any examples where an iPhone is
landscape mode takes advantage of the width by expanding it further than
the token 3 columns wide.

Respectfully,

Jason

On Mon, May 14, 2012 at 4:28 PM, Andrea Campi
<andrea.ca...@zephirworks.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrea Campi  
View profile  
 More options May 14 2012, 4:43 pm
From: Andrea Campi <andrea.ca...@zephirworks.com>
Date: Mon, 14 May 2012 22:43:15 +0200
Local: Mon, May 14 2012 4:43 pm
Subject: Re: [Treesaver.js] Defaulting publication to 1 column full zise and using jquery to change the layout

What happens if you load/refresh in landscape?
The iPhone (or any mobile/tablet device) does add its own set of
challenges, but if you try it out on a desktop, you should see it
working fine.
In my experience, usually there is a good reason why things don't come
out as you expect--it's just non-trivial to figure out what that
reason is ;)

Andrea


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason McGovern  
View profile  
 More options May 14 2012, 4:47 pm
From: Jason McGovern <maccgiz...@gmail.com>
Date: Mon, 14 May 2012 16:47:06 -0400
Local: Mon, May 14 2012 4:47 pm
Subject: Re: [Treesaver.js] Defaulting publication to 1 column full zise and using jquery to change the layout

Well, I'm using media queries that are quite buggy. I'm trying to make the
text span the normal 3 columns (@100px ea) in portrait mode but it
landscape mode on the iPhone have the text span 5 columns. When I refresh
in landscape mode then flip to portrait, the media query doesn't fire, but
the 2nd time thereafter the media query works as expected. The issue I'm
facing is having to always display the text spanning 3 columns in landscape
mode, or only find a way to expand it so that then and only then in
landscape mode it spans 5 columns.

On Mon, May 14, 2012 at 4:43 PM, Andrea Campi
<andrea.ca...@zephirworks.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrea Campi  
View profile  
 More options May 14 2012, 5:06 pm
From: Andrea Campi <andrea.ca...@zephirworks.com>
Date: Mon, 14 May 2012 23:06:23 +0200
Local: Mon, May 14 2012 5:06 pm
Subject: Re: [Treesaver.js] Defaulting publication to 1 column full zise and using jquery to change the layout

On Mon, May 14, 2012 at 10:47 PM, Jason McGovern <maccgiz...@gmail.com> wrote:
> Well, I'm using media queries that are quite buggy. I'm trying to make the
> text span the normal 3 columns (@100px ea) in portrait mode but it landscape
> mode on the iPhone have the text span 5 columns. When I refresh in landscape
> mode then flip to portrait, the media query doesn't fire, but the 2nd time
> thereafter the media query works as expected. The issue I'm facing is having
> to always display the text spanning 3 columns in landscape mode, or only
> find a way to expand it so that then and only then in landscape mode it
> spans 5 columns.

Right, yes, there are known issues with media queries unfortunately.
Can you use the classes on the html tag instead?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason McGovern  
View profile  
 More options May 14 2012, 5:08 pm
From: Jason McGovern <maccgiz...@gmail.com>
Date: Mon, 14 May 2012 17:08:31 -0400
Local: Mon, May 14 2012 5:08 pm
Subject: Re: [Treesaver.js] Defaulting publication to 1 column full zise and using jquery to change the layout

How would I target orientation without media queries? To which classes are
you actually referring me in this case?

On Mon, May 14, 2012 at 5:06 PM, Andrea Campi
<andrea.ca...@zephirworks.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrea Campi  
View profile  
 More options May 14 2012, 5:14 pm
From: Andrea Campi <andrea.ca...@zephirworks.com>
Date: Mon, 14 May 2012 23:14:59 +0200
Local: Mon, May 14 2012 5:14 pm
Subject: Re: [Treesaver.js] Defaulting publication to 1 column full zise and using jquery to change the layout

On Mon, May 14, 2012 at 11:08 PM, Jason McGovern <maccgiz...@gmail.com> wrote:
> How would I target orientation without media queries? To which classes are
> you actually referring me in this case?

E.g.:

html.mobile.landscape
html.mobile.portrait

If you inspect the DOM with Firebug or similar, you will see a bunch
of classes. The orientation ones are only on devices that are capable
of detecting that, of course.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott  
View profile  
 More options May 15 2012, 11:40 am
From: Scott <devoinregr...@gmail.com>
Date: Tue, 15 May 2012 08:40:56 -0700 (PDT)
Local: Tues, May 15 2012 11:40 am
Subject: Re: [Treesaver.js] Defaulting publication to 1 column full zise and using jquery to change the layout

You can define mobile(iPhone)/iPad specific templates using plugins built
into Seasons: https://github.com/scottkellum/Seasons/wiki/Mobile-plugin

3-5 columns is kind of insane on the iPhone, do you mean iPad?

With Seasons on the iPad it is easy to change how many columns are on the
iPad landscape and portrait.
Simply change the variables in your Sass configuration file:
$ipad-horizontal-columns: 9
$ipad-vertical-columns: 6

Sass plugin:
https://github.com/scottkellum/Seasons/blob/master/sass/plugin/_ipad....


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason McGovern  
View profile  
 More options May 15 2012, 12:01 pm
From: Jason McGovern <maccgiz...@gmail.com>
Date: Tue, 15 May 2012 12:01:19 -0400
Local: Tues, May 15 2012 12:01 pm
Subject: Re: [Treesaver.js] Defaulting publication to 1 column full zise and using jquery to change the layout

I poorly described what I was aiming for. When I said 3-5 columns, what I
actually should have said is that I wanted the width of the text-span to
extend all the way to the edge in iphone landscape mode similar to what it
does in portrait mode (i.e. not show partials of the prev and next pages on
the left and right respectively. Is that doable using the mobile plugin? I
started to use it, but haven't been able to get the text/figures to extend
all the way in landscape mode.

Jason


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott  
View profile  
 More options May 16 2012, 12:03 pm
From: Scott <devoinregr...@gmail.com>
Date: Wed, 16 May 2012 09:03:47 -0700 (PDT)
Local: Wed, May 16 2012 12:03 pm
Subject: Re: [Treesaver.js] Defaulting publication to 1 column full zise and using jquery to change the layout

Treesaver does not let you change the column width within an article on the
same device. You will not be able to change the column width from portrait
to landscape.

Hopefully Treesaver will support percentage based widths one day which will
solve a lot of problems with smaller screen
layouts: https://github.com/Treesaver/treesaver/issues/275


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »