Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UNL_WDN_Mobile
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Experience Group
UNL_WDN_Mobile
Commits
dd1d7c84
Commit
dd1d7c84
authored
16 years ago
by
Brett Bieber
Browse files
Options
Downloads
Patches
Plain Diff
Add initial work on the mobile proxy.
parent
c62cb498
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.buildpath
+5
-0
5 additions, 0 deletions
.buildpath
.project
+22
-0
22 additions, 0 deletions
.project
README
+15
-0
15 additions, 0 deletions
README
index.php
+36
-0
36 additions, 0 deletions
index.php
with
78 additions
and
0 deletions
.buildpath
0 → 100644
+
5
−
0
View file @
dd1d7c84
<?xml version="1.0" encoding="UTF-8"?>
<buildpath>
<buildpathentry
kind=
"src"
path=
""
/>
<buildpathentry
kind=
"con"
path=
"org.eclipse.php.core.LANGUAGE"
/>
</buildpath>
This diff is collapsed.
Click to expand it.
.project
0 → 100644
+
22
−
0
View file @
dd1d7c84
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>
wdnmobile
</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>
org.eclipse.wst.validation.validationbuilder
</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>
org.eclipse.dltk.core.scriptbuilder
</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>
org.eclipse.php.core.PHPNature
</nature>
</natures>
</projectDescription>
This diff is collapsed.
Click to expand it.
README
0 → 100644
+
15
−
0
View file @
dd1d7c84
Basic idea:
This service is a mobile proxy for UNL template pages.
The proxy grabs the page, pulls out the maincontentarea and navigation and
displays it in a popup template. The navigation UL is placed at the bottom of
the page below the content.
TODO:
There's a cleaner way to scan the pages, I just can't find the api for it now.
Capture link clicks so links to other UNL pages are run through the proxy.
Rewrite images so they're absolute.
Resize images that are too big?
Add link to view the html version of the page ala Google mobile version.
Get the m.unl.edu domain and put it up.
Detect mobile screen size and adjust css accordingly?
This diff is collapsed.
Click to expand it.
index.php
0 → 100644
+
36
−
0
View file @
dd1d7c84
<?php
require_once
'Validate.php'
;
require_once
'UNL/Templates.php'
;
require_once
'UNL/DWT/Generator.php'
;
$p
=
UNL_Templates
::
factory
(
'Popup'
);
$options
=
array
(
'allowed_schemes'
=>
array
(
'http'
));
if
(
isset
(
$_GET
[
'u'
])
&&
Validate
::
uri
(
$_GET
[
'u'
],
$options
))
{
$f
=
file_get_contents
(
$_GET
[
'u'
]);
$dwt
=
new
UNL_DWT_Generator
();
$dwt
->
scanRegions
(
$f
);
foreach
(
$dwt
->
_regions
[
''
]
as
$region
)
{
$p
->
{
$region
->
name
}
=
$region
->
value
;
}
}
else
{
$p
->
maincontentarea
=
'<h2>Enter a UNL template based page to try out a different template</h2>'
;
}
$p
->
addStyleDeclaration
(
'
body * {max-width:300px !important;}
#maincontent .right, #maincontent .left{float:none;}
#maincontent .col {width:auto !important;}
#maincontent .two_col {width:auto !important;}
#maincontent {font-size:150%;line-height:120%;
}
input {font-size:1em;}
'
);
$p
->
head
.
=
'<meta name="viewport" content="width = 320" />'
;
$p
->
maincontentarea
.
=
'<h2>Navigation</h2>'
.
$p
->
navlinks
;
$p
->
maincontentarea
.
=
'<form style="clear:both" action="?" method="GET">
URL:<input type="text" name="u" size="15" />
<input type="submit" name="s" value="submit" />
</form>'
;
echo
$p
->
toHtml
();
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment