Built on-top of Enquire.js, Ahomé-Enquire is a GWT-based library that helps you create dynamic CSS media queries in your web application.
##Enterprise Support Get high quality support through Ahomé (Note that all Ahomé Tools are FREE to use with an Apache 2 License).
##Community
- Ahomé Google+ Community - See whats happening in the community.
-
Inherit the ahome-enquire module
<inherits name='com.ait.toolkit.enquire.Enquire'/>
- Start coding
package com.ait.toolkit.playground.client;
import com.ait.toolkit.core.client.Function;
import com.ait.toolkit.enquire.client.Enquire;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.RootPanel;
public class EnquireEntryPoint implements EntryPoint {
@Override
public void onModuleLoad() {
Enquire.get().register("screen and (max-width:45em)", new Function() {
@Override
public void execute() {
RootPanel.getBodyElement().getStyle().setBackgroundColor("green");
}
});
}
}
-
Find more code in the Examples Folder
-
Learn more about our Open Source tools HERE