Giter VIP home page Giter VIP logo

jqmphp's People

Contributors

brunoleaomaia avatar

Watchers

 avatar

jqmphp's Issues

miss meta viewport

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
without the viewport meta,samsung galaxy s2 will show very small icon and 
button.

What version of the product are you using? On what operating system?
0.3

Please provide any additional information below.
add this code in jqmHead.php function __construct block
<code>
        $viewport = new jqmAttribute('name','viewport');
        $viewport_content = new jqmAttribute('content','width=device-width, initial-scale=1');
        $this->add(new jqmTag('meta', '', array($this->_charset)));

</code>

Original issue reported on code.google.com by [email protected] on 18 Nov 2011 at 3:47

Attachments:

Wrong HTMl-Tag Outpout

What steps will reproduce the problem?
Genreal on some tags like br, hr, img, meta, link, input

What is the expected output? What do you see instead?
Samples: expected <meta ... /> instead <meta></meta>,
         expected <link ... /> instead <link></link>


What version of the product are you using? On what operating system?
Version 0.03 on all systems.
File: jqmTag.php

Please provide any additional information below.
1. open file jqmTag.php
2. search function openTag()
3. replace it with:
// copy
    function openTag() {
        $tag = $this->tag();
        $tag = strtolower($tag);
        $non = FALSE;
        switch ($tag) {
            case 'area':
            case 'br':
            case 'img':
            case 'input':
            case 'hr':
            case 'link':
            case 'meta':
            $non = TRUE;
                break;
            default:
                $non = FALSE;
                break;
        }
        $str = '<' . $tag;
        if ($this->attributes()->size() > 0) {
            $this->attributes()->separator(' ');
            if (''.$this->attributes()->get(0) != '') {
                $str .=' ';
            }
            $str.= $this->attributes();
        }
        if ($non !== FALSE) {
            $str.= ' /';
        }
        $str .= '>';
        return $str;
    }
// coppy
4. open file jqmTag.php
5. search function closeTag()
6. replace it with:
// copy
    function closeTag() {
        $tag = $this->tag();
        $tag = strtolower($tag);
        switch ($tag) {
            case 'area':
            case 'br':
            case 'img':
            case 'input':
            case 'hr':
            case 'link':
            case 'meta':
                $str = '';
                break;
            default:
                $str = '</' . $tag . '>';
                break;
        }
        return $str;
    }
// copy

Original issue reported on code.google.com by [email protected] on 15 Feb 2012 at 1:37

Custom Javascript is Inserted AFTER JQM.js

What steps will reproduce the problem?
1. $jqmPhp->head()->add(new jqmScript("/global/js/jqm.accordionlist.js"));

2.
DESIRED/REQUIRED:
<script type="text/javascript" src="/global/js/jqm.accordionlist.js"></script>

<script type="text/javascript" 
src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js">
</script>

ACTUAL/NONFUNCTIONAL:
<script type="text/javascript" 
src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js">
</script>
<script type="text/javascript" src="/global/js/jqm.accordionlist.js">
</script>


What version of the product are you using? On what operating system?
.3/,4

Please provide any additional information below.

I cannot find where it actually is deciding the order in which to render the 
<HEAD> DOM tags...

Original issue reported on code.google.com by [email protected] on 22 Dec 2011 at 1:24

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.